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.

  •  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.

  •  vector<Integer> SpectrumExtensions(const string filename)
    
     vector<Integer> SpectrumExtensions(const string filename, Integer& Status)
    

    Return the numbers of any spectrum extensions




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

Last modified: Wednesday, 23-Mar-2022 21:09:00 EDT