pha operator+ (const pha& a, const pha& b)
Add pha a and b. If one or both of the pha have
non-Poisson errors then they are added in quadrature. If
systematic errors are present then the resulting pha has
systematic errors equal to the maximum of those from the
input pha. The exposures are added.
bool isSpectrumValid(const string filename, const Integer extNumber)
Simple test for whether the specified extension is a valid
spectrum. This just tests for HDUCLAS1='SPECTRUM' and the
presence of a COUNTS or RATE column.
Integer PHAtype(const string filename, const Integer PHAnumber)
Integer PHAtype(const string filename, const Integer PHAnumber,
Integer& Status)
Return the type of a SPECTRUM extension.
bool IsPHAcounts(const string filename, const Integer PHAnumber)
bool IsPHAcounts(const string filename, const Integer PHAnumber,
Integer& Status)
Return true if the COUNTS column exists and is integer.
Integer NumberofSpectra(const string filename,
const Integer PHAnumber)
Integer NumberofSpectra(const string filename,
const Integer PHAnumber, Integer& Status)
Return the number of spectra in a type II SPECTRUM extension.
IntegerVector SpectrumExtensionNumbers(const string filename)
IntegerVector SpectrumExtensionNumbers(const string filename, Integer& Status)
Return the numbers of any spectrum extensions
IntegerVector SpectrumVersionNumbers(const string filename)
IntegerVector SpectrumVersionNumbers(const string filename, Integer& Status)
Return the versions of any spectrum extensions