int ReadPHAtypeI(char *filename, long PHAnumber, struct PHA *phastruct)
Read the type I PHA extension from a FITS file - if there are multiple PHA extensions then read the PHAnumber instance.
int ReadPHAtypeII(char *filename, long PHAnumber, long NumberSpectra, long *SpectrumNumber, struct PHA **phastructs)
Read the type II PHA extension from a FITS file - if there are multiple PHA extensions then read the PHAnumber instance - within the typeII extension reads the spectra listed in the SpectrumNumber vector.
int WritePHAtypeI(char *filename, struct PHA *phastruct)
Write the type I PHA extension to a FITS file.
int WritePHAtypeII(char *filename, long NumberSpectra, struct PHA **phastructs)
Write the type II PHA extension to a FITS file.
int ReturnPHAtype(char *filename, long PHAnumber)
Return the type of a PHA extension.
void DisplayPHAtypeI(struct PHA *phastruct)
Write information about spectrum to stdout.
void DisplayPHAtypeII(long NumberSpectra, struct PHA **phastructs)
Write information about spectra to stdout.
int RebinPHA(struct PHA *phastruct, struct BinFactors *bin)
Rebin spectrum.
int CheckPHAcounts(char *filename, long PHAnumber)
Return 0 if COUNTS column exists and is integer or COUNTS column does not exist.
long ReturnNumberofSpectra(char *filename, long PHAnumber)
Return the number of spectra in a type II PHA extension.