PHA structure

struct PHA {

  long NumberChannels;                 /* Number of spectrum channels */
  long FirstChannel;                   /* First channel number */

  float* Pha;/*NumberChannels*/        /* PHA data */
  float* StatError;/*NumberChannels*/  /* Statistical error */
  float* SysError;/*NumberChannels*/   /* Statistical error */

  int*   Quality;/*NumberChannels*/    /* Data quality */
  int*   Grouping; /*NumberChannels*/  /* Data grouping */
  int*   Channel; /*NumberChannels*/   /* Channel number */

  float* AreaScaling;/*NumberChannels*//* Area scaling factor */
  float* BackScaling;/*NumberChannels*//* Background scaling factor */

  float Exposure;                      /* Exposure time */
  float CorrectionScaling;             /* Correction file scale factor */
  int   DetChans;                      /* Content of DETCHANS keyword */

  int Poisserr;                        /* If true, errors are Poisson */
  char Datatype[FLEN_KEYWORD];         /* "COUNT" for count data and */
                                       /* "RATE" for count/sec */
  char Spectrumtype[FLEN_KEYWORD];     /* "TOTAL", "NET", or "BKG" */

  char ResponseFile[FLEN_FILENAME];    /* Response filename */
  char AncillaryFile[FLEN_FILENAME];   /* Ancillary filename */
  char BackgroundFile[FLEN_FILENAME];  /* Background filename */
  char CorrectionFile[FLEN_FILENAME];  /* Correction filename */

  char ChannelType[FLEN_KEYWORD];      /* Value of CHANTYPE keyword */
  char Telescope[FLEN_KEYWORD];                             
  char Instrument[FLEN_KEYWORD];
  char Detector[FLEN_KEYWORD];
  char Filter[FLEN_KEYWORD];
  char Datamode[FLEN_KEYWORD];

  char *XSPECFilter[100];              /* Filter keywords */
};




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

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