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.

132 APPENDIX D. <strong>BAT</strong> SOFTWARE TOOL REFERENCE<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 = 1 prints out a basic diagnostic<br />

message. <strong>The</strong> default is to produce a brief summary on output.<br />

(history = YES) [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 bateconvert task parameters<br />

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

D.6.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 bateconvert can be used.<br />

1. Apply a linear conversion to convert from PHA (ADUs) to ENERGY (keV). <strong>The</strong> input file<br />

is updated with the PI and ENERGY columns filled in.<br />

bateconvert infile=’events.fits’ calfile=’cal.fits’ residfile=NONE<br />

pulserfile=NONE calmode=LINEAR<br />

-or- bateconvert events.fits cal.fits NONE NONE calmode=LINEAR<br />

2. Apply the same linear conversion from PHA(ADUs) to ENERGY (keV). Copy the input file<br />

to a new file with the PI and ENERGY columns filled in. <strong>The</strong> input file is untouched.<br />

bateconvert infile=’events.fits’ calfile=’cal.fits’ outfile=’out.fits’<br />

residfile=NONE pulserfile=NONE calmode=LINEAR<br />

-or- bateconvert events.fits cal.fits NONE NONE out.fits calmode=LINEAR<br />

Overwrite an existing version of ‘out.fits’<br />

bateconvert events.fits cal.fits NONE NONE \!out.fits calmode=LINEAR<br />

-or- bateconvert events.fits cal.fits out.fits NONE NONE<br />

calmode=LINEAR clobber=YES<br />

3. Apply a quadratic conversion instead of a linear conversion. This requires valid residfile and<br />

pulserfile.<br />

bateconvert events.fits cal.fits resid.fits pulser.fits<br />

4. Set all values in the PI and ENERGY columns of the existing file to zeros.<br />

bateconvert events.fits calfile=’none’ residfile=NONE<br />

pulserfile=NONE zeroit=YES

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

Saved successfully!

Ooh no, something went wrong!