30.01.2013 Views

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

SHOW MORE
SHOW LESS

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 121<br />

• original: Write the input DPI filtered by the detector mask.<br />

• fit: Write the fit DPI.<br />

• bkgcleaned: Write the background cleaned DPI (input minus fit to background only).<br />

• bkgfit: Write the fit to the background only.<br />

• Choice of outversion parameter dictates what value is written to the HDUCLAS2 keyword.<br />

Possible values are:<br />

– original: HDUCLAS2 is unchanged<br />

– cleaned or bkgcleaned: HDUCLAS2 = RESIDUAL<br />

– fit or bkgfit: HDUCLAS2 = PREDICTED<br />

(clobber = NO) [boolean ]<br />

If the output file already exists, then setting “clobber = yes” will cause it to be overwritten.<br />

(chatter = 1) [integer, 0 - 5 ]<br />

Controls the amount of informative text written to standard output. Setting chatter = 4<br />

or higher will produce detailed diagnostic output; chatter = 2 prints out a basic diagnostic<br />

message. <strong>The</strong> default is to produce no printed output.<br />

(history = NO) [boolean ]<br />

If history = YES, then a set of HISTORY keywords will be written to the header of the<br />

specified HDU in the output file to record the value of all the ftcopy task parameters that<br />

were used to produce the output file.<br />

D.3.5 EXAMPLES<br />

Note that when commands are issued on the Unix command line, strings containing special characters<br />

such as ‘[’ or ‘]’ must be enclosed in single or double quotes.<strong>The</strong> following examples illustrate<br />

ways in which batclean can be used.<br />

1. Fit the simple background model to a DPI with a detector mask file. Output the cleaned<br />

DPI and a background exposure map.<br />

batclean input.dpi cleaned.dpi detmask=bat.mask backexp=backexp2.dph<br />

srcclean=NO<br />

2. Fit a set of source models along with a simple background model to a DPI, using the default<br />

aperture file. Output the fit to the focal plane instead of the cleaned focal plane. A flat-fielding<br />

correction is applied in the forward projection.<br />

batclean input.dpi fit.dpi catalog.tbl detmask=bat.mask outversion="fit"<br />

corrections="flatfield"<br />

3. Fit two user-supplied background models in addition to the hard-coded model.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!