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.
D.3. <strong>BAT</strong>CLEAN 117<br />
• 9 = Detector on right (+X) side of sandwiches: constant,<br />
• 10 = Right side detectors: proportional to X,<br />
• 11 = Detectors on front (-Y) side of sandwiches: constant,<br />
• 12 = Front side detectors: proportional to Y,<br />
• 13 = Detectors on back (+Y) side of sandwiches: constant,<br />
• 14 = Back side detectors: proportional to Y,<br />
<strong>The</strong> code creates a background exposure map based on the model above (which can be optionally<br />
output using the backexp parameter). In addition the user can supply his own background model<br />
to be fit in addition to or in place of the standard background model.<br />
<strong>The</strong> tool then uses a singular value decomposition method to fit the source exposure and<br />
background exposure maps to the data from the DPI. <strong>The</strong> coefficients from the fit are written<br />
to the output file as keywords.<br />
<strong>The</strong> fit coefficients are then used to create a model background DPI. This is then subtracted<br />
from the original input DPI to produce a cleaned DPI. <strong>The</strong> code writes keywords giving the fit<br />
parameter for each background parameter (simple plus user supplied) and source parameter that is<br />
fit. <strong>The</strong>se keywords are BGPARnn for background and SRPARnn for sources. <strong>The</strong> number nn goes<br />
from 0 to the total number of parameters, starting with the hard-coded background parameters.<br />
D.3.4 PARAMETERS<br />
infile [filename ]<br />
Input file name. <strong>The</strong> name of the input DPI file. This is expected to be an image array<br />
with dimensions equal to the number of detector columns by the number of detector rows<br />
(set to 286 X 173). If there are multiple <strong>BAT</strong> DPI image extensions then all are cleaned and<br />
multiple cleaned images are written to the output file.<br />
outfile [filename ]<br />
Output file name. This will be written in the DPI format. <strong>The</strong> default is to write out the<br />
cleaned image, but other outputs can be selected using the outversion parameter. Precede<br />
the output file name with an exclamation point, “!”, (or “\ !” on the Unix command line),<br />
to overwrite a preexisting file with the same name (or set the clobber parameter to YES).<br />
incatalog [filename ]<br />
Input source catalog. <strong>The</strong> format of the catalog file is that output by the <strong>BAT</strong> tool batcelldetect.<br />
In particular the catalog must contain columns “IMX,” “IMY,” “CATNUM,” (or<br />
“SOURCE ID”), “NAME,” and “SNR.” <strong>The</strong> tool reads the source position in <strong>BAT</strong> image<br />
coordinates from this file and uses the source position to forward project a model of the<br />
source flux onto the focal plane. This parameter may be omitted or set to “NONE” if only<br />
background cleaning is required (i.e., the srcclean parameter set to “NO”). <strong>The</strong> SRPARnn<br />
keywords giving the fit parameter for each source contain the source name in the comments<br />
field. Allowed extension names for incatalog are “<strong>BAT</strong> CATALOG” (default of batcelldetect),<br />
“TRIG SOURCE” (<strong>BAT</strong> on-board catalogs) and “INPUT CATALOG.”