Next: fix, Previous: fits_write, Up: Internal Routines [Contents][Index]
fits_xread(x, file [, header, ext_header,
offset, extvar_preamble])
Tries to read the FITS file with the name indicated by
file
. The data is read into data
, and the
header into header
, if specified.
If the file includes a FITS extension, then its header is read into
ext_header
, if specified, and the byte offset of the
extension data from the start of the file in offset
, if
specified. If extvar_preamble
is specified, then it must
be a string
containing a preamble to use for the creation of
variables corresponding to data contained in the extension.
Upon success, this function returns a 1
, otherwise a 0
.
See also: fits_header, fits_read