gtmodel Help File

Creates a model counts map based on a binned likelihood fit.

Usage:gtmodel srcmaps srcmdl outfile irfs expcube bexpmap

The gtmodel tool is used to facilitate comparisons between the data and the model predictions. (Refer to gtlike and gtlike help for more explanations.) gtmodel creates a model map of a region based on the fit parameters. This map is effectively an infinite-statistics counts map
of the region-of-interest based on your model fit. The gtmodel application reads in the fitted model, applies the proper scaling to the source maps, and adds them together to get the final map. Before running this tool you should run gtsrcmaps.

Note: A new feature, "outtype=ccube", was added to gtmodel in December 2010, and enables gtmodel to write ccube maps with geometry and energy planes matching the input source map file. This is a hidden parameter. To write a counts cube instead of a summed counts map, specify the outtype parameter at the command line, i.e., gtmodel outtype=ccube

Example: gtmodel

Parameters 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). To be interactively prompted for gtmodel parameter values, simply enter (at the command line):
> gtmodel


Note: "Hidden" parameters are not prompted. If you want to change one of the "hidden" parameters, specify the values in the command line. For example, if you do not want to overwrite the output file, enter (at the command line): gtmodel clobber=no

An example of how to run the tool is given below:

> gtmodel
Source maps (or counts map) file[] srcMaps.fits
Source model file[] src_model.xml
Output file[] model_map.fits
Response functions[] P6_V3_DIFFUSE
Exposure cube[] expCube.fits
Bnned exposure map[none] bexposure.fits

The above example can also be run from the command line as follows:

>gtmodel srcmaps=srcMaps.fits srcmdl=src_model.xml outfile=model_map.fits irfs=P6_V3_DIFFUSE expcube=expCube.fits bexpmap=bexposure.fits


Owned by: J. Chiang

Last updated by: Chuck Patterson 02/03/2011