matlab.io.fits.openFile
Open FITS file (extended-filename syntax)
Syntax
fptr = matlab.io.fits.openFile(filename)
fptr = matlab.io.fits.openFile(filename,fmode)
Description
fptr = matlab.io.fits.openFile(
opens an existing FITS file in read-only mode and returns a file pointer to the first
header data unit (HDU).filename)
The openFile function is similar to the matlab.io.fits.openDiskFile function. In addition to opening FITS files,
the openFile function supports the extended-filename syntax in the
input filename. Use the matlab.io.fits.openDiskFile function in cases where the filename (or
folder path) contains square-bracket or curly-brace characters that the
extended-filename parser cannot interpret.
fptr = matlab.io.fits.openFile(
opens an existing FITS file according to the type of access specified by
filename,fmode)fmode. Specify fmode as either
"readonly" or "readwrite".
Examples
Input Arguments
Tips
This function corresponds to the
fits_open_file(ffopen) function in the CFITSIO library C API.To use this function, you must be familiar with the CFITSIO C interface. You can access the CFITSIO documentation at the CFITSIO website.