Subtracts a scaled dark or flash calibration image from a series of images CALCOR
"
exposure"
times suitable for
correcting the input data. If the calibration frame data levels are already correct to perform
the necessary correction then the data should be scaled by a factor of one. In addition to
subtracting the calibration data CALCOR also processes saturated values protecting them from
modification. This protection is necessary if the saturated pixels are not to become differentiated. If USESET is true, CAL should be a group expression referring to one calibration frame matching each of the Set Index attributes represented in the IN list; again the name of the file produced by MAKECAL will normally be suitable.
The name of this file may be specified using indirection through a file. [Global calibration image]
"
exposure"
factors for the dark counts expected in the input
data or the flash exposure times. If the calibration data have been normalised to reflect the
number of counts per second of time, then this is the number of seconds of flash exposure
or the number of seconds duration between readouts, if it is a dark counts image. If the
calibration image has been produced so that the correct levels are already present, then these
values should be returned as one. A quick method of specifying that all the images have the
same "
exposure"
factors is to return a single value, this will then be used for all input
images.
The given values must be in the same order as the input images. Indirection through an
ASCII file may be used. If more than one line is required to enter the information then
a continuation line may be requested by adding "
-"
to the end of the last value.
NOTE the use of wildcards with this program is NOT recommended unless the input images all have the same calibration exposure factors. The processing order of any wildcarded images cannot be guaranteed.
The calibration master frame (parameter CAL) is never deleted.
The default for this parameter is TRUE and this cannot be overridden except by assignment on the command line or in response to a forced prompt. [TRUE]
If the logging system has been initialised using CCDSETUP then the value specified there will be
used. Otherwise, the default is "
CCDPACK.LOG"
. [CCDPACK.LOG]
TERMINAL – Send output to the terminal only
LOGFILE – Send output to the logfile only (see the LOGFILE parameter)
BOTH – Send output to both the terminal and the logfile
NEITHER – Produce no output at all
If the logging system has been initialised using CCDSETUP then the value specified there will be
used. Otherwise, the default is "
BOTH"
. [BOTH]
"
"
which means call each of the output images the same name as the corresponding input images.
So:
IN
OUT
signifies that all the images in the current directory should be used and the output images should have the same names.
Other types of modification can also occur, such as:
OUT tmp_
which means call the output images the same as the input images but put tmp_ in front of the names. Replacement of a specified string with another in the output file names can also be used:
OUT tmp_debiasflattened
this replaces the string debias with flattened in any of the output names tmp_.
NOTE the use of wildcards with this program is not recommended unless the input images all have the same calibration exposure factors. The order of processing of any wildcarded images cannot be guaranteed.
Note if a global value for this parameter has been set, using CCDSETUP, then this will be used. [TRUE]
If a global value for this parameter has been set using CCDSETUP then that value will be used. [FALSE]
’
_darksub’
cal=dark_master
expose=dark_exposures
"
dark_corrected_data"
and the parameters used by CALCOR are stored in the logfile
l1551_darkcor.log. "
displaced"
from the local values, causing a discontinuity in the local isophotes, but is the only
method by which the saturated pixels may still be readily identified after the subtraction
of the calibration frame. If any of the input data have had their saturation values set by applications not within CCDPACK, then this routine will require the saturation value which has been used if the values are to be propagated properly. If more than one saturation value has been used then the input frames will need to be processed singly. This is because CALCOR only uses one saturation value per input group. If the saturation values have been set within CCDPACK (by DEBIAS) these will be processed correctly and may be different.
"
current"
value is the value
assigned on the last run of the application. If the application has not been run then the
"
intrinsic"
defaults, as shown in the parameter help, apply. The exceptions to this rule are:
TITLE – always "
Output from CALCOR"
KEEPIN – always TRUE
Retaining parameter values has the advantage of allowing you to define the default behaviour of the application but does mean that additional care needs to be taken when using the application on new datasets/different devices, or after a break of sometime. The intrinsic default behaviour of the application may be restored by using the RESET keyword on the command line.
Certain parameters (LOGTO, LOGFILE, USESET, PRESERVE and CAL) have global values. These global values will always take precedence, except when an assignment is made on the command line. In general global values may be set and reset using the CCDSETUP and CCDCLEAR commands, however, the CAL parameter may only be set by a run of the application MAKECAL.
Supports processing of all non-complex numeric types. BAD pixels are processed as are all image components.