FUNCTION c_calcoeff ( line, mline, min_frm, minfd, model, coeff, calstr )
long line; long mline; short min_frm[]; int minfd; struct MODEL *model; struct COEFFSTR *coeff; struct CALSTR *calstr;
The line in the image being processed.
The image master line number.
The buffer containing the minor frame data for this line.
The minor frame file descriptor.
Structure containing the model and orbital information.
Structure containing the calibration coefficients.
Structure containing the calibration parameters.
Generate thermal calibration coefficients from PRT counts. Load optical calibration coefficients from tables. Apply illumination correction to optical coefficents, if specified. NOAA averages the black body and space data over 1 calibration period and the PRT data over 10 calibration periods. NOAA defines a calibration period to be 5 lines. Like NOAA, c_calcoeff() averages the black body and space data over 1 calibration period. The PRT data is averaged over the number of calibration periods the user specifies. Likewise, the number of lines in a calibration period is also specified by the user.
c_calcoeff() returns
E_SUCC --> Successful completion E_FAIL --> Operation failed