c_hdrread - Place the AVHRR archive header information into the model and dropped line structures

SYNTAX

#include "adaps.h"
#include "archio.h"

FUNCTION c_hdrread (buffer, model, drop)

    char   buffer[][HDR_SIZ+1];
    struct MODEL   *model;
    struct DROPPED *drop;	

PARAMETERS

buffer (char [][HDR_SIZ+1], input)

Buffer containing the entire AVHRR archive header.

model (struct MODEL *, output)

AVHRR model structure that will be filled with the header information.

drop (struct DROPPED *, output)

AVHRR dropped line structure that will be filled with the information about any dropped lines within the image.

DESCRIPTION

This function ensures the buffer contains a valid CEOS_IEF header file and then calls the appropriate functions to fill the model and dropped line structures. See c_getahdr() or c_tpgetahdr() for reading AVHRR archive header files.

RETURN VALUE

c_hdrread() returns

    E_SUCC (0)  --> Successful completion.
    E_FAIL (-1) --> Operation failed.