ISIS Utilities: summary plot of spectrum

dph Tue Oct 16 2001

The following two ISIS/Slang programs (each containing two primary functions, one for HETGS, and one for LETGS) will read a CXC Type II PHA file and make a postscript plot of the spectrum. One program is for output in counts, and the other requires an ARF so it can plot flux. These are intended to give you a quick summary on which you can scribble and plan detailed analysis. The code is commented, but not enough to call it a tutorial.

If model temperature components and weights are given, a plasma model will be generated and used to mark bright lines, and the model will also be plotted.

The spectrum can be optionally binned by an integer factor.

The counts version will sum +1 and -1 orders within a PHA file, and if multiple files are given, will sum across files. The flux version only handles a single order from a single file.

(The LETG/ACIS-S case is left as an exercise for the reader.)

cspec_summary.sl (source) (plot)
ISIS functions to make summary spectrum and model plot, count units. See the USAGE and EXAMPLES sections of the source for interactive use.
fspec_summary.sl (source) (plot)
ISIS functions to make summary spectrum and model plot, flux units. See the USAGE and EXAMPLES sections of the source for interactive use.

These are sample shell scripts, using env. The paths to env and isis will have to be set on the first line, and the above programs have to be in your ISIS path or working directory. These are meant to be run as batch sessions from the unix prompt, outside of an isis session.


hcspec_summary (shell script)
HETG counts summary, shell wrapper for cspec_summary. (sample output)
hfspec_summary (shell script)
HETG flux summary; shell wrapper for fspec_summary. (sample output)
lcspec_summary (shell script)
LETG flux summary; shell wrapper for cspec_summary. (sample output)
lfspec_summary (shell script)
LETG flux summary; shell wrapper for fspec_summary. (sample output)

The example files above were made with these commands.



dph@space.mit.edu