NAME

mxsgti - Create MXS GTI files

USAGE

mxsgti infilehk outfilehk finegti coarsegti timfile delayfile

DESCRIPTION

'mxsgti' creates two GTI files by running 'mxstime' and 'gtiinvert'. First 'mxstime' is run to create the fine and the coarse GTI from the MXS based on parameters from the input SXS HK file. 'gtiinvert' is then run on both the coarse and fine output GTI to create a MXS off GTI for each of the four LED GTIs. Finally, GTI is merged for LED1 & LED3 to create a merged MXS on GTI and merged MXS off GTI. Similarly LED2 & LED4 are merged.

The output fine GTI file has ten extensions:

The output coarse GTI file has ten extensions:

PARAMETERS

infilehk [filename]
Input HK file

outfilehk [filename]
Output HK file

finegti [filename]
Output fine GTI file for MXS

coarsegti [filename]
Output coarse GTI file for MXS

timfile [filename]
Input TIM file

delayfile [filename]
Input instrument delay file (or CALDB)

(leapsecfile = REFDATA) [string]
Input leap second file (or CALDB, [REFDATA])

(stimecol = S_TIME) [string]
Name of S_TIME column

(tioncol = FWE_TI_LED#_ON) [string]
Input TI columns with LED on (#=1-4)

(tioffcol = FWE_TI_LED#_OFF) [string]
Input TI columns with LED off (#=1-4)

(plslencol = FWE_LED#_PLS_LEN) [string]
Input pulse length columns (#=1-4)

(plsspccol = FWE_LED#_PLS_SPC) [string]
Input pulse spacing columns (#=1-4)

(timeoncol = TIME_LED#_ON) [string]
Output LED-on time columns (#=1-4)

(timeoffcol = TIME_LED#_OFF) [string]
Output LED-off time columns (#=1-4)

(calctime = yes) [boolean]
Perform time assignment ([yes]/no)

(calcgti = yes) [boolean]
Produce GTI files ([yes]/no)

(afterglow = no) [boolean]
Add afterglow to fine GTI STOP times (no/[yes])

(dtdecay = CALDB) [string]
Afterglow time [s] (or CALDB)

(interp = twopoint) [string]
Interpolation method (NEAREST, TWOPOINT)

(margingti = yes) [boolean]
Create GTI between TSTART/TSTOP and first/last input GTI

(tstart = DEFAULT) [string]
Value to use for TSTART in seconds (or take from infile)

(tstop = DEFAULT) [string]
Value to use for TSTOP in seconds(or take from infile)

(dt = 0.) [real]
Time separation between input and output GTI (seconds)

(cleanup = yes) [boolean]
Delete temporary files ([yes]/no)

(clobber = no) [boolean]
Overwrites the existing output file if set to yes (yes/[no]).

(chatter = 1) [integer]
Chatter level for output. Set to 0 to suppress output, or to 1, 2, or 3 for increasing the chatter of the output.

(logfile = !DEFAULT) [string]
Log filename. If set to DEFAULT uses the name of the task and, if preceded by '!', overwrite the file if it exists. If set to NONE no log file is created.

(debug = no) [boolean]
Diagnostic output is printed out on the screen if set to yes (yes/[no]).

(history = yes) [boolean]
Records tool parameters in HISTORY ([yes]/no).

(mode = ql) [string ql|hl|q]
Mode to query the parameter file. Acceptable values include: 'ql' (query and learn/remember), 'hl' (hidden and learn/remember), 'q' (query but don't remember)\ , 'h' (hidden).

EXAMPLES

  1. The following command calculates GTI for MXS using the default settings for mxsgti, mxstime and gtiinvert:

    mxsgti infilehk=sxs_a0.hk1 outfilehk=sxs_a0.hk1.out finegti=fine.gti coarsegti=coarse.gti

NOTES

None, but see help for individual parameters above.

SEE ALSO

mxstime gtiinvert

LAST MODIFIED

February 2016