5.1 FITSIO Error Status Routines
- 1
- Return the current version number of the fitsio library.
The version number will be incremented with each new
release of CFITSIO. The 3 fields of the version string M.xx.yy
are converted to a float as: M + .01*xx + .0001*yy.
FTVERS( > version)
- 2
- Return the descriptive text string corresponding to a FITSIO error
status code. The 30-character length string contains a brief
description of the cause of the error.
FTGERR(status, > errtext)
- 3
- Return the top (oldest) 80-character error message from the
internal FITSIO stack of error messages and shift any remaining
messages on the stack up one level. Any FITSIO error will
generate one or more messages on the stack. Call this routine
repeatedly to get each message in sequence. The error stack is empty
when a blank string is returned.
FTGMSG( > errmsg)
- 4
- The FTPMRK routine puts an invisible marker on the
CFITSIO error stack. The FTCMRK routine can then be
used to delete any more recent error messages on the stack, back to
the position of the marker. This preserves any older error messages
on the stack. FTCMSG simply clears the entire error message stack.
These routines are called without any arguments.
FTPMRK
FTCMRK
FTCMSG
- 5
- Print out the error message corresponding to the input status
value and all the error messages on the FITSIO stack to the specified
file stream (stream can be either the string 'STDOUT' or 'STDERR').
If the input status value = 0 then this routine does nothing.
FTRPRT (stream, > status)
- 6
- Write an 80-character message to the FITSIO error stack. Application
programs should not normally write to the stack, but there may be
some situations where this is desirable.
FTPMSG(errmsg)