Main Content
matlab.io.hdfeos.sw.open
Namespace: matlab.io.hdfeos.sw
Open swath file
Syntax
swfID = open(filename)
swfID = open(filename,access)
Description
swfID = open(filename)
opens an HDF-EOS
swath file for read-only access.
swfID = open(filename,access)
opens or
creates an HDF-EOS swath file identified by filename
and
returns a file ID. access
can be one of the following
values.
'read' (default) | Read-only |
'rdwr' | Read-write |
'create' | Creates a file, deleting it if it already exists |
This routine corresponds to the SWopen
function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* swfid = sw.open('swath.hdf'); sw.close(swfid);