Main Content
matlab.io.hdfeos.sw.create
Namespace: matlab.io.hdfeos.sw
Create new swath structure
Syntax
swathID = create(swfID,swathname)
Description
swathID = create(swfID,swathname)
creates
a new swath structure where swfID
is the swath
file identifier and swathname
is the name of the
new swath. The swath is created as a Vgroup with the HDF file with
the name swathname
and HDF Vgroup class 'SWATH'
.
This function corresponds to the SWcreate
function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* swfid = sw.open('myfile.hdf','create'); swathID = sw.create(swfid,'ExampleSwath'); sw.detach(swathID); sw.close(swfid);