c_initmod - Initialize the AVHRR model and get information needed for access to the model calculations

SYNTAX

FUNCTION c_initmod (satnum, year, month, day, shour, smin, ssec, sfrac, dtype, nlines, model)

    long *satnum;
    long *year;
    long *month;
    long *day;
    long *shour;
    long *smin;
    long *ssec;
    long *sfrac;
    long *dtype;
    long *nlines;
    struct MODEL *model;

PARAMETERS

satnum (long *, input)

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

year (long *, input)

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

month (long *, input)

The month of acquisition.

day (long *, input)

The julian day of acquisition.

shour (long *, input)

The starting hour of the pass (0 - 23).

smin (long *, input)

The starting minute of the pass (0 - 59).

ssec (long *, input)

The starting second of the pass (0 - 59).

sfrac (long *, input)

The starting fractional second (millisecond) of the pass.

dtype (long *, input)

Data type:

     = 1:	LAC data
     = 2:	GAC data
     = 3:	HRPT data

nlines (long *, input)

The number of lines in the pass.

model (struct MODEL *, output)

Structure containing the model and orbital information. model->ehour, model->emin, model->esec, and model->efrac must all be initialized to zero prior to calling c_initmod(), if the ending time of the pass is to be computed.

DESCRIPTION

Incorporate the specified input information into the model structure. Read the ephemeris information from the appropriate tables. Get the initial satellite attitude correction coefficients. Define the ephemeris data and the satellite information within the model structure. Calculate the image end time and latitude/longitude coordinates.

RETURN VALUE

c_initmod() returns

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