STScI Logo

powercor noao.imred.iids/noao.imred.irs


NAME · USAGE · PARAMETERS · DESCRIPTION · EXAMPLES · SEE_ALSO

NAME

powercor -- Apply power law correction to mountain reduced spectra

USAGE

powercor input records

PARAMETERS

input
The root file name of the input spectra.
records
The range of spectra. The names of the spectra will be formed by appending the range elements to the input root name.
output
This is the root file name for the corrected spectra.
start_rec = 1
The starting record number to be appended to the root name of the created spectra.
power = )iids.power
The power law coefficient.

DESCRIPTION

A power law correction to the IIDS count rates is applied to the input spectra. The mountain reduction software applies a coincidence correction to the observed IIDS count rates but does not correct for a nonlinear effect in the image tube chain. This second correction takes the form of a power law

C(out) = C(in) ** power

where C(in) is the input, coincidence corrected, count rate and C(out) is the corrected count rate. The power is a parameter of the task which defaults to the iids package parameter set to the appropriate value for the IIDS. The exposure time, in seconds, is a required image header parameter (keyword = EXPOSURE) used to convert the total counts to count rates.

Note that if the original raw spectra are being reduced then the either coincor or powercor may be used to apply both the coincidence correction and the power law correction at the same time. In other words, the tasks apply the coincidence correction if the coincidence flag (CO-FLAG) is -1 (uncorrected) and the power law correction alone if the flag is zero (coincidence corrected only). The flag is 1 when both the coincidence and nonlinear correction have been applied.

This task is a script calling coincor with ccmode = "iids".

EXAMPLES

The following example corrects a series of IIDS spectra:

cl> powercor nite1 1-250 output=nite1cc start_rec=1

SEE ALSO

coincor


Source Code · Search Form · STSDAS