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.

5.2. COMPLETE GRB PROCESSING SCRIPT 29<br />

• indir is the observation directory<br />

• outdir is the output results directory<br />

<strong>The</strong> script will print diagnostic output to the console as it runs, and may take tens of minutes<br />

to an hour to complete, depending on the speed of your computer and hard drive. When the script<br />

finishes, it should print an inventory of the results.<br />

5.2.5 Results<br />

<strong>The</strong> results are stored in the ‘outdir’ directory you specified on the command line. A summary of<br />

the results of the analysis is stored in the file report.txt in that directory.<br />

Light curves, spectra and images are stored in the lc, pha and img subdirectories, respectively.<br />

Response matrices are generated for the pre-slew and post-slew time intervals. Burst duration<br />

measures are reported in report.txt, and also are contained in the gti subdirectory.<br />

More information about the results can be found in the documentation for the batgrbproduct.<br />

5.2.6 When Things Go Wrong<br />

<strong>The</strong>re are several situations where batgrbproduct may not be able to perform a totally automatic<br />

analysis.<br />

If the burst is very faint, especially a short hard burst, the automatic software is not always able<br />

to select the right time interval. If that is the case, the script defaults to the time interval reported<br />

in the TDRSS position message, which may not always be appropriate. Users may always override<br />

the default time interval by hand, using the trigtime/trigstop/backstrt/backstop parameters. <strong>The</strong><br />

user can also override the default position by using the ‘ra’ and ‘dec’ parameters. By default,<br />

batgrbproduct uses the reported <strong>BAT</strong> position, and not the XRT position.<br />

<strong>The</strong> Swift spacecraft does not always respond in the same way to a GRB. For example, a slew<br />

does not always occur to the burst. In that case, there will be no post-slew images or spectra.<br />

<strong>The</strong>re will also be no post-slew spectrum if the burst emission does not extend past the slew to the<br />

source. Warning messages will be produced, but they can be safely ignored.<br />

Finally, it is worth mentioning that a burst occasionally is observed already emitting when it<br />

enters the <strong>BAT</strong> field of view. In that case, the automatic duration measures will of course be<br />

unreliable. To improve the operation of the script, you should set tbkgsub=NO for those kinds of<br />

bursts.<br />

5.2.7 Making Your Own Custom Products<br />

batgrbproduct makes a standard set of light curves and spectra which will satisfy many users.<br />

However, some users need custom products that are not made automatically. <strong>The</strong>se might be light<br />

curves with different binning, or spectra with different time cuts. batgrbproduct does not directly<br />

support custom options, but it does produce a detailed log of each command called process.log.<br />

This file also contains the result of the command.<br />

You should scan through process.log using your favorite text editor, and locate the light curve<br />

or spectrum which most closely matches your need. <strong>The</strong>n copy the command from the file to the<br />

command line and modify it as needed.

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

Saved successfully!

Ooh no, something went wrong!