badorders constructs a bad pixel file containing the positions of spectral features from other spectral orders that may overlay the desired spectrum.
USAGE |
|
||||||||||||||
INPUT |
|
||||||||||||||
OUTPUT |
|
||||||||||||||
PARAMETERS |
|
badorders calculates the location and extent of spectral features from other orders of a spectrum which need to be blocked during the spectral reduction process. It creates a bad pixel file which can be used as input to the programs Sflats and subsky, in place of the standard bad pixel file which exists for each dewar. If no other input bad pixel file is specified, the standard bad pixel file for the dewar in use is used as a starting point, to which new bad pixel groups are added for each spectral feature to be blocked. Note that the binning of the output bad pixel file will be the same as that of the input bad pixel file, so that if a non-standard input bad pixel files is used with, e.g. 2 x 2 binning, the output bad pixel file will also have 2 x 2 binning.
badorders uses the information in the observation definition files to
calculate the location and extent of each spectral feature. For zero order, the
blocked region extends between the wavelengths specified by lambda0 and
lambda1. For higher orders, the blocked region is located at the wavelength of
each line specified in linefile, and has a width in wavelength of +/- hwidth
angstroms. An appropriate observation definition file must be created for each
order, and will have the name observset_n.obsdef
,
where n
is the order. Each
observation definition file must specify the order, and will usually specify an
individual dewar offset file appropriate for that order image, since there will
probably be small offsets between the true positions of the features in each
order, and those predicted by the optical model. Consult the COSMOS Cookbook for hints about
constructing these files.