biasflat

biasflat makes bias and flat-field corrections to all ccd frames of an image set. Depending on input, biasflat does one of several things:
The following input options may be used:

biasflat returns a new set of image files framename_b_cn.fits, for bias corrected frames, and framename_f_cn.fits for bias and flat corrected frames.  Biasflat may be used for either direct of spectroscopic frames; if spectroscopic, the flat field frame should have been prepared with Sflats.
USAGE
biasflat [-b biasframe] [-f flatframe] [framename[s]]
INPUT
biasframe is the name of a bias frame set
flatframe is the name of a flat frame set
framename[s] isa set of image files to be corrected
OUTPUT
framename_b_cn.fits  or framename_f_cn.fits are sets of corrected frames
PARAMETERS
gain1
relative gain (e-/adu) of IMACS chip 1
...
...
gain8
relative gain (e-/adu) of IMACS chip 8
flat_file
flat field frame to use (or blank or "none")
bias_file
bias frame to use (or blank or "none"
dewar "SITE" or "LDSS3"




Details:

At a minimum, biasflat used the overscan regions to do bias corrections., and corrects, for IMACS, for the relative gains of the 8 chips, using the gains specified in the parameter files. If a bias file is specified, either on the command line or in the parameter file, that image is first subtracted from the data frames, before a final overscan correction is made. If a flat field frame is specified, either on the command line or in the parameter file, the bias-corrected frame is divided by the flat field frame. The flat field frame must either (1) have already been bias-corrected, or (2) have the same bias levels and overscan regions as the other frames.

In the case of spectroscopic data, the flat field frame should have been prepared with Sflats, which properly normalizes each flat field spectrum.

The gains inserted in the parameter file included with the COSMOS distribution represent the latest, best determinations for IMACS at the time the distribution was made, and should not be changed unless you have better or more recent information. The gains are not used for the LDSS3 data, which at this stage of the analysis have already been combined into one array.

Back to programs