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.

5.6. LIGHT CURVE FROM EVENT DATA 41<br />

An easy way to make light-curves in multiple bands is to re-run the task with different energy<br />

ranges. For example, if you want to make light curves in the 15-50 and 50-150 keV bands, you can<br />

run the task twice:<br />

batbinevt ... energybins=15-50 ...<br />

batbinevt ... energybins=50-150 ...<br />

This will produce two light curve files, each with the different energy ranges.<br />

Another way to make multi-channel light curves is to specify both energybins in one command.<br />

In the example above of two bands (15-50 and 50-150 keV), the command would be:<br />

batbinevt ... energybins=15-50,50-150 ...<br />

This will produce one light curve file with a vector RATE column. You can plot these within<br />

‘fv’ using RATE[1] and RATE[2] as the Y column names.<br />

5.6.6 Changing the time binning<br />

<strong>The</strong> task ‘batbinevt’ has several options for time binning of light curves.<br />

• uniform time binning (timebinalg=‘u’) - you choose the time bin size with the timedel<br />

parameter, or set it to zero to sum all the data into one bin;<br />

• constant signal to noise (timebinalg=‘s’) - the time bin size is variable and determined by<br />

the signal to noise ratio of the data (using the snrthresh parameter);<br />

• user-specified binning (timebinalg=‘g’) - you explicitly set the time bin edges using the<br />

gtifile parameter.<br />

<strong>The</strong> user-specified binning gives you the freedom to choose precisely the time bin edges that you<br />

wish (expressed in mission elapsed time). You specify these bin edges with a good time interval file<br />

(GTI file). <strong>The</strong> task ‘battblocks’ can produce a set of “interesting” time bins automatically using<br />

the Bayesian block algorithm. You can also construct a GTI file by hand (see below).<br />

5.6.7 Optional: Making a GTI file<br />

This example shows how to make a GTI file with user-specified time bins. We will assume the time<br />

bins of interest are already known relative to the trigger time. <strong>The</strong> goal will be to make a GTI file<br />

with absolute mission elapsed times.<br />

For example, enter the time bin edges in the text file gti.txt. <strong>The</strong>se are in seconds relative to<br />

the trigger time. Of course you can choose any relative times that you wish.<br />

# START STOP<br />

-500 -400<br />

-400 -<strong>30</strong>0<br />

-<strong>30</strong>0 -250<br />

-250 -200

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

Saved successfully!

Ooh no, something went wrong!