c_putaddr - Create the associated ADDR file

SYNTAX

#include "adaps.h"

FUNCTION c_putaddr (host_img, model)

    char *host_img;
    struct MODEL *model;

PARAMETERS

host_img (char *, input)

Host file name of the image for which this function is to create an ADDR file.

model (struct MODEL *, input)

The AVHRR model structure containing the header information for the specified AVHRR image.

DESCRIPTION

The host file name for the ADDR file is created by adding or replacing the extension of the specified file with "addr". This file is opened, the appropriate functions are called to write the AVHRR model information to the file, and the file is closed.

RETURN VALUE

c_putaddr() returns

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