NAME

ixpegaincorrtemp -- Calculate PHA_T column values of IXPE event files

USAGE

ixpegaincorrtemp infile hkfile outfile [parameter = < value >]

DESCRIPTION

'ixpegaincorrtemp' calculates the PHA_T values of IXPE event files. For each event, the PHA_T values are calculated taking into account the gain changes due to variations of the detector temperatures as a function of time.

For each event, a set of payload temperatures is read from the input Housekeeping file (input parameter 'hkfile'). The temperature gain correction has been evaluated from ground calibration data and the coefficients are stored in the input CALDB temperature gain correction file (input parameter 'tempgainfile').

The PHA_T calculation is the result of an interpolation on temperature and on time. First, for each event the two rows valid for the epochs closest to the time of the event are chosen. Then, for each row, given the temperatures associate to the event, the task performs a temperature interpolation.

PARAMETERS

infile [file name]
Name of the input FITS Event File.

outfile [file name]
Name of the output FITS Event File.

hkfile [file name]
Name of the input Housekeeping FITS File.

(tempgainfile=CALDB) [filename]
Name of the input temperature gain correction file. If set to CALDB (default), use the file in the Calibration Database.

(logFile=ixpegaincorrtemp.log) [file name]
Name of temperature gain correction log file.

(logTermLvl=1) [integer]
Log Terminal level (0=dbg, 1=info, 2=wrn, 3=error, 4=critical).

(logFileLvl=1) [integer]
Log File level (0=dbg, 1=info, 2=wrn, 3=error, 4=critical).

(clobber=no) [boolean]
If set to yes, overwrite the output file.

EXAMPLES

  1. Calculate PHA_T values for the input event file 'ixpe00000000_det1_evt1_v01.fits'. The detector temperatures associated to each event is read from the input file 'ixpe00000000_all_pay_1321_v01.fits'. The results are written in the output event file 'ixpe00000000_det1_evt1_v01_out.fits'.

     > ixpegaincorrtemp infile=ixpe00000000_det1_evt1_v01.fits outfile=ixpe00000000_det1_evt1_v01_out.fits
       hkfile=ixpe00000000_all_pay_1321_v01.fits
    

BUGS

SEE ALSO

LAST MODIFIED

Oct 2022