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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
38 CHAPTER 5. <strong>BAT</strong> ANALYSIS PROCEDURES<br />
cd 00145675000/bat/event<br />
If the event file is compressed, unzip it. <strong>The</strong> mask-weighting task modifies the event file in<br />
place, and gzipped files cannot be modified.<br />
gunzip sw*.evt.gz<br />
5.5.5 Compute Mask Weights for <strong>BAT</strong> Events<br />
<strong>The</strong> mask-weighting task for events is called ‘batmaskwtevt’. Here is an example run,<br />
batmaskwtevt infile=sw00145675000bevshsp_uf.evt \<br />
attitude=../../auxil/sw00145675000sat.fits.gz \<br />
ra=320.5397083 dec=+77.074861 \<br />
detmask=../hk/sw00145675000bcbdq.hk.gz \<br />
rebalance=YES corrections=default \<br />
auxfile=/local/data/gcn5b/craigm/sw00145675000bevtr.fits clobber=YES<br />
• infile gives the event file name<br />
• attitude gives the attitude file name<br />
• ra and dec give the revised sky position of the GRB (see above)<br />
• detmask is a quality filter which excludes disabled and noisy detectors; this is important so<br />
than an accurate accounting of the number of illuminated detectors can be computed<br />
• rebalance=YES means that the resulting light curves will be background-subtracted<br />
• corrections=default applies the default corrections to the mask weights<br />
• auxfile gives the output auxiliary raytracing file, to be used for spectral analysis<br />
This analysis may take some time (several minutes), as each event needs to be ray-traced. <strong>The</strong><br />
speed of the task depends on the number of slews that occur during the observation (i.e. more<br />
slews require more intensive calculations).<br />
5.6 Light Curve from Event Data<br />
This section describes how to generate a light curve from <strong>BAT</strong> event data. Later sub-sections<br />
describe how to make a light curve with custom time binning.<br />
Figure 5.2 shows schematically how light curves are created using the batbinevt task. <strong>The</strong> same<br />
task is used to create spectra and detector plane images and detector plane histograms.<br />
5.6.1 Prerequisites<br />
• <strong>BAT</strong> event data (in obsid/bat/event/swNNNNNNNNNNNbevshsp uf.evt.gz);<br />
• <strong>BAT</strong> quality map (in obsid/bat/hk/swNNNNNNNNNNNbcbdq.hk.gz).