grosstimefilt -- filters an RXTE input file by time
grosstimefilt -i "infile" -f "outfile" -r (switch to RAW time) -a (switch to Absolute time) -t "Time ranges" -h (help) -c "yes/no"
or
grosstimefilt -r -a
grosstimefilt is a script that queries the user for a series of time ranges, and filters an input file so that only data from times within those ranges will be written to the output file.
The output file will have the KEYWORDS for TSTART and TSTOP modified as well as the checksum values. It is also capable of updating keywords TSTARTI, TSTARTF, TSTOPI, and TSTOPF.
This script file allows the user to apply a gross time filter to an input file, creating an output file containing a small subset of the original data for easier subsequent manipulation. The user specifies input and output filenames, and a series of relative or absolute time ranges, and the script creates an output file containing only the data within those time ranges. Such gross time filtering might be useful when a great deal of analysis will be done on a relatively short stretch of data. Examples are the study of a 20-second burst within a 1-hr event file, or the creation of a high time resolution light curve covering a short interval.
For times relative to the start time of the input file (e.g., 0-250.0, 350.0-500.0, 750.0-1000.0), the appropriate time conversions are performed using the time keywords in the input file. Input time ranges must have a dash (-) between start and stop times, and a comma separating the ranges.
The script assumes that the input file has the data in the first extension and (optionally) a second extension for the GTI information.
Note that there are two options -r (for RAW time) and -a (for ABSOLUTE time). If neither -r or -a are specified the default is to assume that all input time-ranges are in relative time. Some examples of all three usages follow:
Assume we have a file covering 1000.00 seconds of observation time with TSTART(I/F)=78358000.00000080 and TSTOP(I/F)=78359000.000000080 and a TIMEZERO(I/F)=3.33300000 seconds. We want to select out the first 100.00 seconds of data. The three ways to do this are:
grosstimefilt -r -t 78358000.00000080 - 78358100.00000080
To run the code so that it prompts for the time ranges and process that information as RAW times, call the script using
grosstimefilt -r
grosstimefilt -a -t 78358003.33300080 - 78358103.33300080
To run the code so that it prompts for the time ranges, processing that information as ABSOLUTE times, call the script using
grosstimefilt -a
1. grosstimefilt -r -a -i "FSXX_AAAAAAAA_BBBBBBB" -f "FS_new" -t "0-250.0, 350.0-500.0, 750.0-1000.0" -c yes 2. grosstimefilt -r -a
grosstimefilt ONLY filters the data in the data extension. The TSTART(I/F) and TSTOP(I/F) values are updated, along with the CHECKSUM and DATASUM keywords, but the GTIs are left unchanged.
Please report problems to xtehelp@athena.gsfc.nasa.gov.
SAEXTRCT, SEXTRCT, TIMETRANS, and FSELECT for more information