sxspixgti mkffile outfile outpixfile
'sxspixgti' creates SXS pixel dependent GTI file by merging GTI that are not pixel dependent with
pixel depenedent GTI. The output file includes two extensions: the 'good' pixel GTI (EXTNAME=GTIPIXEL)
and a 'bad' pixel GTI (EXTNAME=GTIPIXELOFF).
The input pixel dependent GTIs are defined either in the telemetered lost GTI file
(parameter gtilost) or by pixel
depenedent expressions applicable to the MKF file (paramaters mkffile , selectfile, label).
These GTIs are merged with others not pixel dependent GTI (parameter gtifile).
Therefore the inputs to 'sxspixgti' are either the MKF file or
a GTI lost file or both as well as a GTIs file non pixel dependent.
If the MKF file is set to NONE, the GTI lost file must be input and vice-versa.
The input GTI lost file is expected to have an extension named GTILOST,
the keywords DETNAM set to PIXEL and the three columns START STOP and PIXEL.
'sxspixgti' uses 'gtiinvert' to create the invert either good or bad GTI.
The lost GTI are inverted per pixel selecting the start and stop appropriate
to the pixel number from the PIXEL column (a). These 36 GTIs are combined with
other GTI and create the GTIPIXEL extension in the output.
The GTI pixel dependent expression are stored in CALDB in the select file. These expressions
are used to create (b) good pixel GTI. The (b) GTI are merged with (a) GTI and other GTI
to create the GTIPIXEL extension.
'ahgtigen' is used to create and merge the good GTI per pixel. The good GTI are merged running
36 times one per pixel using mkffile
, the inverse per pixel of the GTI LOST
and gtifile
The label
parameter is used in 'ahgtigen' with the CALDB selectfile
to calculate GTI from the mkffile
.
By default label
is set to PIXELEXP##
, where ##
is replaced with a pixel number, e.g. PIXELEXP00, PIXELEXP01, etc.
The 36 GTI pixel extensions are combined into a single extension and the column PIXEL is
populated with the pixel number appropriate for that GTI interval.
The bad pixel GTI are created by inverting the 36 extensions and combining in a sigle extension
with the PIXEL column populated with the pixel number appropriate for that GTI interval.
a The task creates one output file with two extensions each containg three columns START and STOP and PIXEL. The extension GTIPIXEL contains the 'good' GTI and the extension GTIPIXELOFF the 'bad' pixel GTI. Both GTIPIXEL and GTIPIXELOFF are sorted by START then STOP then PIXEL and 'coordevt' is run to calculate coordinates up to FOC. The extension GTIPIXELOFF is used in the 'ahexpmap'.
By setting the parameter outfile different from NONE (default), the final start and stop per pixel calculated in the process are saved in two files, one for the good GTI and the other with the bad GTI, both containing 36 extensions one per pixel. These extension only contains START and STOP. The extensions for each pixel are named GTIPIXnn, e.g. GTIPIX00, GTIPIX01, etc. for the good pixel gti and GTIPIXOFFnn, e.g. GTIPIXOFF00, GTIPIXOFF01 etc. for the bad pixel gti.
PIXELEXP##
:
sxspixgti mkffile=in.mkf outfile=sxs_pixels.gti outpixfile=sxs_pxexpo.gti selectfile=CALDB
None, but see help for individual parameters above.
ahgtigen mxsgti
August 2016