This page describes the type of sources that are possible to simulate using gtobssim.
In the examples below, the parameter escale specifies the units of energy used elsewhere in the source specification. It can have values MeV or GeV, and defaults to GeV.
Notice that coordinates can be specified either as celestial (J2000) or Galactic. For example:
<celestial_dir ra="123.45" dec="67.8"/> or <galactic_dir l="23.45" b="-67.8"/>
For each source, the entries in the param string are described.
Notes:
A point source with a steady light curve.
In this example, a monochromatic (110 GeV) point source with flux 5e-4 m^(-2) s^(-1) is placed in the direction of the Galactic center:
<source name="galcenter" flux="5e-4">
<spectrum escale="GeV">
<particle name="gamma">
<energy e="110."/>
</particle>
<galactic_dir l="0" b="0"/>
</spectrum>
</source>
In this example, a source with a power-law spectrum with photon spectral index 1.62 and flux 0.00928 m-2 s-1 between 30 MeV and 100 GeV is placed at RA 128.73, Dec -45.2. Note that "gamma" is used both to indicate the particle type and to denote the spectral index.
<source name="vela" flux="0.00928">
<spectrum escale="MeV">
<particle name="gamma">
<power_law emin="30.0" emax="100000." gamma="1.62"/>
</particle>
<celestial_dir ra="128.73" dec="-45.2"/>
</spectrum>
</source>
In this example, the source above is modified to have a broken power-law spectrum, with break energy ebreak and spectral index gamma2 above the break:
<source name="vela" flux="0.00928">
<spectrum escale="MeV">
<particle name="gamma">
<power_law emin="30.0" emax="100000. "gamma="1.62" ebreak="3000" gamma2="2.5"/>
</particle>
<celestial_dir ra="128.73" dec="-45.2"/>
</spectrum>
</source>
Incident photons are distributed as a 2D Gaussian projected on the sky.
<source name="gaussian_source">
<spectrum escale="MeV">
<SpectrumClass name="GaussianSource" params="0.1, 2.1, 45., 30., 3., 0.5, 45, 30., 2e5"/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
Spectrum defining a source for which the energy distribution is determined by a 2 column ascii file. The first column contains the energies, and second column contains the differential flux at those energies. The units of energy in the first column should match the escale attribute that is set in the spectrum tag. Do not set the flux attribute in the spectrum tag, otherwise the fluxes for this source will not be correct. To be explicit, a spectrum tag that looks like this:
<spectrum escale="MeV" flux="1">
is not correct, whereas
<spectrum escale="MeV">
is ok.
<source name="FileSpectrum">
<spectrum escale="MeV" >
<SpectrumClass
name="FileSpectrum "params="flux=0.,specFile=$(FERMI_DIR)/refdata/fermi/genericSources/dm120gev.dat"/>
<celestial_dir ra="194.04" dec="-5.789"/>
</spectrum>
</source>
Photons are generated uniformly on the sky following a power-law spectrum.
<source name="Extragalactic_diffuse">
<spectrum escale="MeV">
<SpectrumClass name="Isotropic" params="10.7, 2.1, 20., 2e5"/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
Incident photons are generated from a 3D FITS image comprising an energy axis for the 3rd dimension and, e.g., RA and Dec as the sky coordinates. The pixel values in each image should have dimensions of dN/dE dt dA dΩ. The absolute normalization is not important as the image will be rescaled by the flux parameter. The energies corresponding to each image frame must be given in binary table extension. Here is an example FITS file, and here is a thorough treatment of Celestial coordinate projections for FITS images.
<source name="map_cube_source">
<spectrum escale="MeV">
<SpectrumClass
name="MapCube" params="1., $(FERMI_DIR)/refdata/fermi/genericSources/test_image.fits "/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
Photons are generated using a 2D FITS image as a template. A single power-law spectrum is used for the entire map.
<!-- MapSource version of the Galactic Diffuse model -->
<source name="Galactic_diffuse">
<spectrum escale="MeV">
<SpectrumClass name="MapSource" params="17.,2.1,$(FERMI_DIR)/refdata/fermi/galdiffuse/EGRET_diffuse_gal.fits,30.,2e5"/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
Same as File Spectrum, but now the source can be extended in space.
<source name="filespectrummap_test">
<spectrum escale="GeV" flux="1.">
<SpectrumClass
name="FileSpectrumMap"
params="flux=17.,fitsFile=$(FERMI_DIR)/refdata/fermi/galdiffuse/EGRET_diffuse_gal.fits,
specFile=$(FERMI_DIR)/refdata/fermi/genericSources/dm120gev.dat,emin=100.,emax=1100, tf1precision=100,gamma=2,lonMin=-180,lonMax=180,latMin=-90,latMax=90"/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
Same as 3) but now the source can be extended in space.
<source name="tf1map_test">
<spectrum escale="MeV">
<SpectrumClass name="TF1Map" params="flux=17.,tf1name=FT1Map_TEST formula=-0.0001*(100.-x)*(1100.-x),
fitsFile=$(FERMI_DIR)/refdata/fermi/galdiffuse/EGRET_diffuse_gal.fits,emin=100.,emax=1100,tf1precision=100,gamma=2,lonMin=-180,lonMax=180,latMin=-90,latMax=90"/>
<use_spectrum frame="galaxy"/>
</spectrum>
</source>
A point source with sinusoidal light curve.
<source name="periodic_source">
<spectrum escale="MeV">
<SpectrumClass name="PeriodicSource "params="0.1, 2.1, 1e3, 1, 0.75, 30., 2e5"/>
<galactic_dir l="0" b="0"/>
</spectrum>
</source>
Note: The GRBobs package is a redefinition of the GRB phenomenological model for Gamma-Ray Bursts, using the same schema as the GRB physical model (GRB package) but, instead of exploring the physics for deriving light curves and the spectra, it uses phenomenological prescriptions.
The xml spectrum object has to be defined as follows:
<source name=" GRB1 ">
<spectrum escale="MeV">
<SpectrumClass name="GRBobsmanager" params="100,0.0e-5,20,-1.0,-2.25,100, 1"/>
<celestial_dir ra="10." dec="22."/>
</spectrum>
</source>
where the params are:
Also see:
A pulsar source whose light curve is given by an ascii template file.
<source name="Crab_Pulsar">
<spectrum escale="MeV">
<SpectrumClass name="Pulsar" params="1e-3,2.,0.033,0,0,$(FERMI_DIR)/refdata/fermi/observationSim/CrabTemplate.dat"/>
<celestial_dir ra="83.57" dec="22.01"/>
</spectrum>
</source>
A point source with a single active interval during which it has a constant flux and power-law spectrum.
<source name="simple_transient">
<spectrum escale="MeV">
<SpectrumClass name="SimpleTransient" params="10., 2., 1e3, 1.1e3, 30., 2e5"/>
<celestial_dir ra="83." dec="22."/>
</spectrum>
</source>
An ascii or FITS file containing the light curve data is used as a template. Here are example ascii and FITS files.
<source name="spectral_transient">
<spectrum escale="MeV">
<SpectrumClass name="SpectralTransient" params="flux=1e-1, tstart=0.,tstop=1e4,templateFile=$(FERMI_DIR)/refdata/fermi/genericSources/testTemplate.dat,emin=20, emax=2e5, lc=0, z=0, useLogParabola=0"/>
<celestial_dir ra="193.4" dec="-5.82"/>
</spectrum>
</source>
A point source transient whose active state light curve shape is given by an ascii template file.
<source name="transient_template">
<spectrum escale="MeV">
<SpectrumClass name="TransientTemplate" params="100.,2,1e3,1.1e3,$(FERMI_DIR)/refdata/fermi/observationSim/CrabTemplate.dat"/>
<celestial_dir ra="80" dec="20"/>
</spectrum>
</source>
Last updated by: Analia Cillis 08/04/2009