| deadtimev | stsdas.hst_calib.hsp | deadtimev |
deadtimev -- Calibrate digital linearity (i.e., pair-pulse correction coefficient or dead time).
deadtimev intable outtable
Fit the following dead time formula between the observed digital count rates and their simultaneously-obtained analog counterparts:
D = ratio * A / ( 1 + ratio * A * tau)
where D is the observed digital count rate, A is the count rate derived from the simultaneous analog measurement, ratio is a scaling factor to compensate for any possible inaccuracy of the gain factor, and tau is the dead time. A non-linear least squares algorithm is used to determine ratio and tau.
Before actually performing the least squares fitting, raw count rates have to be adjusted, as follows:
scaled digital count rate = raw digital count rate
scaled analog count rate = (((raw analog DN - CVC offset)
/ gain factor - analog dark signal
- analog pre-amplifier noise)
* digital high voltage factor
/ analog high voltage factor) + digital dark signal
+ digital pre-amplifier noise
The maximum number of input data points is 2,000.
'DETECTOB' Object detector ID (int). 'APERTOBJ' Object aperture name (char*10). 'VOLTAGE' High voltage setting (real). 'VGAIND' Gain setting (real). 'THRESH' Discriminator setting (real). 'DET_TEMP' Detector temperature (real). 'DEA_TEMP' DEA temperature (real). 'EPOCH' Epoch of observation (double). 'PTSRCFLG' Point source flag (char*1). The task also needs the following columns: 'DOBJ' Digital count rate (real). 'DOBJ_ERR' Mean error of digital count rate (real). 'AOBJ' Analog reading (real). 'AOBJ_ERR' Mean error of analog count rate (real).
'DETECTOR' Detector ID (int).
'NPOINTS' Number of input data points (int).
'ITERMAX' Number of iterations used in the least squares
fitting (int).
'DEADTIME' Dead time obtained from the fitting (real).
'DEADTIME_ERR' Error of the dead time (real).
'RATIO' Scaling factor between digital and analog count
rate (real).
'RATIO_ERR' Error of the scaling factor (real).
'CHISQ' Chi squared of the fit (real).
'TEMPMIN' Lowest temperature of all observations (real).
'TEMPMAX' Highest temperature of all observations (real).
'TEMPAVE' Average temperature (real).
'VOLTAGE' High voltage setting (real).
'THRESH' Discriminator setting (real).
'DIGITAL_WT' Weight flag of digital count (real).
'ANALOG_WT' Weight flag of analog count (real).
'TOLERANCE' The fractional sigma-squared change of the last
least squares iteration (real).
'FRAC' Specified fraction applied to the coefficient
modification during the least squares fitting
(real).
'EPOCHMIN' Lower limit of epoch (double).
'EPOCHMAX' Upper limit of epoch (double).
'EPOCHAVE' Average epoch (double).
1. Calibrate digital linearity from the input data table xdeadtimev$input1 and put results in the output table ydeadtimev$output while saving intermediate result in another local table whose name will be announced to the user. The analog count rates are weighted equally and the weights of digital count rates are inversely proportional to their variance.
hs> deadtimev "xdeadtimev$input1" "ydeadtimev$output" save=yes
xweight=0 yweight=-2