c_getaddr - Read the associated ADDR file for an AVHRR archive image from disk

SYNTAX

#include "adaps.h"

FUNCTION c_getaddr (host_img, model)

    char   *host_img;
    struct MODEL *model;

PARAMETERS

host_img (char *, input)

Host file name of the image whose ADDR file is to be read.

model (struct MODEL *, output)

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

DESCRIPTION

A host file name for the ADDR file is created by adding or replacing the extension of the specified file with "addr". This file is then opened and the model structure is filled.

RETURN VALUE

c_getaddr() returns

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