matlab.io.hdfeos.sw.attach
Namespace: matlab.io.hdfeos.sw
Attach to swath data set
Syntax
swathID = attach(swfID,swathname)
Description
swathID = attach(swfID,swathname) attaches
to the swath identified by swathname in the file
identified by swfID. The swathID output
is the identifier for the named swath.
This function corresponds to the SWattach function
in the HDF-EOS library C API.
Examples
import matlab.io.hdfeos.* swfid = sw.open('swath.hdf'); swathID = sw.attach(swfid,'Example Swath'); sw.detach(swathID); sw.close(swfid);