osscals - Get the calibration coefficients for the AVHRR visual channels from a degradation table using a piecewise linear method of calibration based on days since launch

SYNTAX

FUNCTION osscals(hostbl, satnum, ayear, aday, Kval, ocoeffs)

    char	 *hostbl;
    long	 satnum;
    long	 ayear;
    long	 aday;
    float	 Kval[];
    long	 ocoeffs[];

PARAMETERS

hostbl (char *, input)

The host file name of the calibration degradation table.

satnum (long, input)

The number of the satellite acquiring the pass (for example, 11 for NOAA-11).

ayear (long, input)

The year of acquisition (ie. 94 for 1994).

aday (long, input)

The julian acquisition day.

Kval (float [], output)

The K value for AVHRR channels 1 and 2 of this satellite. These values are used to convert radiance to albedo.

ocoeffs (long[], output)

The calibration coefficients for the AVHRR visual channels (channels 1 and 2).

DESCRIPTION

Open the OSS degradation table and retrieve the satellite number, dates, and count values. Calculate the number of days since launch. From this information, calculate the calibration coefficients for the AVHRR visual channels.

RETURN VALUE

osscals() returns

    E_SUCC --> Successful completion
    E_FAIL --> Operation failed