c_putahdr - Create the associated AVHRR archive header file (AHDR)

SYNTAX

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

FUNCTION c_putahdr (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 create a header file. The extension will be replaced with "ahdr".

model (struct MODEL *, input)

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

drop (struct DROPPED *, input)

The AVHRR dropped line structure for the specified archive image.

DESCRIPTION

The host file name for the header file is created by replacing the extension of the specified file with "ahdr". This file is opened and the appropriate functions are called to write the AVHRR model and dropped line structures to the file.

RETURN VALUE

c_putahdr() returns

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