The gtexpcube generates an exposure map or a set of exposure maps for different energies, multiplying effective area by exposure, and integrating over solid angle. To create an exposure map with gtexpcube, you will need to generate an exposure livetime cube file. This file can be created using gtltcube (see the gtltcube documentation for a description of the livetime cubes, and additional details). Alternatively, pre-generated exposure cubes can be obtained directly from SLAC's Data Portal. These pre-existing exposure cube files may cover the sky region of interest at different time ranges; thus, they may need to be merged before running gtexpcube. To add two livetime cubes together, use the gtltsum tool (see the gtltsum help for more information). You can also create an exposure map from each livetime cube, and then add the resulting exposure maps; but map generation is CPU-intensive, and it is recommended that you combine the cubes before creating the maps. As input to gtexpcube, you will also need to provide: the number of pixels in horizontal and vertical dimensions (i.e., the nxpix and nypix parameters, respectively); the image scale in degrees/pixel (pixscale parameter); the response function (irfs parameter); as well as the horizontal and vertical positions of the center of the image (xref and yref parameters, respectively, in either Galactic or Celestial coordinates according to the coordsys parameter, which can be GAL or CEL). The energy binning parameters should also be input (emin in MeV, emax in MeV, and enumbins). Optionally, you can produce the exposure map by inputting to gtexpcube a counts map FITS file generated with gtbin (see gtbin help), from which gtexpcube will match the coordinate projection and grid. The units of the exposure maps created by gtexpcube are: cm2 s1. Examples: gtexpcubeParameters are passed following the FTOOLs model (i.e., they can be passed interactively by: answering a prompt; as a list in a command line; or by editing the parameter file). Note: Not all parameter are prompted;some are "hidden". If you want to change one of the "hidden" parameters, specify the values in the command line. For example, if you want to change the bincalc parameter, enter (at the command line): gtexpcube bincalc=EDGE In this case the energy layers are computed at the EDGE of the count map ebounds. Example 1: To generate an exposure map using a single exposure cube, simply run the gtexpcube tool, which allows you to control the map generation parameters, including: Map center, size, scale, projection type, energy range, and number of energy bins. The following example shows how to generate an all sky exposure map in an Aitoff projection:
You are prompted for an exposure cube, which in this case is called expCube_allsky_1week.fits, and it was previously created using gtltcube (see the gtltcube help). In the example the geometry was entered by hand, so "NONE" was selected in the cmfile parameter. After that, the output FITS file name and the irfs was specified. A map of the entire sky was created, with 1 degree bins centered on Galactic Coordinates 1=0, b=0. A total number of 4 energy logarithmic bins were selected starting from an energy of 100 MeV and ending in 100 GeV. Once the output exposure FITS file has been generated, it can be viewed with a FITS viewer such as ds9 or fv. It contains a data structure with layers corresponding to the number of bins specified. The previous example can also be run in the command line as follows:
Example 2: To generate an exposure map using a count map as input you should first create that count map using the gtbin tool (see the gtbin documentation). The following example details how to run the tool by inputting a count map:
All the binning parameters (in energy and space) are taken directly from the count map (in this case, named allsky_cnts.fits). The user then enters name of the livetime cube file (previously created with gtltcube), the names of the irfs file, and the name of the output exposure FITS file.
|