IRAF Hectospec Data Reduction Package
Modification History

Version 3.5.8 (June 12, 2009)
In HSCOMBINE, update DARKTIME and save exposure times of input files as HSEXPi
Add HCOUNT task to count lines and avoid WC conflict with dataio.wcardimage
Call HCOUNT instead of WC in HSKYFILT and HSKYPROC
In HSKYLIST, set objsky flag from first three characters of object name

Version 3.5.7 (October 28, 2008)
In HCOSMIC, change temporary filename from hncosmic*list to tempcosmic*list
In HLIN, change temporary filename from hlin* to temphlin*
Add rvsao.rvrelearn to hrelearn, and because there is an added parameter
in rvsao.cl to make the new rvrelearn work in RVSAO 2.6.7, things break
unless both packages are upgraded.
In HCOSBAD, avoid dividing by zero (2008-10-28)
In HCOSMIC, give null string value argement to HEDIT when deleting keywords

Version 3.5.6 (September 2, 2008)
Always set fredientify.trace from trace in HCAL (2008-09-02)
Fix subroutine call in FIBAREA so it compiles on Macs
Use local sorting subroutines in HSKYMATCH
Add plotres parameter to HSKYPROC and HSKYFIND so plotting results is optional
Fix default absorption template parameter in HSKYPROC
Add add=yes addonly=no to hedit() call in HCAL

Version 3.5.5 (April 14, 2008)
Add HSETGAIN and HRESETGAIN to stop and start reading gain from header
GAIN keywords

Version 3.5.4 (March 6, 2008)
New HSPROC task processes data for one pointing from raw through sky subtraction
Clean up code in HPROC, HPREAMP, GAINCORR, HFLAT, and HMERGE
Add HRELEARN to add new parameters when updated
Add merge, perchip, flatten, normfile parameters to HPROC
Optionally add HMERGE1 to HPROC to complete multi-extension processing
Add HPREAMP1, HPROC1, HGAIN1 to process single images
Add optional HMERGE1 (don't merge bias and dark) to HPROC
Add optional HFLAT1 (don't flatten bias, dark, flats before MAKEFLAT) to HPROC
Revise gains in HPROC, GAINCORR and HGAIN1 after Nelson Caldwell recomputed them

Version 3.5.3 (November 5, 2007)
Add t_preamp1.x to replace C computation of preamplifier fix.  It
is called by hpreamp.cl, which is called by hproc.cl.

Version 3.5.2 (October 15, 2007)
Add redleak parameter to htran to turn off call to hredleak1 for spectra
  which are too blue to see the red leak.

Version 3.5.1 (September 26, 2007)
Added parameter to hskyproc and hskylist so objects can be chosen to be on
  one chip or the other and fixed a bug in hskyproc so that the correct sky
  database is used when using skysame is no.
Upped maximum number of lines from 4608 to 4700 in hcosbad.x and hcoslim.x
Add debug parameter to hcosbad

Version 3.5.0 (September 12, 2007)
   hskyproc, hskylist, hskyfilt, hskyfind, and hskysub1 CL scripts and
   hskymatch SPP task added to replace skyproc ksh script to remove
   background from spectra

Version 3.4.1 (June 1, 2007)
   Add hsmapfix172 and hsmapfix222 to set broken fiber apertures to unused

Version 3.4 (May 22, 2007)
   Add hcosmic + hcoslim + hcosbad tasks to remove cosmic rays froms spectrum
     images before extracting spectra.  hscombine then sums instead of averaging
     or medianing.

Version 3.3 (December 19, 2006)
   Add haphead task to compute fiber area and set header values from APID
   Rewrite hsplit so almost everything is done in SPP tasks instead of CL

Version 3.2 (November 20, 2006)
   Add hrefit task to remove sky background from multispec files
   Add fitmax, apobj, and apsky  parameters to hskyfit1 to work
   with SVDFIT 1.6

Version 3.1 (November 14, 2006)
   Use internal parser instead of IRAF's in t_imgetp.x
   Add fibarea task to compute area of fiber at specific focal plane location

Version 3.0 (August 17, 2006)
   Add Bill's SPECROAD and supporting shell scripts in directory Shell
   Add Maureen's freidentify task
   Update hsplit to use scopy to break off individual spectra
   Other changes to ease processing of Hectochelle data

Version 2.7 (March 3, 2006)
   Add skyfit1 task to fit and remove sky background from spectra using svdfit package
   New skyproc task includes fit sky removal using svdfit package via skyfit1
   New resub task to try different sky removal methods
   Lots of other changes, too

Version 2.6 (October 24, 2005)
   Add hback and hback1 to remove background from all spectra in a multispec file
   These scripts can be used to flatten the background of a calibration lamp spectrum

Version 2.5 (August 15, 2005)
   Make single-file versions of all pipeline scripts
   Group pipeline scripts into master scripts (hlin, htran)

Version 2.3 (March 2, 2005)
   Fix bug in hgeom.cl so file names without .fits work
   Add Bill Wyatt's redleakcorr.cl and doredleak.cl tasks