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.13. <strong>BAT</strong>MASKTAGLC 157<br />
D.13 <strong>BAT</strong>MASKTAGLC<br />
D.13.1 NAME<br />
batmasktaglc - Compute background subtracted light curves from raw <strong>BAT</strong> mask tagged counts<br />
D.13.2 USAGE<br />
batmasktaglc infile quadfile maskwt outfile [detmask] [ebounds]<br />
D.13.3 DESCRIPTION<br />
batmasktaglc converts a raw “mask tagged” light curve, produced by the <strong>BAT</strong> flight software, into<br />
a background subtracted mask weighted light curve. <strong>The</strong> <strong>BAT</strong> flight software by itself produces<br />
“unbalanced” mask weighted sums, which introduces a bias. This task must be used to remove the<br />
bias.<br />
<strong>The</strong> three basic inputs to the task are the raw mask tagged light curve; the “quadrant rates”<br />
light curve; and the mask weight map used by the flight software to create the raw mask tagged<br />
light curves.<br />
Generally speaking, raw mask tagged light curves will be stored with file names like: swNNNNNNNNNNNbmtCC<br />
where NNNNNNNN is the observation and segment numbers, andCCCCCCCC is the bat catalog<br />
number for the source. A given observation may contain multiple mask tagged sources. <strong>The</strong><br />
<strong>BAT</strong> can produce mask tagged light curves for up to three sources simultaneously. In addition,<br />
the sources chosen for mask tagging may vary from pointing to pointing in the same observation.<br />
Gamma-ray burst mask tagged light curves will have a catalog number of the form, 0002CCCC,<br />
where CCCC matches the last four digits of the GRB trigger number in decimal.<br />
<strong>The</strong> quadrant rates file is typically in the obsid/bat/rate directory, with a file name, swNNNNNNNNNNNbrtqd.lc<br />
It contains the total rates in each quadrant of the instrument, in several energy bands.<br />
A mask weight map is produced by the <strong>BAT</strong> every time the mask tagged sources change<br />
(typically every pointing), and describes the weighting each detector had in computing the mask<br />
tagged sums. Typically, the maps should be attached to the raw mask tagged light curve file as<br />
follow-on extensions. Thus, users should normally just set “maskwt=INFILE”. <strong>The</strong> extension name<br />
of the weight map should be “MASK TAG WEIGHT”.<br />
<strong>The</strong> tool basically backs out the light curve processing that was carried out in the flight code to<br />
derive a background subtracted light curve and appropriate statistical error bars. <strong>The</strong> output file<br />
is a standard light curve file, containing TIME, RATE, ERROR and BACKGROUND columns,<br />
each entry of which is a four-dimensional vector, with one number for each of the energy ranges<br />
described in the EBOUNDS extension.