Main Content

matlab.io.hdfeos.sw.readAttr

名前空間: matlab.io.hdfeos.sw

swath の属性の読み取り

構文

data = readAttr(swathID,attrname)

説明

data = readAttr(swathID,attrname) は、swath 属性を読み取ります。

この関数は、HDF-EOS ライブラリ C API の関数 SWreadAttr に相当します。

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
value = sw.readAttr(swathID,'creation_date');
sw.detach(swathID);
sw.close(swfid);