Other pha routines

  •  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




HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Wednesday, 28-Aug-2024 16:49:29 EDT

HEASARC Staff Scientist Position - Applications are now being accepted for a Staff Scientist with significant experience and interest in the technical aspects of astrophysics research, to work in the High Energy Astrophysics Science Archive Research Center (HEASARC) at NASA Goddard Space Flight Center (GSFC) in Greenbelt, MD. Refer to the AAS Job register for full details.