| RXTE GOF |
Combining 3-PCU, 4-PCU and 5-PCU Data Recipes from the RXTE Cook Book |
RXTE FAQ |
|---|
- Introduction
- Extracting 3-PCU, 4-PCU and 5-PCU spectra and light curves
- Combining the spectra
- Combining the light curves
In March 1996, PCU3 and PCU4 (if you start counting from 0; PCU4 and PCU5 if you count from 1) began to discharge. Since then, these two PCUs - individually or together - are turned off now and again to prevent further damage. Observers, therefore, should not be surprised to find that their data have been collected with three, four or five PCUs, or a combination of these.
The turning on and off of PCUs 3 & 4 is sometimes scheduled and sometimes automatically triggered. Since it obviously has an important impact on data analysis, you should check your observation against the SOF's XTE PCA High-Voltage History. It is also essential to plot the PCU-related columns from the filter file (see below).
Before looking at the recipe, we should first consider how the spectra, background and responses should be combined.
In general, arrival times are lost when a spectrum is extracted, so a spectral fitting program like xspec can't "know" whether the counts in a PHA file were collected when three PCUs were on or five. This means that should only combine spectra when arrival times don't matter, i.e. when the source was in the same spectral state. Of course, this is usually the scientifically prudent thing to do anyway.
Combining the PHA files, source and background, is straightforward: the total counts is the sum of the individual counts, while the total exposure is the sum of the individual exposures. Less obvious, perhaps, is that the corresponding responses should be be combined by weighting them by background-subtracted counts, rather than by exposure. To see why, consider the extreme example of an observation conducted half the time with all five PCUs and half the time with just one PCU. In this case, five times more incoming photons experience the all five PCUs than experience one PCU. Accordingly, the 5-PCU response should carry five times the weight as the 1-PCU response, rather than the equal weight implied by the exposures. Background-subtracted counts are used in the weighting because the response is applied to background-subtracted spectra.
General instructions for extracting spectra can be found in the recipe Reduction and Analysis of PCA Spectra. Here, we simply emphasise the aspects that pertain to mixed-PCU observations.
In this example, we'll combine the following two sets:
Suppose you now have two light curves from your observation, one with three PCU on (quiescent_012.lc) and one with all five on (quiescent_01234.lc) and two background files (back_012.lc and back_01234.lc) from which you now want to create one background subtracted light curve. For a naive, first order approximation, it is simply a matter of weighting the light curves by the approximate effective areas of the PCU which are on (noting that each is not exactly the same.)
First, use lcmath to subtract the respective estimated background light curves from the data. Call the results somthing like net_012.lc and net_01234.lc.
Here are the approximate fractions for each PCU of the total 5 PCU effective area; these are simply determined from comparing the individual count rates during Crab observations:
So, to determine the weight for your particular combination of PCU, take the inverse of the sum of the corresponding fractions. For our example, to compare the 3 PCU light curve to the 5 PCU light curve, we multiply the former by a factor of 1.63. This is simple to do in lcmath:
Introduction
Extracting 3-PCU, 4-PCU and 5-PCU Spectra and light curves
PCU0_ON
PCU1_ON
PCU2_ON
PCU3_ON
PCU4_ON
NUM_PCU_ON
or the columns containing the count rates from the individual PCUs:
evXEgood_PCU0
evXEgood_PCU1
evXEgood_PCU2
evXEgood_PCU3
evXEgood_PCU4
kaah[21]% maketime
Name of FITS file and [ext#][] realtime_go.xfl
Name of output FITS file[] pcus_01234.gti
Selection Expression[] NUM_PCU_ON.eq.5
Column containing HK parameter names[NAME]
Column containing HK parameter values[VALUE]
Column containing HK parameter times[TIME] Time
Flag, yes if HK format is compact[yes] no
and
kaah[21]% maketime
Name of FITS file and [ext#][realtime_go.xfl]
Name of output FITS file[pcus_01234.gti] pcus_012.gti
Selection Expression[NUM_PCU_ON.eq.5] 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[no]
Combining the Spectra
3-PCU 5-PCU
SOURCE quiescence_012.pha quiescence_01234.pha
BACKGROUND back_012.pha back_01234.pha
RESPONSE p012_L1R1_970218.rsp pca_L1R1_970218.rsp
kaah[66]% grppha quiescence_012.pha
Please enter output filename[] !quiescence_012.pha
.
.
.
GRPPHA[] chkey BACKFILE back_012.pha
GRPPHA[] chkey RESPFILE p012_L1R1_970218.rsp
GRPPHA[] exit
The exclamation mark before the output filename causes the program to overwrite the input file, which is what we want.
quiescence_012.pha
quiescence_01234.pha
kaah[73]% addspec
** ADDSPEC 1.1.1
***** THIS IS A BETA_TEST VERSION (check your o/p) *****
Input ASCII filename[] combine_pha.list
Root of Output filename(s)[] quiescence_combo
Combine any corresponding RMF datasets ?[no] yes
Create background file (if possible) ?[no] yes
Here, addspec:
kaah[55]% fstatistic quiescence_012.pha COUNTS
Range of rows to include[-]
The sum of the selected column is 1906007.0
In our example, we have:
quiescence_012.pha 1906007.0
quiescence_01234.pha 4100638.0
back_012.pha 15664.278
back_01234.pha 33093.738
which yields the weights 0.3173 for the 3-PCU response and 0.6827 for the 5-PCU response. [Note that the background spectra have non-integer total counts because they were extracted from model data generated by pcabackest.]
p012_L1R1_970218.rsp 0.3173
pca_L1R1_970218.rsp 0.6827
kaah[75]% addrmf
ADDRMF vers 1.10 10 April, 1997.
Name of ascii file listing input RMFs or input RMF filenames
[@rsp.txt] @combine_rsp.list
Summing ...
3.173E-01 * p012_L1R1_970218.rsp
6.827E-01 * pca_L1R1_970218.rsp
Name of output RMF file[pca_L1R1_970218.rsp]
quiescence_combo.rsp
RMF # 1 : p012_L1R1_970218.rsp 0.32
XTE PCA PCU0 NONE PHA
RMF # 2 : pca_L1R1_970218.rsp 0.68
XTE PCA PCU0 NONE PHA
XSPEC> data quiescent_combo.pha
you should obtain a similar fit with the individual spectra:
XSPEC> data quiescent_012.pha quiescent_01234.pha
Combining the light curves
PCU 0 -- 0.204
PCU 1 -- 0.204
PCU 2 -- 0.206
PCU 3 -- 0.194
PCU 4 -- 0.191
% lcmath
Name of input FITS file[]net_012.lc
Name of background FITS file[]net_01234.lc
Name of output FITS file[]net_combo.lc
Scaling factor for input[1.]1.63
Scaling factor for background[1.]
Add instead of subract?[no]yes
where saying yes to the last question was a late addition to the tool to allow light curves to be added. This essentially performs the operation 1.62*net_012.lc+net_01234.lc. The result will be a light curve covering the entire time range as though 5 PCU were on the whole time. (Note that this in no way adjusts the error bars.)
If you have a question about RXTE, please send email to one of our
help desks.

