The nigti task creates a NICER GTI file from a textual list of GTI time ranges.
The input of the task is a list of time ranges, as text. This list can either be a comma-separated list of time ranges on the command line, or a text file with one time range per line.
Each time range describes the start and stop time of an interval. It can be of the form, "A-B" or "A B" where A and B are time specifications.
Time may be specified in several appropriate units. Allowed formats are: p
Here are some valid input time ranges:
2022-01-01T00:00:00-2022-01-01T01:00:00 (UTC time with dash separator) 2022-01-01T00:00:00 2022-01-01T01:00:00 (UTC time with space separator) 252806402-252810002 (MET time with dash separator) 252806402 252810002 (MET time with space separator)It is also possible to mix and match time formats in the same range, although that may lead to confusion. No extraneous text, other than whitespace, is permitted before the start of the time range, but any text following the time range is ignored.
The task also handles any solitary whitespace, or any empty input file. input as an empty GTI.
If a file input is specified, lines are eliminated if they are empty whitespace, or comment lines beginning with "#", "//" or ";", or any wholeline delimiters consisting of all dashes or equal signs.
The invert parameter specifies that the input time ranges are "bad times," so the resulting output file will be a GTI that inverts the sense of the input.
When setting invert=YES, or the input GTI is empty, the task will need to know a natural time range to consider as good for the whole mission. The task has reasonable defaults for tstart and tstop but they can be modified.
Create a GTI with the specified UTC time ranges in 2022.
nigti "2022-01-05T00:00:00-2022-01-05T01:00:00,2022-01-05T02:00:00 2022-01-05T02:10:00" outfile.gti
Do the same but with MET values.
nigti "252806402-252810002,252813602-252814202" outfile.gti
Do the same with an input file instead of on the command line. Create a file named infile.lis with these contents.
2022-01-05T00:00:00-2022-01-05T01:00:00 2022-01-05T02:00:00 2022-01-05T02:10:00and execute this command.
nigti @infile.lis outfile.gti
Use the same file input but consider the file to contain bad times, and create a corresponding GTI file.
nigti @infile.lis outfile.gti invert=YESSEE ALSO
,LAST MODIFIED
Feb 2024