| RXTE GOF |
Reduction and Analysis of PCA Binned-Mode Data Recipes from the RXTE Cook Book |
RXTE FAQ |
|---|
- Introduction
- Which configuration to analyze?
- Reduction of spectral data
- Analysis of spectral data
- Simultaneous fitting of HEXTE spectra
- Other PCA configurations
After a brief preamble on which configuration to choose for spectral analysis, this recipe outlines all the steps in producing and analyzing spectral data from the PCA. Where appropriate, links are provided to more detailed information, the aim here being to provide a check-list of all the things that need to done.
The Standard-2 configuration, automatically used for all observations, provides all the key information for accurate spectral analysis, namely:
This recipe, therefore, uses Standard-2 data throughout, but includes a section on other configurations like Good Xenon and Binned Burst Catcher.
Here we sketch all the steps involved in producing the files needed by xspec, namely, source and background spectra and a response. To avoid confusing generalities, this example assumes that your observation is of a flaring AGN.
Another thing you can determine from the number of PCU on is when the SAA passages occur. At these times, all PCU are turned off, so NUM_PCU_ON goes to zero.
To list all the columns in a filter file, use the ftool flcol. For more information about plotting, please check the recipe Plotting with PLT.
Note that all but the earliest RXTE data files have two extensions called GTI, the first of which contains the times when:
The second GTI extension includes time when only the first of the above apply.
These GTI are applied by answering "APPLY" to the saextrct prompt Input GTI files to be OR'd. Filtering with only the GTIOR file, however, is not usually sufficient, which is why we recommend making a GTIAND file using the selection criteria discussed above. Mainly, this is because the SAA passages may not occur exactly as predicted, nor do the Earth occults; in addition, the GTIOR's criterion for determining occults does not take into account possible bright Earth effects.
To make your own GTI file to be AND'ed in the extractor, use the tool maketime. This tool will make a FITS GTI file from any FITS file with a time column and other columns from which to select. It will take either Fortran or C style. For example, to filter out occults and bright Earth, slews, and times where all PCU's are off during SAA and only three are on otherwise:
Note that the tool is case insensitive with regard to column names and that the last input must be changed from the default 'yes' to 'no' for XTE data. This file can then be put into either saextrct or seextrct as the GTI file to be AND'ed.
For analysis of faint sources, we recommend the additional expressions (TIME_SINCE_SAA > 30 || TIME_SINCE_SAA < 0.0) && ELECTRON2 < 0.1, which will filter out data within thirty minutes of the peak of SAA and that with high electron contamination.
For example, if PCU0, PCU1 and PCU2 were the only PCUs on during your observation, you could create the file pcu012.col containing:
Plot your light curve with "fplot offset=yes", entering TIME as the x-axis and RATE[ERROR] as the y-axis. Looking at the plot:
Here we summarize the steps and associated xspec commands used when analyzing PCA spectra. An additional subsection shows how to fit other spectra simultaneously. In this example, the files comprise:
After starting up with "xspec":
If, however, your subtraction looks bad, there are several tricks described in the pcabackest recipe under "problems and remedies" which may improve it. If you cannot adjust the modeled background to your satisfaction , you might try using real background from blank-sky observations. RXTE performed a series of blank-sky observations in November and December 1996. To obtain the data, either FTP anonymously to legacy.gsfc.nasa.gov and get the files in the directory
/xte/data/archive/AO2/P20801 or use
Browse to find the proposal.
Let's assume we have the HEXTE files (Clusters 0 & 1) corresponding to the PCA spectrum flare_all.pha, i.e. extracted with the same time filter flare.tint:
The simultaneous fitting of PCA and HEXTE spectra falls into this latter category, since, at this stage of the mission, the two instruments are not accurately cross-correlated. By using data groups, you can allow the PCA and HEXTE normalizations to vary separately while sharing the parameters than define the spectral shape.
In this example, we'll assume, for the sake of convenience, that the PCA is accurately calibrated and allow the normalization of HEXTE to vary separately. Further, we'll assume that any differences in response between the two HEXTE Clusters are fully accounted for in their respective responses.
As mentioned above, the only good reason to extract spectra from a configuration other than Standard-2 is to obtain better time resolution than 16 seconds. Whilst this presents no special problems for extracting source spectra, generating background is not quite as straightforward as for Standard-2.
The data used by pcabackest to generate synthetic background have an intrinsic resolution of 16 seconds. The full model, therefore, cannot be applied without interpolation (which doesn't work well at present). However, time-series analysis of background data shows that the background light curve does not contain much power above 0.1 Hz. Practically, this means that the same 16-second pcabackest spectrum can be used as background for, say, all four 4-second extracted from the same time interval - although at present it's hard to quantify how much additional error this entails.
A second area that requires extra attention is channel binning of the background data. In its current version, pcabackest can output data with two binnings: Standard-2 with 129 bins, and, via linear interpolation of the former, Good Xenon with the full 256 bins. Choose the latter binning scheme, then:
Introduction
Which Configuration to Analyze?
Another desirable property of Standard-2 is that the datafiles are in science array format rather than the slightly more "difficult" and voluminous science event format of Good Xenon. Moreover, the background generator pcabackest creates synthetic datafiles that look just like Standard-2, so that reducing them in parallel with the real thing is straightforward. Given these obvious advantages, the only good reason to use a configuration other than Standard-2 for spectral analysis is to obtain temporal resolution better than the 16 seconds of Standard-2.
Reduction of Spectral Data
PCU0_ON
PCU1_ON
PCU2_ON
PCU3_ON
PCU4_ON
NUM_PCU_ON
Periods where the number of PCUs on is different should be reduced separately and combined later - see the recipe Combining 3-PCU, 4-PCU and 5-PCU Spectra for details.
olegacy [84] [day] ~: maketime
Name of FITS file and [ext#][] FP_3c7a9f5-3c855c1.xfl
Name of output FITS file[] basic.gti
Selection Expression[] elv.gt.10.and.offset.lt.0.02.and.num_pcu_on.eq.3
Column containing HK parameter names[NAME]
Column containing HK parameter values[VALUE]
Column containing HK parameter times[TIME]
Flag, yes if HK format is compact[yes] no
X1LSpecPcu0
X1RSpecPcu0
X2LSpecPcu0
X2RSpecPcu0
X3LSpecPcu0
X3RSpecPcu0
X1LSpecPcu1
X1RSpecPcu1
X2LSpecPcu1
X2RSpecPcu1
X3LSpecPcu1
X3RSpecPcu1
X1LSpecPcu2
X1RSpecPcu2
X2LSpecPcu2
X2RSpecPcu2
X3LSpecPcu2
X3RSpecPcu2
and the file pcu012_top.col containing:
X1LSpecPcu0
X1RSpecPcu0
X1LSpecPcu1
X1RSpecPcu1
X1LSpecPcu2
X1RSpecPcu2
For more information about PCU and anode selection, please check the recipe Selecting Data by Detector and Anode.
Then run timetrans to generate time filters. Here, we'll call then flare.tint and quiescent.tint.
flare_all.pha quiescent_all.pha
flare_top.pha quiescent_top.pha
flare_back_all.pha quiescent_back_all.pha
flare_back_top.pha quiescent_back_top.pha
pca_LR1_961029.rsp
pca_xe_961029.rsp
Spectral Analysis
All layers:
Source spectra ........ flare_all.pha
Background spectra .... flare_back_all.pha
Response .............. pca_xe_961029.rsp
Top layer only:
Source spectrum ....... flare_top.pha
Background spectrum ... flare_back_top.pha
Response .............. pca_LR1_961029.rsp
. To check your subtraction, it's best to look at a plot of unsubtracted source and background together. Using the
all-layer flare spectra as an example, the xspec commands are:
XSPEC> data flare_all.pha flare_back_all.pha
XSPEC> resp 1 pca_xe_961029.rsp
XSPEC> resp 2 pca_xe_961029.rsp
XSPEC> setplot energy
XSPEC> plot ldata
Look at the high-energy part of the spectra where the background predominates. If the subtraction is good, the two spectra should lie on top of one another.
XSPEC> data flare_all.pha
XSPEC> back flare_back_all.pha
XSPEC> resp pca_xe_961029.rsp
XSPEC> plot ldata
The plot should give you an indication of the useful pass-band. There are no useable data below 2.0 keV, so these should always be excluded. Where, at high energies, to curtail the pass band depends on where the source spectrum meets the background. Assuming that the background predominates above 40 keV:
XSPEC> ignore 0.0-2.0 40.0-**
XSPEC> mo wa po ga
mo = wabs[1] (powerlaw[2] + gaussian[3])
Simultaneous Fitting of HEXTE Spectra
Source spectra ....... flare_cl0.pha, flare_cl1.pha
Background spectra ... flare_back_cl0.pha, flare_back_cl1.pha
Response ............. hexte_mt5_pwa_archive.rsp, hexte_mt5_pwb_archive.rsp
The only "knack" to simultaneously analyzing multiple spectra lies in specifying the PHA files. When you want to apply exactly the same model with exactly the same parameters to all your spectra, then you can simply list all the PHA files after a single "data" command. Sometimes, however, you want to fit the same model to all your spectra with some parameters shared but with other parameters taking on different values depending on the spectrum. In this case, the "data group" is included in the "data" command.
Other aspects of multi-group fitting:
XSPEC> data 1:1 flare_all.pha 2:2 flare_cl0.pha 2:3 flare_cl1.pha
Each datafile is prefixed with a group specifier. The first number gives the group, the second the file. This means, for example, that 2:3 flare_cl1.pha is in the second group and is the third file overall.[Note that if we're not sure of the
Cluster-0/Cluster-1 cross-calibration, we could assign flare_cl1.pha to a third group.] To associate background and response files with individual files, use the file number, as before (the group doesn't matter here):
XSPEC> back 1 flare_back_all.pha
XSPEC> resp 1 pca_xe_961029.rsp
XSPEC> back 2 flare_back_cl0.pha
XSPEC> resp 2 hexte_mt5_pwa_archive.rsp
XSPEC> back 3 flare_back_cl1.pha
XSPEC> resp 3 hexte_mt5_pwb_archive.rsp
XSPEC> newpar 10 = 3
Yes, the spaces are obligatory.
XSPEC> newpar 10 1.04
XSPEC> plot ufspec
There should be an obvious discontinuity where the pass-bands overlap.
XSPEC> mo wa po ga
Instead, for more than one group, use:
XSPEC> mo wa ( (po const) + (ga const) )
mo = wabs[1] (constant[3] (powerlaw[2]) + constant[6] (gaussian[5]))
This time, when you enter the parameter values, the normalizations should be treated as shared parameters while the constants should vary separately. The additional step of tying the two constants together within each group is done with the newpar command before fitting. In our three-group example, we'd say:
XSPEC> newpar 8 = 4
XSPEC> newpar 16 = 12
XSPEC> newpar 24 = 20
where, the two constants are parameters 4 & 8 in the first group, 12 & 16 in the second, 20 & 24 in the third.
Other PCA Configurations
Finally, remember that for all configurations except Standard 1 & 2 and Good Xenon the EDS applies gain and offset corrections before telemetry to align the gains of the individual PCUs to a common scale. Since you generate background and response after telemetry, you have to apply the same gain alignment on the ground. For the background, this is simply a matter of answering "yes" to the pcabackest question:
Correct for PCU Xenon gain variations?
For the response, it's even simpler, as pcabackest automatically recognizes whether the input PHA file requires the gain alignment and applies it to the PHA file and response.
If you have a question about RXTE, please send email to one of our
help desks.

