Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

matlab.io.hdf4.sd

HDF4 Multifile Scientific Data Set (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 data set
matlab.io.hdf4.sd.getFilenameName of file
matlab.io.hdf4.sd.selectIdentifier of data set 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 data set
matlab.io.hdf4.sd.readDataRead subsample of data
matlab.io.hdf4.sd.setFillModeSet current fill mode of file
matlab.io.hdf4.sd.writeDataWrite to data set

問い合わせ

matlab.io.hdf4.sd.fileInfoNumber of data sets and global attributes in file
matlab.io.hdf4.sd.getCompInfoInformation about data set compression
matlab.io.hdf4.sd.getFillValueFill value for data set
matlab.io.hdf4.sd.getInfoInformation about data set
matlab.io.hdf4.sd.idToRefReference number corresponding to data set identifier
matlab.io.hdf4.sd.idTypeType of object
matlab.io.hdf4.sd.isCoordVarDetermine if data set is a coordinate variable
matlab.io.hdf4.sd.isRecordDetermine if data set is appendable
matlab.io.hdf4.sd.nameToIndexIndex value of named data set
matlab.io.hdf4.sd.nameToIndicesList of data sets with same name
matlab.io.hdf4.sd.refToIndexIndex of data set 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.getCalData set calibration information
matlab.io.hdf4.sd.getDataStrsPredefined attributes for data set
matlab.io.hdf4.sd.getDimStrsPredefined attributes for dimension
matlab.io.hdf4.sd.getFillValueFill value for data set
matlab.io.hdf4.sd.getRangeMaximum and minimum range values
matlab.io.hdf4.sd.setCalSet data set calibration information
matlab.io.hdf4.sd.setDataStrsSet predefined attributes for data set
matlab.io.hdf4.sd.setDimStrsSet label, unit, and format attributes
matlab.io.hdf4.sd.setFillValueSet fill value for data set
matlab.io.hdf4.sd.setRangeSet maximum and minimum range value for data set

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

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

圧縮

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