Main Content

matlab.io.hdfeos.sw.mapInfo

Namespace: matlab.io.hdfeos.sw

Offset and increment of specific geolocation mapping

Syntax

[offset,increment] = mapInfo(swathID,geodim,datadim)

Description

[offset,increment] = mapInfo(swathID,geodim,datadim) retrieves the offset and increment of the geolocation mapping between the specified geolocation dimension and the specified data dimension.

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

Examples

import matlab.io.hdfeos.*
swfid = sw.open('myfile.hdf','create');
swathID = sw.create(swfid,'MySwath');
sw.defDim(swathID,'GeoTrack',2000);
sw.defDim(swathID,'GeoXtrack',1000);
sw.defDim(swathID,'DataTrack',4000);
sw.defDim(swathID,'DataXtrack',2000);
sw.defDimMap(swathID,'GeoTrack','DataTrack',0,2);
sw.defDimMap(swathID,'GeoXtrack','DataXtrack',1,2);
sw.detach(swathID);
sw.close(swfid);
swfid = sw.open('myfile.hdf','read');
swathID = sw.attach(swfid,'MySwath');
[offset,increment] = sw.mapInfo(swathID,'GeoTrack','DataTrack');
sw.detach(swathID);
sw.close(swfid);

See Also