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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>30</strong> CHAPTER 5. <strong>BAT</strong> ANALYSIS PROCEDURES<br />

5.2.8 Spectral Fitting<br />

For more tips, warnings and otherinformation on spectral analysis with <strong>BAT</strong>, please see the <strong>BAT</strong><br />

Spectrum and Response section.<br />

5.3 Energy Calibration of Events<br />

<strong>BAT</strong> events telemetered to the ground have raw pulse heights. Individual detectors have different<br />

energy scales which cannot be combined. Energy calibration of the events is required for any useful<br />

analysis. Typically, the SDC performs the energy calibration in their automatic pipeline. This<br />

section provides information on how to check for the appropriate calibration procedure and to<br />

re-run the calibration when necessary.<br />

<strong>The</strong> energy scale is based on both an on-board pulser (electronics) calibration, and ground<br />

analysis of the instrument performance (both pre- and post-launch).<br />

5.3.1 Reasons to Re-run the Energy Calibration<br />

• If it has not been run before (i.e. missing gain/offset file or something like that).<br />

• To capture improvements in the newer software/ground calibration (see below).<br />

Checking the event file for the correct ground calibration files<br />

You can check the event file to see if its energy scale was correctly calibrated.<br />

Run the command:<br />

fkeyprint sw00145675000bevshsp_uf.evt.gz GAIN<br />

You should see the following results (among other entries):<br />

GAINAPP = T / Gain correction has been applied<br />

GAINMETH= ’FIXEDDAC’ / Cubic ground gain/offset correction using DAC-b<br />

If these keywords don’t exist, or if GAINAPP is false or GAINMETH is not ‘FIXEDDAC’, then<br />

you should run the energy calibration tool.<br />

5.3.2 Prerequisites<br />

• <strong>BAT</strong> event data<br />

– either original (in obsid/bat/event/swNNNNNNNNNNNbevshsp uf.evt.gz); or<br />

– cleaned event list (See “Producing a Cleaned Event List”);<br />

<strong>BAT</strong> gain/offset file (in obsid/bat/hk/swNNNNNNNNNNNbcb*.fits.gz);

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

Saved successfully!

Ooh no, something went wrong!