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.

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

5.2 Complete GRB Processing Script<br />

This section describes how to run automatic GRB processing script, batgrbproduct. This script<br />

produces light curves, spectra and summary reports that many common users would want. It also<br />

produces a detailed log of commands executed, which users can cut and paste to make their own<br />

products.<br />

5.2.1 Introduction<br />

In late 2006, a new version of the <strong>BAT</strong> software became available which includes the task<br />

batgrbproduct. This task generates standard products for a GRB observation, using conservative<br />

data filtering and sensible defaults. <strong>The</strong> <strong>BAT</strong> team recommends that most users start with<br />

this script for their analysis of a GRB. <strong>The</strong> <strong>BAT</strong> team itself uses this script to produce the results<br />

posted on GCN circulars. <strong>The</strong> batgrbproduct script performs the mask weighting operation<br />

(ray-tracing), creates a quality map, and generates light curves spectra and response matrices with<br />

various binnings. Sky images are produced, and if possible, a refined GRB position is derived from<br />

these positions.<br />

<strong>The</strong> task also produces a detailed log file which users can consult when they want to make their<br />

own custom light curves or spectra.<br />

5.2.2 Prerequisites<br />

• A complete Swift observation containing GRB event data (usually this will be in observation<br />

segment 0, labeled NNNNNNNNN000 with three final zeroes);<br />

• a recent version of HEASoft tools (version 6.1.2 or later);<br />

• a recent version of CALDB.<br />

It is assumed that the correct energy calibration has been run on the event file. Please see the<br />

section on applying an energy calibration to <strong>BAT</strong> event data for more information.<br />

5.2.3 Change to Data Directory<br />

Change to the directory containing the observation, but not into the observation directory itself.<br />

Extract the observation data if needed. For example, if the observation directory was<br />

/data/grbs/00145675000, then issue the following command,<br />

cd /data/grbs<br />

5.2.4 Creating GRB Products Automatically<br />

To run the script, issue the following command,<br />

batgrbproduct indir=./00145675000 outdir=./00145675000-results<br />

where

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

Saved successfully!

Ooh no, something went wrong!