In order to actually construct the GTI file, mkgti uses the standard FTOOLS maketime and mgtime in the following manner: For each of the three HK file extensions 2, 3, and 4, maketime is invoked on the respective Bintable extension in the input HK file with a suitably constructed boolean expression. This whole process shall create to up to three different individual GTI files which will subsequently be merged with mgtime. The resulting GTI file can then be used for event selection purposes, either with the FTOOL fltime or by reading it into Xselect after an event list file has been defined.
The standard HK parameter interval definitions are
obtained from one of the following sources:
The required boolean expressions for the different invocations of maketime are automatically constructed from the corresponding HK parameter interval definitions. In addition, each resulting expression can be supplemented or completely replaced by boolean expressions provided via the command line. This is controlled through the parameters stdhkints and expr{1,2,3}.
<expr_from_standard_HK_intervals> && ( <expr1> )In case of conflicting parameter intervals in the two sub-expressions, the interval specifications in expr{1,2,3} takes precedence over the standard ones. This means that the parameter intervals in questions will simply be removed from the standard expression before the combined total boolean expression is formed. As an example, if the standard HK intervals yield an expression
PARM1 >= 1 && PARM1 <= 2 && PARM2 >= 10and the conflicting expression
PARM1 == 3was given on the command line, the resulting boolean expression for maketime will be:
PARM2 >= 10 && ( PARM1 == 3)Each specified expression must comply the syntax rules for boolean expressions of the FTOOLS task maketime. In case these rules are breached, the expression parser of maketime will fail to interpret the expression and execution will be aborted.
NOTE: Due to a limitation of maketime's expression parser
the decimal point in floating point numbers MUST always
be followed by at least one digit, e.g., the number "one" must be
specified as "1.0". The "popular" form "1." is not accepted by
maketime.
mkgti kv171_hkg.fits expr1="CELL_TEMPERATURE>=19.0 && CELL_TEMPERATURE <=21.0"
mkgti kv171_hkg.fits caldb=no