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.4. MAKING A DETECTOR QUALITY MAP 33<br />

5.4.2 Prerequisites<br />

• <strong>BAT</strong> detector enable/disable map (in obsid/bat/hk/swNNNNNNNNNNNbdecb.hk.gz);<br />

• <strong>BAT</strong> event data (in obsid/bat/event/swNNNNNNNNNNNbevsh*.evt.gz);<br />

• Access to Calibration Database (CALDB).<br />

<strong>The</strong> SDC should be producing a detector enable/disable file for every observation. If it is not<br />

present, then you must locate the nearest one in time in the trend data in the archive (see below).<br />

<strong>The</strong> process involves three main steps. First, a detector plane image of the event data is created.<br />

Second, using the observation time of the image, a master quality map is retrieved from CALDB.<br />

Finally, the detector plane image is searched for noisy detectors which may have flared up during<br />

the observation, using the task bathotpix.<br />

In this case, let us create a quality map for GRB 050713A (obsid 00145675 000).<br />

5.4.3 Initial Steps<br />

Change directories to the location of the event data.<br />

cd 00145675000/bat/event<br />

5.4.4 Create a Detector Plane Image<br />

Create a detector plane image for the time or energy range of interest. This is a temporary file<br />

which will be checked for noisy detectors.<br />

For our example, we will simply sum all the event data, including all times and all energy ranges.<br />

This should normally be acceptable, since summing over a long period of time should produce the<br />

most conservative number of detectors to exclude.<br />

batbinevt infile=sw00145675000bevshsp_uf.evt.gz outfile=total.dpi \<br />

outtype=DPI timedel=0 timebinalg=u energybins=- \<br />

weighted=NO outunits=COUNTS clobber=YES<br />

• infile is the event file accumulated;<br />

• outfile is the temporary detector plane image;<br />

• outtype=DPI indicates that a detector plane image will be created;<br />

• timedel=0 indicates to sum all the data into one map. It would be possible to set tstart=<br />

and tstop= to narrow the range of time if desired;<br />

• energybins=- indicates to sum all energies. A narrower energy range can be given as ELOW-<br />

EHIGH;<br />

• weighted=NO indicates to make an unweighted detector map<br />

• outunits=COUNTS indicates that the map should be in units of counts instead of rate;

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

Saved successfully!

Ooh no, something went wrong!