The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
The SWIFT BAT Software Guide Version 6.3 30 ... - HEASARC - Nasa
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
D.6. <strong>BAT</strong>ECONVERT 131<br />
LIN GAIN and LIN OFFSET columns, contain the cubic fit itself rather than the residuals of<br />
the cubic from the linear fit, and the GAINMETH keyword is FULLCUBIC. If zeroit==YES<br />
or CALMODE==LINEAR then the residfile need not exist and residfile can be set to NONE<br />
(or left off the command line).<br />
(pulserfile=“CALDB”) [string ]<br />
Name of the file that contains the pulser DAC to energy calibration coefficients, or “CALDB”<br />
to search CALDB. <strong>The</strong>se are the best known coefficients derived from ground calibration<br />
efforts. Only used for QUADRATIC correction; pulsercal=NONE is allowed for the LINEAR<br />
correction case.<br />
(fltpulserfile=“CALDB”) [string ]<br />
Name of the file that contains the pulser DAC to energy calibration coefficients, or CALDB;<br />
this should be the as-flown coefficients at the time of the observation. Only used for<br />
QUADRATIC correction; pulsercal=NONE is allowed for the LINEAR correction case.<br />
(outfile) [filename ]<br />
Output file name. If an output file name is given,bateconvert will create a new file which is a<br />
copy of the input file with the PI and ENERGY columns filled in. <strong>The</strong> input file will remain<br />
unchanged. Precede the output file name with an exclamation point, “!”, (or “\ !” on the<br />
Unix command line), to overwrite a preexisting file with the same name (or set the clobber<br />
parameter to YES).<br />
(calmode=INDEF) [string ]<br />
<strong>The</strong> calibration mode. <strong>The</strong> currently supported options are LINEAR, QUADRATIC, CUBIC,<br />
DIRECTCUBIC, and FIXEDDAC. If LINEAR is chosen, no residfile is needed, otherwise, the<br />
keyword GAINMETH in residfile must correspond to the calmode. If calmode == INDEF,<br />
the mode will be chosen based on the keyword in the residfile. FIXEDDAC is the preferred<br />
mode for accurate energy correction. LINEAR is provided to do the same correction as is<br />
done by the flight software before the events are binned in a DPH. A linear fit applies two<br />
parameters, gain and offset using the formula: ENERGY=GAIN*(OFFSET-PHA). <strong>The</strong> other<br />
fits perform the linear fit and then adds in a residual to correct for the deviation of the true<br />
fit from linearity, except for DIRECTCUBIC. DIRECTCUBIC computes the energy from<br />
the cubic pre-flight DAC to ADU fit and the values in pulserfile alone, ignoring the changes<br />
indicated by changes in the peaks of the pulser as a function of DAC value in flight.<br />
(zeroit=NO) [boolean ]<br />
An optional parameter requesting bateconvert to set all values in the PI and ENERGY<br />
columns to zero instead of calculating the energy conversion. If zeroit==YES, then calfile<br />
can equal NONE.<br />
(scaled energy=YES) [boolean ]<br />
If YES (default), then the ENERGY column is written as 16-bit integers with a TSCAL scale<br />
factor which converts to keV. If NO, 32-bit floating point values are written directly. <strong>The</strong><br />
default is YES to conserve disk space.<br />
(clobber = NO) [boolean ]<br />
If the output file already exists, then setting “clobber = yes” will cause it to be overwritten.