matlab.io.fits.openFile
Open FITS file (extended-filename syntax)
Syntax
fptr = openFile(filename)
fptr = openFile(filename,mode)
Description
fptr = openFile(filename)
opens an existing FITS file in read-only mode
and returns a file pointer, fptr
, which references the primary array
(first header data unit, or "HDU"). The openFile
function supports
the extended-filename syntax. Specify filename
as a character vector
or string scalar.
This function corresponds to the fits_open_file (ffopen)
function
in the CFITSIO library C API.
The openFile
function is similar to the function
openDiskFile
. In addition to opening FITS files, the
openFile
function supports the extended-filename syntax in the
input filename. If the filename (or folder path) contains square or curly brace
characters that would confuse the extended-filename parser, then use openDiskFile
.
fptr = openFile(filename,mode)
opens an existing FITS file according to
the mode
, which describes the type of access. mode
may be either 'readonly'
or 'readwrite'
.