Cfitsio Toolkit - matlab.io.fits.openDiskFile
- :
file
=openDiskFile(filename)
- :
file
=openDiskFile(filename, mode)
Attempt to open a file of the given input name, ignoring any special processing of the filename.
This is the equivalent of the cfitsio fits_open_diskfile 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.openDiskFile(filename, 'READONLY'); fits.closeFile(fd);