The ABC of XTE
Data Files
Data Files
Postscript version of this chapter
Although you don't need to understand fully the detailed contents of RXTE data files in order to reduce RXTE data, some knowledge of file structure and contents will certainly make your RXTE life easier. Fortunately, despite the plethora of modes and configurations for PCA and HEXTE, there are only two basic formats for science data: science array and science event. These two basic formats are described in this chapter and follow a brief description of RXTE FITS files in general. Also described here are the RXTE filter files which enable "good" data to be selected on the basis of various housekeeping data.
Using just two basic formats requires that the hundreds of different configurations be described for software in a comprehensive and unified way. This task is performed by DDL - the Data Description Language in which certain configuration-identifying keywords are written. Knowing DDL is not strictly necessary, but is included here in a footnote for completeness. PCA modes and configurations are described individually in the
PCA Issues chapter; HEXTE modes and configurations in the HEXTE Issues chapter.
All RXTE data files are in FITS format and have the following parts:
The following ftools display summaries or the full contents of FITS files. We recommend you run them on one or two sample FITS files to get an idea of the structure and contents of your data files.
The keyword values in the primary header provide information about the start and stop times of the observation, the time units, the target, the Principal Investigator etc. You can view a primary header (and the rest of the FITS file) by using the ftool fdump. Most of these keywords, such as OBSERVER, have obvious meanings. However, the keywords associated with time require further explanation.
Time in RXTE data files is kept in TT (Terrestrial Time), the IAU standard and successor to Ephemeris Time (ET). TT and its relationship to other time systems is described in the Time Tutorial chapter. In general, the times stamped on data in RXTE files have the following properties:
The science array format is used for data binned at regular intervals by the spacecraft electronics. Examples are the PCA Standard 2 configuration, which contains 129-channel spectra accumulated every 16 seconds, and HEXTE multi-scalar Bin mode, which contains light curves in 1-8 spectral bands. The data occupy the XTE_SA extension in the form of regularly accumulated arrays or histograms.
The XTE_SA extension contains the science data arranged in columns (for different kinds of data) and rows (for each accumulation). The individual column-row cells may contain single values or arrays, depending on the kind of data. For example, the Time column contains one value per row, whereas the XeCnt column in certain PCA files contains, per row, a histogram of count rates in different energy bands. For modes with data histogrammed according to time, this means that the histogram step size - not the accumulation
time - represents the actual time resolution of the data.
Important point: The times associated with binned data in science
array files always refer to the beginning of the bin. This
convention makes it much easier for software to keep track of time
within the histograms. Likewise, in the light curves produced by the
current extractors, the time also refers to the beginning of the bin,
as reflected in the TIMEPIXR keyword value of 0.0. (Older versions of
the extractors may have used TIMEPIXR=0.5.)
Since the Science Array format is a broad scheme, rather than a detailed prescription, the actual data format for a given configuration is described in the file itself - in the form of keywords in the extension header which you can view, like the rest of the FITS file, by using the ftool fdump. The most important of these are as follows:
RXTE science array files have two additional extensions containing good time intervals (GTI). Both are called GTI.
The first GTI extension, the second extension in the file, contains the ANDed GTI corresponding to the times when:
The satellite is pointing at the nominal source position, as derived from the spacecraft attitude
The nominal source position is not occulted by the Earth, as predicted by mission operations
The satellite is outside the South Atlantic Anomaly, as predicted by mission operations
The second GTI extension, the third extension in the file, contains the GTI corresponding to when telemetred data are present, i.e. just the first of the four criteria in the first GTI extension.
The science event format is used for unbinned data, i.e. for individual events. An example is the PCA Good Xenon configuration which contains time-stamped events with 256-channel resolution, PCU ID and anode ID. The science data occupy the XTE_SE extension in the form of event words - binary-encoded descriptions of the individual events. This format is more compact than the
column-based format used for ROSAT and ASCA
event-lists, and is fundamentally different.
The XTE_SE extension contains the science data arranged in rows (one per event) and in two columns: the first, Time, for the time; the second, Event, for the event word. Event words comprise strings of ones and zeros, the combinations of which define the properties of each event with respect to a template of all possible properties within the configuration. This template is broken up into sections which, depending on the particular configuration, refer to things like PCU ID, PHA channel band, etc. Thus, an individual event word, with its particular combination of ones and zeros, picks out, say, one PCU ID, one PHA channel band etc.
Since the Science Event format is a broad scheme, rather than a detailed prescription, the actual data format for a given configuration is described in the file itself - in the form of keywords in the extension header which you can view by using the ftool fdump (note, however, that fdump will not display event words). The most important of these are as follows:
Like science array files, event files also have a coda of keywords summarizing EDS activity.
For a detailed explanation of this particular event word, please refer to the section in the PCA Issues chapter on Generic Event Mode configurations. For more about DDL, see the DDL footnote to this chapter.
Unlike PCA Event modes, there are no M-tokens and no "alternative" event words in HEXTE Event files. This is because the non-events that would require alternative event words are not included in telemetry. This means, for example, that a HEXTE event file will not contain an instance of a non-zero calibration flag, i.e. E[CAL] will not equal 1. It also means that there is no need to select events based on the calibration flag.
RXTE science array files have two additional extensions containing good time intervals (GTI). Both are called GTI.
The first GTI extension, the second extension in the file, contains the ANDed GTI corresponding to the times when:
The satellite is pointing at the nominal source position, as derived from the spacecraft attitude
The nominal source position is not occulted by the Earth, as predicted by mission operations
The satellite is outside the South Atlantic Anomaly, as predicted by mission operations
The second GTI extension, the third extension in the file, contains the GTI corresponding to when telemetred data are present, i.e. just the first of the four criteria in the first GTI extension.
RXTE filter files contain the values of various housekeeping data and
derived quantities with which good data can be selected. For
instructions on how to use filter files, please see the recipe on Reduction and Analysis of
PCA Spectra. For instructions on how to create a new filter
file, see the recipe
Creating XTE Filter Files. In this section we describe the
files
themselves.
Conventionally, there is one filter file for each Observation ID,
i.e. for each temporally contiguous collection of data from a single
pointing. The filter file for a given ObsId can be found in the
Standard Products subsystem - unless, that is, your data tape was made
in the first few months of AO-1, in which case you have to make your own. In fact, you'll also have to
make a filter file if the exisiting one does not contain the
BKGD_THETA, BKGD_PHI, TIME_SINCE_SAA, and ELECTRONn columns needed by the background generator pcabackest.
Note that whilst a filter file spans an entire ObsId, the corresponding PCA and HEXTE data trains can contain gaps - for instance, when the instruments were turned off to protect them from the SAA.
The files themselves contain regularly spaced rows in time (the default bin size is 16 seconds) made up of fifty or so columns, each containing a housekeeping or derived parameter. Examples are the high voltage across the three Xenon layers in PCU0 (with the column name hvXE_PCU0) and the Right Ascension of the instantaneous pointing direction (POINT_RA). You can list all the column names by using the ftool flcol on the filter file.
We provide here brief instructions for creating a filter file. For
further details, see the recipe
Creating XTE Filter Files.
The Perl script xtefilt will make a filter file, automatically consulting the appropriate housekeeping files. It requires, as input:
The path to the directory containing your FITS Master Index (FMI) file , (e.g. /home1/day/xte/P10367 if that's where the file FMI is).
A file listing the
Application
IDs used to generate the filter file. This list changes as
experience with data screening grows, and as modifications are made to
estimating the PCA background. The current version of the list can be
found by typing fhelp xtefilt. Please cut and paste its
contents into your own file.
Introduction
FITS Files
Basic Structure
A general guide to FITS format can be obtained via anonymous FTP at
the FITS home page.
Useful Ftools for Examining FITS Files
As with all ftools, typing fhelp followed by the name of the ftool will yield on-line help. You can also visit the ftools page.
Important Timing Keywords in the Primary Header
Science Array Files
Basic Structure
The XTE_SA Extension
Note: The XTE_SA extension in PCA science array files also contains additional columns devoted to various EDS flags, as well as a collection of keywords called the coda which summarize EDS activity. The flags and coda are usually not important, but are described in a footnote for completeness.
D[0] & E[X1L^X1R^X2L^X2R^X3L^X3R] & C[0~255] & T[0.0;0.125;1024]
which means that the data come from Detector 0 (i.e. PCU0), from any one of the six detector Elements (xenon anodes), in one band spanning Channels 0-255, and packaged in a Time histogram with zero offset, and 1024 0.125-second steps.
The Two GTI Extensions
Telemetred data are present
Science Event Files
Basic Structure
The XTE_SE Extension
D[0~4] & E[X1L^X1R^X2L^X2R^X3L^X3R] & C[0~249]
which means that the data come from Detector 0-4 (i.e. PCU0-4), from any one of the six detector Elements (xenon anodes), from Channels 0-249 (but not necessarily in one band).
D[0~3] & E[0~131071] & C[0~255] & T[0~16]
which means that the data come from Detectors 0-3 , with 17 bits of additional event information (see section on HEXTE Event List configurations and from Channels 0-255.
(M[1]{1},D[0:4]{3},T[0.0:0.00390625;9.5367431640625e-07]{12})^(M[12&
7]{8},S[One5]{5},S[FirstFlag]{1},S[SpillFlag]{1},S[Zero1]{1})^(M[1]&'
{8},S[LostEvents0]{8})^(M[2]{8},S[LostEvents1]{8})^(M[4]{8},S[Zero]&'
{7},S[Spillage]{1})^(M[8]{8},S[Zero]{5},S[ModeSpecific]{3})
This looks intimidatingly verbose. However, the keyword actually contains six alternative event words, each denoted by an M-token (emboldened here for clarity) which tells the RXTE software which of the six applies to the row. It is the first event word which describes the science data: the last five event words are for various EDS flags.
E[0:63] {6}, E[CAL] {1}, T[0:15;1] {4}, D[0:3] {2}, E[LE1,LE0] {2},
T[0:1;7.62939453125e-6] {17}, C[0:255] {8}
and is described in more detail in the section HEXTE Event List configurations.
The Two GTI Extensions
Telemetred data are present
Filter Files
Properties
How to Make a Filter File
The ObsID (e.g. 10367-02-02-00). Note that for realtime data, the ObsId is different. Please check the recipe Working with Realtime Data for details.
Additional, optional inputs are possible, including changing the size of the time bins from 1 second (the default). Typing fhelp xtefilt will display complete instructions for using xtefilt. An example of its use:
> xtefilt -o "10367-02-02-00" -p "/home1/day/xte/" -a "applist" -t 100
where applist contains the list of AppIds and the time bins are set to 100 seconds.
The ABC of XTE is written and maintained by the RXTE GOF. Please email xtehelp@athena.gsfc.nasa.gov if you have any questions or comments. This particular page was last modified on Thursday, 16-Sep-1999 08:53:49 EDT.