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.
134 APPENDIX D. <strong>BAT</strong> SOFTWARE TOOL REFERENCE<br />
D.7 <strong>BAT</strong>EREBIN<br />
D.7.1 NAME<br />
baterebin - read in a survey DPH and rebin the energy spectra using non-linear corrections<br />
D.7.2 USAGE<br />
baterebin infile outfile calfile [residfile pulserfile fltpulserfile outmap lowecare<br />
highecare detmask ebins outdatatype wholecount rows<br />
D.7.3 DESCRIPTION<br />
This code reads in a <strong>BAT</strong> Detector Plane Histogram (DPH), which is organized as a single threedimensional<br />
binary table with spectral information for each <strong>BAT</strong> detector arranged by geometric<br />
location in the focal plane. <strong>The</strong> tool extracts the individual detector spectra and reanalyzes them<br />
using cubic corrections from a ground cal file. A new DPH is output with the new spectra.<br />
D.7.4 PARAMETERS<br />
infile=”” [string ]<br />
Input file name, which must contain a detector plane histogram (extension names <strong>BAT</strong> DPH<br />
and EBOUNDS must be in the file).<br />
outfile=”” [filename ]<br />
Name of the output file. <strong>The</strong> output file is also a DPH file with a new DPH COUNTS column<br />
that has been corrected.<br />
calfile=“gainoffset.fits” [filename ]<br />
Name of the file that contains the “gain/offset” maps. <strong>The</strong>se are pseudo-linear calibration<br />
constants for conversion of ADU to energy units.<br />
(residfile=“CALDB”) [string ]<br />
Name of the file that contains the quadratic or cubic residuals to the ADU to DAC relation,<br />
or CALDB. <strong>The</strong> keyword GAINMETH in this file will control whether the quadratic or cubic<br />
correction is performed.<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.