Cfitsio Toolkit - matlab.io.fits.openFile
- :
file
=openFile(filename)
- :
file
=openFile(filename, mode)
Attempt to open a file of the given input name.
This is the equivalent of the cfitsio fits_open_file function.
Inputs
filename - filename to open.
mode - If the option mode string ’READONLY’ (default) or ’READWRITE’ is provided, open the file using that mode.
Outputs
file - opened file identifier.
Examples
import_fits; filename = file_in_loadpath("demos/tst0012.fits") fd = fits.openFile(filename, 'READONLY'); fits.closeFile(fd);