Summary
-------

o Integration of headas build 20 and latest caldb (bat 20061014, uvot 20061116, xrt 20061219, misc 20070104).

o Production of corrected attitude files, with keywords indicating which files 
  were produced and which attitude is used.

o Proper labeling and processing of bat event data taken during slews.

o Add entries to the bat database file for bat event data taken for failed triggers.

o Produced postage stamp plots for bat data, and modify look of uvot image plots.

o For burst data that just has a target name of "Burst", add ra and dec 
  to the object name in parentheses.

o Change parameters for uvotdetect to try and find more sources.

o Change categorizing of settled and safe hold data in xrt2fits.

o Set to zero the mask weight factor of BAT events which are flagged as bad events.

Details
-------

 proc3.9.6/Subs/Attitude.pm
HISTORY: Revision 1.47  2007/02/08 21:33:12  apsop
HISTORY: Write ATTFLAG keyword to all extensions.
HISTORY:
HISTORY: Revision 1.46  2007/01/31 20:22:14  apsop
HISTORY: Do attitude correction with attjumpcorr and set attitude correction flags.
HISTORY:
 proc3.9.6/Subs/BATBurst.pm
HISTORY: Revision 1.41  2007/02/12 02:14:14  apsop
HISTORY: Another bug fix for db file editing.
HISTORY:
HISTORY: Revision 1.40  2007/02/10 21:46:17  apsop
HISTORY: Fix bug in editing of badb.hk file.
HISTORY:
HISTORY: Revision 1.39  2007/02/08 14:27:59  apsop
HISTORY: Allow for possibility that slew-only data can actually contain some pointing data.
HISTORY:
HISTORY: Revision 1.38  2007/01/31 20:23:40  apsop
HISTORY: Identify bat event data taken during slews and tag as such.
HISTORY:
 proc3.9.6/Subs/BATDB.pm
HISTORY: Revision 1.10  2007/02/10 22:28:33  apsop
HISTORY: Set orig obs to seq obs for tdrss failed triggers.
HISTORY:
HISTORY: Revision 1.9  2007/02/08 14:31:34  apsop
HISTORY: Fix bug in calculation of original observation id, segment was being set to wrong value.
HISTORY:
HISTORY: Revision 1.8  2007/01/31 20:46:10  apsop
HISTORY: Add entries for the failed trigger event data.
HISTORY:
 proc3.9.6/Subs/BATFinish.pm
HISTORY: Revision 1.14  2007/02/08 14:33:28  apsop
HISTORY: Do not delete files produced for slew only data.
HISTORY:
HISTORY: Revision 1.13  2007/01/31 21:11:31  apsop
HISTORY: Do not delete slew-only bat event files.
HISTORY:
 proc3.9.6/Subs/BATImages.pm
HISTORY: Revision 1.21  2007/01/31 21:15:10  apsop
HISTORY: Do not make postage stamp images outside the FOV. Improve and enable postage stamp plots.
HISTORY:
VERSION: $Revision: 1.20 $
VERSION: $Revision: 1.21 $
 proc3.9.6/Subs/BATIntervals.pm
HISTORY: Revision 1.13  2007/01/31 21:16:41  apsop
HISTORY: Do not do interval analysis on slew-only Bat data.
HISTORY:
VERSION: $Revision: 1.12 $
VERSION: $Revision: 1.13 $
 proc3.9.6/Subs/BATSpectra.pm
HISTORY: Revision 1.34  2007/02/05 15:27:58  apsop
HISTORY: Trap errors from batmasktaglc that warn of no GTIs.
HISTORY:
HISTORY: Revision 1.33  2007/01/31 21:18:18  apsop
HISTORY: Do not make products from slew-only event data.
HISTORY:
VERSION: $Revision: 1.32 $
VERSION: $Revision: 1.34 $
 proc3.9.6/Subs/ExtractGTIs.pm
