correctlc -- Corrects RXTE lightcurves for the effect of having PCUs turning on and off during the observation.
correctlc infile filtfile outfile method pculist clobber
This tool is designed to process a RXTE light curve FITS file and correct it to account for individual PCUs which may have turned on and/or off during the observation. The PCU on/off history is obtained by reading in a standard RXTE filter file which contains PCUn_ON columns during the observation. The corrected light curve is output in a separate (user-specified) FITS file; the original light curve file remains untouched. Three different correction methods are available: the default is "max", which determines the maximum number of PCUs on at any time during the observation and scales up those periods of the light curve when fewer PCUs were on. (If the maximum number is ambiguous the program will exit with a warning). The other two methods available are "one", which scales the entire light curve to a single, average PCU and "user", which corrects to a user-specified PCU list. In all cases both the RATE and ERROR columns are modified by the same factor to preserve the relative error.
1. Correct a lightcurve file to what it would have looked like if only PCUs 0, 1, and 3 were on during the observation:
correctlc infile=raw.lc filtfile=myobs.xfl outfile=corrected.lc method=user pculist=013
2. Correct raw.lc to a single, mean PCU (ie, counts/sec/PCU):
correctlc infile=raw.lc filtfile=myobs.xfl outfile=corrected.lc method=one
This tool replaces and improves upon an earlier Perl script of the same name.