Main Content

matlab.io.hdfeos.sw.dimInfo

Namespace: matlab.io.hdfeos.sw

Size of dimension

Syntax

dimlen = dimInfo(swathID,dimname)

Description

dimlen = dimInfo(swathID,dimname) returns the length of the specified dimension.

This function corresponds to the SWdiminfo function in the HDF-EOS library C API.

Examples

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
dimlen = sw.dimInfo(swathID,'GeoTrack');
sw.detach(swathID);
sw.close(swfid);

See Also