HISTORY: Revision 1.19  2007/01/31 17:22:07  apsop
HISTORY: Bug fix for setting of MJDREF in image data GTIs.
HISTORY:
 proc3.9.6/Subs/LocateBurst.pm
HISTORY: Revision 1.14  2007/01/31 19:19:18  apsop
HISTORY: Add ra,dec to generic Burst object name.
HISTORY:
 proc3.9.6/Subs/Spacecraft2FITS.pm
HISTORY: Revision 1.10  2007/02/05 15:32:45  apsop
HISTORY: Make snapshot GTIs from NFI intervals if BAT intervals are not available.
HISTORY:
 proc3.9.6/Subs/StartEndTimes.pm
HISTORY: Revision 1.31  2007/01/31 20:20:31  apsop
HISTORY: Fix bug causing start/end times to be used from files tagged as invalid
HISTORY:
 proc3.9.6/Subs/SW0WrapUp.pm
HISTORY: Revision 1.51  2007/02/13 15:38:01  apsop
HISTORY: Remove ATTSTATU keyword from *sat.fits file.
HISTORY:
HISTORY: Revision 1.50  2007/02/08 21:54:54  apsop
HISTORY: Fix bug in getting ATTSTATU value.
HISTORY:
HISTORY: Revision 1.49  2007/02/01 15:01:53  apsop
HISTORY: Do not write UTCFINIT to attitdue files.  Write attitude status keyword to files.
HISTORY:
 proc3.9.6/Subs/UVOT2FITS.pm
HISTORY: Revision 1.24  2007/01/31 17:24:43  apsop
HISTORY: New parameter for uvot2fits, maximagesize set to default for now.
HISTORY:
 proc3.9.6/Subs/UvotImages.pm
HISTORY: Revision 1.71  2007/02/08 21:34:51  apsop
HISTORY: Write ATTFLAG keyword to all extensions of corrected file.
HISTORY:
HISTORY: Revision 1.70  2007/02/02 17:19:11  apsop
HISTORY: Change parameters for uvotdetect.
HISTORY:
HISTORY: Revision 1.69  2007/02/01 15:06:44  apsop
HISTORY: Run uvotattcorr to produce corrected attitude file. Changes to the look of the uvot image plots.
HISTORY:
 proc3.9.6/Subs/XrtEvents.pm
HISTORY: Revision 1.35  2007/01/31 16:46:33  apsop
HISTORY: Change to xrtwtcorr parameters.
HISTORY:
 proc3.9.6/sw0
HISTORY: Revision 1.72  2007/02/01 17:08:12  apsop
HISTORY: New version of common code: Merge HEADAS and FTOOLS, clean up env variables, perl only pfile I/O.
HISTORY:
 proc3.9.6/sw0.par
HISTORY: Revision 1.170  2007/02/01 16:59:12  apsop
HISTORY: New version of headas 20 (patched).  New caldb.  New versions of xrt2fits and uvot2fits.
HISTORY:
 proc3.9.6/Util/FilenameInfo.pm
HISTORY: Revision 1.65  2007/01/31 16:43:08  apsop
HISTORY: New file type attcorr.
HISTORY:
 uvot2fits
2007-01-08 RFink V3.19a
    Patch for a telemetry dropout causing
    a crash in UVOTImages.cc.
2006-01-22 RFink V3.22
    Add parameter to allow pipeline to limit
    max size of image files.
2006-01-08 RFink V3.21
    Test version to fix rogue hardware windowing.
    Patch a minor error when the Exposure Report
    and Start packets are missing.
2006-11-14 RFink V3.20
    Add DETNAM keyword. Use with TDRSS2FITS V3.18.
 xrtfits
2006-12-12 RFink V5.8
   Modify Raw CCD mode to accept windowed data
   from latest FSW.
   Modify treatment of Settled flag so that
   Settled && ! in10ArcMin go to POINTING.
   Force all SAFEHOLD to SLEW.
   Set OBS_MODE keyword to follow above.
 bat2fits