.pha files to XSPEC compatible FITS files
@ character, it designates a file which contains a
list of the files to process. Otherwise, it may be a space or comman delimited
list of files to process.
.scn or
.sum files, from which it may create more than one output file.
FTOOLS fcreate program. If things go wrong, they are much easier
to read than the resultant FITS file. Normally they are deleted. This
option keeps them around
liveTime family
of keywords. This option makes pha2xspec-fits set the exposure
time to that in the trueTime family of keywords.
.pha file and creates one or more FITS files
(one per detector output) suitable for import into XSPEC.
It used keyword values in the .pha header to set up the following
FITS keywords:
pha2xspec-fits used the FTOOLS program fcreate to do the actual conversion to FITS. If the ftools option is used to specify an FTOOLS root directory, it will look there first, else if the environmental variable FTOOLS_ROOT is present, it'll use that value. Finally, it'll look in /iraf/irafext/ftools (or in /proj/axaf/pkgs/ftools, depending upon the system).
Note that it wants the root directory, not the binary directory. It looks in the bin.host subdirectory for what it needs.
Additionally, fcreate requires a parameter file to work with, and preferrably one that it can write to. pha2xspec-fits sets the environmental variable PFILES to .;${FTOOLS_ROOT}/bin.host. fcreate will create a parameter file in the current directory, which is left there after pha2xspec-fits exits, as a gift.
Input files may have one of three suffixes: .scn, .sum, and .pha.
For a .scn file, the name should have the format
XXXXX.scn. pha2xspec-fits will process all .pha files with the
template acqXXXXXd?i?.pha.
Files which end in .sum should have the template XXXXXd?.sum. pha2xspec-fits
will process all .pha files with the template acqXXXXXd?i?.pha.
Files which end in .pha are processed directly.