gtpsf Help File

Calculates the effective point spread function, as a function of energy at a given source location, averaged over an observation.

Usage: gtpsf expcube outfile irfs ra dec emin emax nenergies thetamax ntheta

This tool calculates the effective point spread function, as a function of energy at a given source location, averaged over an observation. The theta and psf values are storaged in different extensions of the output FITS file. The allowed parameter ranges for emin, emax, and thetamax depend on which IRFs you are using. If you are outside the allowed ranges for a particular set of IRFs, then the code may (but not definitely) crash.

Example: gtpsf

gtpsf handles parameters following the FTOOLs model: They can be passed by answering a prompt for the parameter values, or as a list in a command line. This facilitates calling gtpsf from a script.

To be prompted for gtpsf options, enter (at the command line): gtpsf

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): gtpsf clobber=no

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

> gtpsf
Livetime cubefile [] : expCube.fits
output file name [psf.fits] :
Response functions [P6_V3_DIFFUSE] :
Source Right Ascension (J2000 degrees) <0:360> [] : 193.98
Source Declination (J2000 degrees) <-90:90> [] : -5.82
minimum energy (MeV) [20] : 100
maximum energy (MeV) [2e5] : 100000
number of energies [20] :
maximum angle (degrees) [30] :
number of angles [300] :

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

>gtpsf expcube=expCube.fits outfile=psf.fits irfs=P6_v3_DIFFUSE ra=193.98 dec=-5.82 emin=100 emax=100000 nenergies=20 thetamax=30 ntheta=300


Owned by: J. Chiang

Last updated by: Chuck Patterson 01/18/2011