Main Content

matlab.io.hdf4.sd

HDF4 Multifile Scientific Dataset (SD) への低水準アクセス

説明

これらの MATLAB® 関数を使用するには、HDF SD C API に関する知識が必要です。ほとんどの場合、MATLAB 関数の構文は、対応する HDF ライブラリ関数の構文と類似しています。関数は、名前空間 matlab.io.hdf4.sd として実装されています。この名前空間を使用するには、関数名の前に名前空間のパスを指定するか、関数を呼び出す前に、インポート関数を使用して現在のインポート リストに名前空間を追加します。たとえば、次のようにします。

import matlab.io.hdf4.*
sdID = sd.start("myfile.hdf","read");

アクセス

matlab.io.hdf4.sd.closeTerminate access to SD interface
matlab.io.hdf4.sd.endAccessTerminate access to dataset
matlab.io.hdf4.sd.getFilenameName of file
matlab.io.hdf4.sd.selectIdentifier of dataset with specified index
matlab.io.hdf4.sd.setExternalFileStore data in external file
matlab.io.hdf4.sd.startOpen HDF file and initialize SD interface

読み取り/書き込み

matlab.io.hdf4.sd.createCreate new dataset
matlab.io.hdf4.sd.readDataRead subsample of data
matlab.io.hdf4.sd.setFillModeSet current fill mode of file
matlab.io.hdf4.sd.writeDataWrite to dataset

問い合わせ

matlab.io.hdf4.sd.fileInfoNumber of datasets and global attributes in file
matlab.io.hdf4.sd.getCompInfoInformation about dataset compression
matlab.io.hdf4.sd.getInfoInformation about dataset
matlab.io.hdf4.sd.idToRefReference number corresponding to dataset identifier
matlab.io.hdf4.sd.idTypeType of object
matlab.io.hdf4.sd.isCoordVarDetermine if dataset is a coordinate variable
matlab.io.hdf4.sd.isRecordDetermine if dataset is appendable
matlab.io.hdf4.sd.nameToIndexIndex value of named dataset
matlab.io.hdf4.sd.nameToIndicesList of datasets with same name
matlab.io.hdf4.sd.refToIndexIndex of dataset corresponding to reference number

次元

matlab.io.hdf4.sd.dimInfoInformation about dimension
matlab.io.hdf4.sd.getDimIDDimension identifier
matlab.io.hdf4.sd.getDimScaleScale data for dimension
matlab.io.hdf4.sd.setDimNameAssociate name with dimension
matlab.io.hdf4.sd.setDimScaleSet scale values for dimension

ユーザー定義属性

matlab.io.hdf4.sd.attrInfoInformation about attribute
matlab.io.hdf4.sd.findAttrIndex of specified attribute
matlab.io.hdf4.sd.readAttrRead attribute value
matlab.io.hdf4.sd.setAttrWrite attribute value

定義済みの属性

matlab.io.hdf4.sd.getCalDataset calibration information
matlab.io.hdf4.sd.getDataStrsPredefined attributes for dataset
matlab.io.hdf4.sd.getDimStrsPredefined attributes for dimension
matlab.io.hdf4.sd.getFillValueFill value for dataset
matlab.io.hdf4.sd.getRangeMaximum and minimum range values
matlab.io.hdf4.sd.setCalSet dataset calibration information
matlab.io.hdf4.sd.setDataStrsSet predefined attributes for dataset
matlab.io.hdf4.sd.setDimStrsSet label, unit, and format attributes
matlab.io.hdf4.sd.setFillValueSet fill value for dataset
matlab.io.hdf4.sd.setRangeSet maximum and minimum range value for dataset

チャンク/タイル配置演算

matlab.io.hdf4.sd.getChunkInfoChunk size for dataset
matlab.io.hdf4.sd.readChunkRead chunk from dataset
matlab.io.hdf4.sd.setChunkSet chunk size and compression method of dataset
matlab.io.hdf4.sd.writeChunkWrite chunk to dataset

圧縮

matlab.io.hdf4.sd.setCompressSet compression method of dataset
matlab.io.hdf4.sd.setNBitDataSetSpecify nonstandard bit length for dataset values