c_arclose - Closes an AVHRR archive image

SYNTAX

FUNCTION c_arclose (arcdesc)

    long *arcdesc;

PARAMETERS

arcdesc (long *, input)

AVHRR archive file descriptor returned by c_arcopnrd() or c_arcopnwrt().

DESCRIPTION

Closes an AVHRR archive image. If the image was opened by c_arcopnrd() for updating or by c_arcopnwrt() for writing, the internal buffer will be written to the image before the disk file is closed. After the file has been closed, the dynamically allocated memory for the internal buffer is freed.

RETURN VALUE

c_arclose() returns

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