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.8. MAKING <strong>BAT</strong> SKY IMAGES 49<br />

5.8.5 Making a Background Detector Plane Image<br />

Making a background detector plane image is optional, but it will increase the sensitivity of the<br />

image when bright sources are present. If possible, the background interval should be made from<br />

data with similar background levels and for a longer duration than the source image.<br />

Use the same procedure as above to create a DPI file during a time range when you know there<br />

is no source emission. Let us call that file “bkg.dpi”.<br />

NOTE: if the background or bright sources are known to have varied significantly between the<br />

time of the source and background DPIs, there may be little or no benefit to making a background<br />

file.<br />

Advanced usage: if bright sources are known to be present in the image, it is possible to use<br />

the batclean task to create a background map which removes many systematic artifacts. This is<br />

usually not necessary for images with exposures less than 100 seconds.<br />

5.8.6 Making a Sky Image<br />

A sky image is created from a DPI using the ‘batfftimage’ task. Issue the following command,<br />

batfftimage infile=flare.dpi outfile=flare.img attitude=../../auxil/sw00145675000sat.fits.gz \<br />

bkgfile=bkg.dpi detmask=../hk/sw00145675000bcbdq.hk.gz clobber=YES<br />

where<br />

• infile is the DPI file name<br />

• bkgfile is the background DPI file name (‘NONE’ can also be used if no background file is<br />

available)<br />

• outfile is the output sky image file name<br />

• attitude is the spacecraft attitude file name<br />

• detmask is the detector quality map<br />

<strong>The</strong> result is a <strong>BAT</strong> sky image. If valid spacecraft attitude data was used, then the sky image<br />

should automatically have celestial coordinates (WCS keywords) attached.<br />

You may use your favorite FITS image viewer to examine the image (for example FV or DS9).<br />

Figure 5.6 shows the appearance of a typical bright point source in a <strong>BAT</strong> sky image.<br />

5.8.7 Caveats<br />

<strong>The</strong> spacecraft attitude may have changed during the accumulation interval of your DPI. You must<br />

carefully filter out spacecraft slew data and use only steady pointed attitude information, or the<br />

celestial coordinate system will be erroneous.

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

Saved successfully!

Ooh no, something went wrong!