next up previous contents
Next: The Function Information File Up: Advanced Topics Previous: The Control File

User Spectral Model Functions

The user functions are designed to allow easy addition of a custom photon spectral model to the program. Photon model terms 25 and 26 are user functions A and B. The provided versions may be easily replaced with a custom version. In the following directions, we assume the VMS OS.

  1. Set default to your own directory,
  2. Define the MFIT logicals in the normal manner (section 1.2),
  3. Copy mfit_src_dir:mfit_user_func_a.for to the your directory (and/or ..._B),
  4. Use this file as a template to write the custom function. The function must have 11 arguments: the energy for which the function is to be evaluated and 10 parameters, not all of which need be used. The first parameter must be the amplitude or proportionality factor.
  5. Compile the custom function via: FORTRAN/EXTEND mfit_user_func_A.
  6. Copy [...wingspan.setup_vms]mfit_lib.olb to your directory.
  7. Replace the old version of the function with the custom version via LIBRARY/REPLACE mfit_lib mfit_user_func_a
  8. Link the new executable via [...wingspan.setup_vms]link. Do this in the directory containing your version of the library,
  9. Change the logical MFIT_SHARE_DEF in wing.pro to point to the new executable. You MUST use the full filename including device and directory.
  10. You may wish to change the term name, parameter names and units, etc. by editing the MFIT_INFO_FILE, as described in section 5.4. You must leave the number of parameters (10) unchanged.


Robert S. Mallozzi
Thu Sep 5 10:38:07 CDT 1996

[image 4K] BATSE Home Page
Responsible Manager: Charles Meegan
Web Curator: Valerie Connaughton
Last Updated: November 8, 1996.