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.
184 APPENDIX D. <strong>BAT</strong> SOFTWARE TOOL REFERENCE<br />
D.20 <strong>BAT</strong>UPDATEPHAKW<br />
D.20.1 NAME<br />
batupdatephakw - update <strong>BAT</strong> ray tracing columns in spectral files<br />
D.20.2 USAGE<br />
batupdatephakw infile auxfile<br />
D.20.3 DESCRIPTION<br />
batupdatephakw updates the <strong>BAT</strong> ray tracing columns in a mask weighted spectrum. This is<br />
important especially for gamma-ray bursts or other events where the spacecraft has slewed. Without<br />
the update, the keywords will reflect the ray tracing status at the end of the event data set, which<br />
will lead to an erroneous detector response matrix.<br />
<strong>The</strong> ray tracing quantities that are updated are: MSKWTSQF, NGOODPIX, PCODEFR,<br />
<strong>BAT</strong> XOBJ, <strong>BAT</strong> YOBJ, <strong>BAT</strong> ZOBJ.<br />
This script modifies the spectral file in place. Thus, the spectrum must be writeable and not<br />
compressed. New columns are created if they are not already present. If keywords with the same<br />
name are present, then they are deleted (to prevent confusion with the columns).<br />
This task requires the “auxiliary” file produce by batmaskwtevt, which contains the above<br />
quantities as a function of time.<br />
D.20.4 PARAMETERS<br />
infile [filename ]<br />
Input/output spectral file. <strong>The</strong> file should be a batbinevt-derived OGIP standard Type I or<br />
Type II spectral file. <strong>The</strong> file should contain at least the TIME and EXPOSURE keywords.<br />
<strong>The</strong> file is modified in place.<br />
auxfile [filename ]<br />
Name of the “auxiliary” ray trace file produced by batmaskwtevt. <strong>The</strong> times in the auxiliary<br />
file should overlap with the times in the spectral file.<br />
(chatter = 2) [integer, 0 - 5 ]<br />
Controls the amount of informative text written to standard output.<br />
D.20.5 EXAMPLES<br />
1. Update the ray tracing columns in a spectral file named myspectrum.pha.