This is a family of functions which gets a value for a named keyword
from a FitsChan using one of several different data types. The data
type of the returned value is selected by replacing
X
in the function
name by one of the following strings representing the recognised FITS
data types:
The data type of the returned value is selected by replacing
X
in the
function name by one of the following strings representing the
recognised FITS data types:
- CF - Complex floating point values.
- CI - Complex integer values.
- F - Floating point values.
- I - Integer values.
- L - Logical (i.e. boolean) values.
- S - String values.
- CN - A "CONTINUE" value, these are treated like string values, but
are encoded without an equals sign.
The data type of the "value"
parameter
depends on
X
as follows:
- CF - "double
" (a pointer to a 2 element array to hold the real and
imaginary parts of the complex value).
- CI - "int
" (a pointer to a 2 element array to hold the real and
imaginary parts of the complex value).
- F - "double
".
- I - "int
".
- L - "int
".
- S - "char

" (a pointer to a static "char" array is returned at the
location given by the "value" parameter, Note, the stored string
may change on subsequent invocations of astGetFitsS so a
permanent copy should be taken of the string if necessary).
- CN - Like"S".