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.)
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.
The example files above were made with these commands.
dph@space.mit.edu |