pcaclrsp -- creates a collimator corrected light curve for an XTE PCA input light curve.
pcaclrsp lcfile outfile xtefilt pcu collcube
This task computes the collimator correction for an XTE PCA light curve. It computes the correction from the source position and the instrument pointing. If the jitter in the pointing is less than the nominal jitter, then an average pointing is used for the entire light curve. The collimator correction value corresponding to this average pointing is stored as a keyword value in the extension header of the output file. If the jitter is greater than the nominal jitter, then the current pointing is used for each time in the light curve. In the latter case, if the sampling (i.e. bin size) in the light curve is less than the sampling rate in the pointing, then the pointing is obtained via interpolation. On the other hand, if the sampling in the light curve is larger than that of the pointing, then an average pointing over the duration of the bin is used. The user may override the nominal jitter criterion via the hidden jitter parameter.
If the source lies outside of the field of view, a warning message is given and the returned intensity is set to INDEF for that time stamp. The input file is copied to the output file. Intensities for times lying outside the desired start and stop times are given a value of INDEF. When quaternions are not available for a desired time, the rate is also given a value of INDEF.
1. Construct the collimated corrected light curve for the file std2one.lc, using the quaternion files FH0e_2e89a5c-2e90abf. The input file represents the intensity from all the detectors (pcu=all). The collimator cube file will be fetched from caldb, and the output light curve will be written to std2oneclrsp.lc.
pcaclrsp std2one.lc std2oneclrsp.lc FH0e_2e89a5c-2e90abf all CALDB