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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
116 APPENDIX D. <strong>BAT</strong> SOFTWARE TOOL REFERENCE<br />
D.3 <strong>BAT</strong>CLEAN<br />
D.3.1 NAME<br />
batclean - read in a DPI and clean out a fit to the diffuse background<br />
D.3.2 USAGE<br />
batclean infile outfile incatalog [detmask] [options]<br />
D.3.3 DESCRIPTION<br />
This tool fits a simple background or source plus background model to a detector plane image. <strong>The</strong><br />
code contains a default background model which is described below. <strong>The</strong> user can also specify one<br />
or more background models to be fit using the bkgmodel parameter. <strong>The</strong> output file can be either<br />
the cleaned focal plane (default), the fit to the detector plane or the original input file.<br />
<strong>The</strong> tool can also, optionally, balance the detector plane either before or after or instead of<br />
cleaning. See below under the “balance” parameter for more details.<br />
This code reads in a Detector Plane Image (DPI) file as well as an optional detector mask file. If<br />
no detector mask file is provided, then all detectors with non-zero data are included in the fit. <strong>The</strong><br />
tool works on either flight or simulated flight data (sources at infinity) or ground calibration data<br />
(sources at a finite distance). See the description of the bat z parameter for more about cleaning<br />
of sources at a finite distance.<br />
Source Cleaning<br />
If one or more sources are to be cleaned from the DPI (default), then the tool reads the source locations<br />
from the incatalog file and then calls the routine maskwtimg which uses a forward projection<br />
to create a model of the source exposure through the aperture onto the detector plane.<br />
Background Cleaning<br />
<strong>The</strong> tool creates a simple eighteen parameter background model, which is described as follows:<br />
• 1 = constant, 2 = proportional to X, 3 = proportional to Y<br />
• 4 = proportional to X 2 , 5 = proportional to Y 2<br />
• 6 = proportional to X Y,<br />
• 7 = Detector on left (-X) side of sandwiches: constant,<br />
• 8 = Left side detectors: proportional to X,