c_getahdr - Read the associated AHDR file for an AVHRR archive image from disk

SYNTAX

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

FUNCTION c_getahdr (arch_name, model, drop)

    char   *arch_name;
    struct MODEL *model;
    struct DROPPED *drop;

PARAMETERS

arch_name (char *, input)

Host file name of the AVHRR archive image for which this function is to retrieve the associated header file.

model (struct MODEL *, output)

Pointer to an AVHRR model structure to be filled with the header information.

drop (struct DROPPED *, output)

Pointer to an AVHRR dropped line structure to be filled with the information about any dropped lines in the image.

DESCRIPTION

A host file name for the AHDR file is created by adding or replacing the extension of the specified file with "ahdr". This file is then opened and the model and dropped line structures are filled.

RETURN VALUE

c_getahdr() returns

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