Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. source flux (photons m -2 s -1 above 100 MeV integrated over [ Emin,Emax ])
  2. photon spectral index for a power-law spectrum
  3. start time (in s)
  4. stop time (in s) for the flare (both measured with respect to whatever the 0 of time is
  5. name of the file that has the flare profile

...

...

  1. Emin

...

  1. (MeV) for the energy range of the gamma rays
  2. Emax (MeV)

NOTE: The last two arguments are optional; the values for the limits default to 30 MeV and 1e5 MeV if not . The gamma rays will be generated within the energy range \[Emin, Emax\]. The values for the limits default to 30 MeV and 1e5 MeV if not specified.

(info) The file (item 5 above) contains two columns, time and flux. They are BOTH RESCALED; the time column is scaled to match the start and stop times specified in the XML file and the flux entries are scaled so that the MEAN flux is the same as specified in the XML file. transient_profile.dat is available here. The profile rises linearly from 0 for the first 1/3rd of the time, plateaus for the next 1/3rd, and then falls linearly to 0 again in the final 1/3rd of the time interval.

...

Code Block
   <source name="spectral_transient">
      <spectrum escale="MeV">
<!-- 
     mean flux = 0.1 (1e4/m^2/s) integrated over [emin,emax]
     start time = 0 (MET s)
     stop time = 1e4 (MET s)
     template file name = $(GENERICSOURCESROOT)/data/testTemplate.dat
     emin = 20 (MeV, this is the default)
     emax = 2e5 (MeV, default)
     lc # (in FITS file) = 0 (default)
     z (redshift) = 0 (default)
--!>
          <SpectrumClass name="SpectralTransient"
          params="1e-1, 0., 1e4, $(GENERICSOURCESROOT)/data/testTemplate.dat, 20, 2e5, 0, 0"/>
          <celestial_dir ra="193.4" dec="-5.82"/>
      </spectrum>
   </source>

...