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.

<strong>6.3</strong>. OLD ISSUES 63<br />

<strong>The</strong> <strong>BAT</strong> software tasks depend on the proper DATE-OBS and DATE-END keywords in order<br />

to access the CALDB system. If these keywords are incorrect, then the tasks will attempt to find<br />

the wrong files in CALDB.<br />

Before the date of XXX the Swift Data Center (SDC) produced some files with the date 2001-<br />

01-01, which causes this CALDB problem. You can check for the problem by running most tasks<br />

with chatter=5. If you see “strtdate=2001-01-01” before the task quits, then you have this problem.<br />

Also, you can run fkeyprint filename DATE-OBS and check for ‘2001-01-01’.<br />

A workaround is to correct the DATE-OBS and DATE-END keywords. You can do this with<br />

the following commands:<br />

fthedit myfile.fits DATE-OBS add value="YYYY-MM-DD"<br />

fthedit myfile.fits DATE-END add value="YYYY-MM-DD"<br />

where YYYY-MM-DD is the proper date of the observation.<br />

This bug was fixed on May 4, 2005 (pipeline processing version 2.1.6). However, the workaround<br />

will still be needed for old data before this date, until the SDC reprocesses it.<br />

<strong>6.3</strong>.5 batoccultmap: incorrect exposure correction<br />

Task: batoccultmap<br />

<strong>Version</strong>: v4.1 and earlier<br />

What builds: HEADAS 6.0.5 and earlier<br />

Problem: Incorrect exposure over entire image<br />

Status: Fixed in HEASoft 6.1<br />

Updated: 04 Aug 2006<br />

batoccultmap is used to compute the exposure correction due to occultation by the earth or<br />

other celestial bodies. Typically earth occultation only affects the edges of the image. However,<br />

a bug was found in this task which incorrectly computes the exposure correction over the entire<br />

image.<br />

<strong>The</strong> error does not always occur. <strong>The</strong> visible portion of the earth’s limb must be entirely in the<br />

southern celestial hemisphere, the earth must be at the very edge of the image, and the CONTOUR<br />

algorithm must be used. Even then, the behavior is not always predictable.<br />

<strong>The</strong> result is that the full image has a depressed fractional exposure level. Typically the loss is<br />

a few percent. Based on analysis of <strong>BAT</strong> data from 2005, 93% of results will be correct, 98% will<br />

be correct to within 2%, and 99.5% will be correct to within 5%. For comparison, relative <strong>BAT</strong><br />

fluxes are calibrated to within a few percent at best.<br />

Workarounds:<br />

• Use the IMAGE algorithm of batoccultmap instead of the CONTOUR algorithm<br />

• Take the exposure result, and divide the full image by the central pixel value<br />

This bug was been fixed in HEASoft 6.1 (Swift Build 19).

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

Saved successfully!

Ooh no, something went wrong!