AVGSPEC
Name
avgspec
Purpose
Robust average of a set of 1-D spectra from FITS files.
Description
Category
Spectroscopy
Calling Sequence
avgspec,root,outsuf,start,nspec,result
Inputs
root - Root of file name(s) (no . at the end, may include path).
outsuf - Suffix for the output file name. (name will be root+'.'+outsuf)
start - First spectrum number of sequence to average.
last - Last spectrum number of sequence to average. (if negative, this
number is interpreted to be the number of spectra to average).
Optional Input Parameters
Keyword Input Parameters
EXCLUDE - Scalar or vector of spectrum numbers to exclude from average.
SCALE - range of pixels to use for scaling all spectra to each other.
The default is to use all pixels for scaling.
REFERENCE - Spectrum number to use as the scaling reference. The scale
factors are determined relative to this one.
OUTROOT - Root of output file name, default=root
Values for header in output spectrum
JD - JD of midtime of output average spectrum (default=none)
AIRMASS - Effective airmass of spectrum (default=none)
OBJECT - Name of object (default=none)
Outputs
result - Final averaged spectrum. This is also saved to a FITS file.
Keyword Output Parameters
SCFACTOR - Vector of relative scaling factors for each spectrum.
Common Blocks
Side Effects
Restrictions
Procedure
Modification History
95/09/18 - Written by Marc W. Buie, Lowell Observatory
96/05/29, MWB, changed 4th argument to LAST from NSPEC