NAME

xtedatamode - Summarize XTE PCA / HEXTE science data files


USAGE

         xtedatamode indir outfile 

DESCRIPTION

xtedatamode provides a summary of XTE data files for a given observation.

The task scans an observation directory and creates a summary of the contents of each science file. By default, both the PCA and HEXTE instrument subdirectories are scanned, but this is controlled by the subdirs parameter.

At the default chatter level of 1, a textual table is printed to the console that describes each found file. The task also creates a text-delimited file for machine parsing.

The user specifies the input observation directory. The user may also optionally supply which instrument subdirectories to search using the subdirs parameter (which defaults to "pca,hexte" to scan both instrument directories.

The console table prints one line per science file. The columns in the table are:

For start times, the reference time is the next earliest UTC midnight time as printed at the top of the table.

The output file is a more detailed, machine parsable textual table containing similar information.

PARAMETERS

indir [filename]
Name of input directory containing a single RXTE observation ID. The input directory must be structured as it is stored in the archive, i.e., an FMI file, subdirectories named pca/, acs/, and so on.

outfile [filename]
Name of output file for a detailed machine-parsable table of information. Set to "-" for standard output, or "NONE" to disable output. Since temporary files are created using this output filename, if "-" or "NONE" are specified, then the current working directory is used for temporary files, so care must be taken to be sure the current working directory is writable.

(subdirs = 'pca,hexte') [string]
Name of subdirectories to scan for XTE science files.

(fieldsep = '||') [string]
Field separator to use for the outfile. Do not use a comma because internal string values may have a comma.

(matchglob = "{FS*,SE*.evt*,GX*.evt*}") [string]
Wildcard matching pattern for science files.

(cleanup = yes) [boolean]
Clean up scratch files?

(chatter = 1) [int] range 0-5
Verbosity level of output. At level 0, no output is produced, unless outfile="-". At level 1, a human readable table is produced. At level 2 and higher, additional debugging information is produced.

(clobber = yes) [boolean]
Overwrite output files? By default this is YES, and the task does not function properly if you set it to NO.

(history = yes) [boolean]
Write standard HEADAS parameter history into output file?


EXAMPLES

  # Scan observation 11111-01-01-01.  Do not produce a machine parsable file

  xtedatamode indir=./11111-01-01-01 NONE

  # Save machine parsable file to myfile.txt.
  
  xtedatamode indir=./11111-01-01-01 myfile.txt
  
  # Disable human readable output but print machine parsable file to standard
  # output.
  
  xtedatamode indir=./11111-01-01-01 - chatter=0


SEE ALSO

pcaprepobsid

CATEGORY

Jan95 ftools.xte