NAME

ixpemkevt2gti -- Combines event, housekeeping, and attitude time intervals into the GTI for Level 2 Event files.

USAGE

ixpemkevt2gti.py infile l2gtifile attfile_in dsuhkfile outfile [clobber]

DESCRIPTION

ixpemkevt2gti reads the GTI information from an unfiltered pre-Level 2 event file (infile), the GTI information from the housekeeping-defined Level 2 GTI file (l2gtifile), and the valid time intervals it derives from the Level 1 attitude file (attfile_in) and finds the intersection of all three to derive the GTI for the final Level 2 event file. The unfiltered events are then used to calculate the LIVETIME, ONTIME, and DEADC header values for the new GTI. In addition, the Detector System Unit housekeeping data (dsuhkfile) is used with the derived GTI to calculate the FCW_ENC header value, which is mean Filter Calibration Wheel potentiometer measurement.

The output file contains a primary HDU with all the Level 2 event file primary header keywords, and a GTI binary table HDU which contains the GTI that should be applied to obtain the Level 2 event list.

PARAMETERS

infile* (str)
Input FITS Pre-Level 2 Event file.

l2gtifile* (str)
Input FITS Level 1 HK file containing HK-indicated GTI for Level 2 data. (e.g. ixpe02008501_det1_gti_v01.fits.gz).

attfile_in* (str)
Input FITS Level 1 attitude file associated with infile.

dsuhkfile* (str)
Input FITS Level 1 DSU Housekeeping file name (e.g., ixpe02008501_all_pay_1200_v01.fits.gz).

outfile* (str)
Output file containing GTI for Level 2 event data.

clobber
Overwrite existing output file? (default: no)

EXAMPLES

BUGS

SEE ALSO

LAST MODIFIED

May 2023