c_hdrwrite - Write the AVHRR archive header (AHDR) information to a file.

SYNTAX

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

FUNCTION c_hdrwrite (out_fd, model, drop)

    int *out_fd;
    struct MODEL *model;
    struct DROPPED *drop;

PARAMETERS

out_fd (int *, input)

File descriptor for the AVHRR archive header returned by c_hdropen().

model (struct MODEL *, input)

AVHRR model structure containing the header information.

drop (struct DROPPED *, input)

AVHRR dropped line structure.

DESCRIPTION

This function creates a CEOS_IEF header file and calls the appropriate functions to store the AVHRR model and dropped line information to the file.

RETURN VALUE

c_hdrwrite() returns

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