PHA Data Extension Header

The header for the PHA file Data Extension includes all the information required by XSPEC (and by extension any other general spectral analysis package) to describe the stored PHA data. This consists of the following (mandatory) keywords/values:

  • EXTNAME (= SPECTRUM) - the name (i.e. type) of the extension
  • TELESCOP - the "telescope" (i.e. mission/satellite name).
  • INSTRUME - the instrument/detector.
  • FILTER - the instrument filter in use (if any)
  • EXPOSURE - the integration time (in seconds) for the PHA data (assumed to be corrected for deadtime, data drop-outs etc. )
  • BACKFILE - the name of the corresponding background file (if any)
  • BACKSCAL - the background scaling factor (unless included as a column).
  • CORRFILE - the name of the corresponding correction file (if any)
  • CORRSCAL - the correction scaling factor.
  • RESPFILE - the name of the corresponding (default) redistribution matrix file (RMF; see George et al. 1992a).
  • ANCRFILE - the name of the corresponding (default) ancillary response file (ARF; see George et al. 1992a).
  • AREASCAL - the area scaling factor (unless included as a column).
  • HDUCLASS - should contain the string "OGIP" to indicate that this is an OGIP style file.
  • HDUCLAS1 - should contain the string "SPECTRUM" to indicate this is a spectrum.
  • HDUVERS - the version number of the format (this document describes version 1.2.1)
  • POISSERR - whether Poissonian errors are appropriate to the data (see below).
  • CHANTYPE - whether the channels used in the file have been corrected in anyway (see below).
  • DETCHANS - the total number of detector channels available.

The POISSERR keyword is not required if a STAT_ERR column is present however it is recommended in this case for clarity. If STAT_ERR is to be used for the errors then POISSERR is set to false.

The CHANTYPE keyword specifies whether the channels referred to in the file are as assigned by the detector electronics at the time of data collection (in which case CHANTYPE = PHA), or whether any corrections have been applied. An example of the latter case is when the data has been re-mapped onto a standard "pulse-Invariant" (PI) channel grid, in which case CHANTYPE = PI (see also CAL/GEN/92-002, George et al. 1992, Section 7).

The following keywords are mandatory if the channel numbering-scheme for an instrument does NOT start at unity:

  • TLMIN - giving the minimum legal value for the values in the column named 'CHANNEL' (ie. the lowest PHA channel possible for the instrument under the current operational mode, irrespective of whether or not that channel is stored as part of the PHA dataset).
  • TLMAX - giving the maximum legal value for the values in the column named 'CHANNEL' (ie. the highest PHA channel possible for the instrument under the current operational mode, irrespective of whether or not that channel is stored as part of the PHA dataset).
These keywords are optional for datasets for which the channel numbering scheme starts at channel one (and hence the value of the TLMAX keyword should equal the value of the DETCHANS keyword), but are recommended for clarity.

The following optional keywords supply further information:

  • XFLTXXXX - the XSPEC selection filter descriptor, where XXXX is a number (see below).
  • OBJECT - the observed object.
  • RA-OBJ - the nominal Right Ascension of the object (in decimal degrees)
  • DEC-OBJ - the nominal declination of the object (in decimal degrees)
  • EQUINOX - the equinox of the above celestial co-ordinate (RA & DEC) specifications
  • RADECSYS - the coordinate frame used for EQUINOX
  • DATE-OBS - nominal U.T. date when integration of this PHA data started (yyyy-mm-dd). Old files may have dd/mm/yy format which will be interpreted as 19yy-mm-dd.
  • TIME-OBS - nominal U.T. time when integration of this PHA data started (hh:mm:ss).
  • DATE-END - nominal U.T. date when integration of this PHA data ended (yyyy-mm-dd). Old files may have dd/mm/yy format which will be interpreted as 19yy-mm-dd.
  • TIME-END - nominal U.T. time when integration of this PHA data ended (hh:mm:ss).
  • CREATOR - to indicate the name & version number of the s/w task which created the PHA dataset. The suggested format is:
    CREATOR = '{progname} v{i.j.k}'
    where {progname} is the task name, and i.j.k its version number (i, j & k integers; k changing most rapidly).
  • HDUCLAS2 - indicating the type of data stored.
    Allowed values are:
    • 'TOTAL' for a gross PHA Spectrum (source + bkgd)
    • 'NET' for a bkgd-subtracted PHA Spectrum
    • 'BKG' for a bkgd PHA Spectrum
  • HDUCLAS3 - indicating further details of the type of data stored.
    Allowed values are:
    • 'COUNT' for PHA data stored as counts (rather than count/s)
    • 'RATE' for PHA data stored in count/s
  • HDUCLAS4 - indicating whether this is a type I or II extension.
    Allowed values are:
    • 'TYPE:I' for type I (single spectrum) data
    • 'TYPE:II' for type II (multiple spectra) data

The XFLTXXXX keyword is used by XSPEC to aide joint spectral/temporal or spectral/spatial fitting when the input consists of several individual PHA files. The keyword will contain the values of the appropriate time (or phase etc. ), or spatial parameters describing the PHA dataset. Thus, in the case of joint spectral/temporal analysis for example, the XFLT0001 keyword will consist of a string containing the start & stop time of the PHA dataset. These times will be in the units required by the spectral/temporal model to be used within XSPEC (and thus could be in units of orbital phase of a binary system). It is the responsibility of the User to consult the relevant GTI and/or Detector extensions (below), and place the required information into the relevant XFLTXXXX keyword. Further examples of such complex spectral analysis tasks will be given elsewhere.

A number of optional keywords are provided to supply the user with information on the precise start & stop times of the integration of the PHA dataset. These will be listed elsewhere and adhere to the standard OGIP method for defining times (see Angelini et al. 1992). Such keywords are necessary since times calculated using the standard (DATE-OBS + TIME-OBS) & (DATE-END + TIME-END) keywords are not guaranteed exact (since they involve a conversion from spacecraft clock to UT etc. ), and in any case do not allow sub-second temporal resolution. Times specified by these keywords are in the original temporal units supplied by the spacecraft/pre-processing system. Thus, in the case of (say) sub-second, phase-resolved spectroscopy users are able to cross-check that their selected PHA dataset does indeed correspond to that required from the ephemeris, taking into account any glitches in the spacecraft clock, leap seconds, baryocentric corrections etc. It is strongly recommended that the information supplied by these keywords is included in all PHA datasets, even if not strictly necessary from the scientific viewpoint. Of course, the exception to this recommendation is when the times have no meaning -- e.g. when a phase-folded or source-intensity-selected PHA dataset has been constructed.

For type II data extensions with multiple spectra some of these keywords may have different values for each spectrum. In this case the values will be stored in a column instead of a keyword. The standard keywords which may be turned into columns are EXPOSURE, BACKFILE, CORRFILE, CORRSCAL, RESPFILE, ANCRFILE, XFLTXXXX, DATE-OBS, TIME-OBS, DATE-END, TIME-END.


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

Last modified: Thursday, 21-Oct-2021 12:50:38 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.