AST_DELFITS

Delete the current FITS card in a FitsChan

Description:

This routine deletes the current FITS card from a FitsChan. The current card may be selected using the Card attribute (if its index is known) or by using AST_FINDFITS (if only the FITS keyword is known).

After deletion, the following card becomes the current card.

Invocation

CALL AST_DELFITS( THIS, STATUS )

Arguments

THIS = INTEGER (Given)
Pointer to the FitsChan.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

• This function returns without action if the FitsChan is initially positioned at the " end-of-file" (i.e. if the Card attribute exceeds the number of cards in the FitsChan).

• If there are no subsequent cards in the FitsChan, then the Card attribute is left pointing at the " end-of-file" after deletion (i.e. is set to one more than the number of cards in the FitsChan).