このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
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.close | Terminate access to SD interface |
matlab.io.hdf4.sd.endAccess | Terminate access to data set |
matlab.io.hdf4.sd.getFilename | Name of file |
matlab.io.hdf4.sd.select | Identifier of data set with specified index |
matlab.io.hdf4.sd.setExternalFile | Store data in external file |
matlab.io.hdf4.sd.start | Open HDF file and initialize SD interface |
読み取り/書き込み
matlab.io.hdf4.sd.create | Create new data set |
matlab.io.hdf4.sd.readData | Read subsample of data |
matlab.io.hdf4.sd.setFillMode | Set current fill mode of file |
matlab.io.hdf4.sd.writeData | Write to data set |
問い合わせ
matlab.io.hdf4.sd.fileInfo | Number of data sets and global attributes in file |
matlab.io.hdf4.sd.getCompInfo | Information about data set compression |
matlab.io.hdf4.sd.getFillValue | Fill value for data set |
matlab.io.hdf4.sd.getInfo | Information about data set |
matlab.io.hdf4.sd.idToRef | Reference number corresponding to data set identifier |
matlab.io.hdf4.sd.idType | Type of object |
matlab.io.hdf4.sd.isCoordVar | Determine if data set is a coordinate variable |
matlab.io.hdf4.sd.isRecord | Determine if data set is appendable |
matlab.io.hdf4.sd.nameToIndex | Index value of named data set |
matlab.io.hdf4.sd.nameToIndices | List of data sets with same name |
matlab.io.hdf4.sd.refToIndex | Index of data set corresponding to reference number |
次元
matlab.io.hdf4.sd.dimInfo | Information about dimension |
matlab.io.hdf4.sd.getDimID | Dimension identifier |
matlab.io.hdf4.sd.getDimScale | Scale data for dimension |
matlab.io.hdf4.sd.setDimName | Associate name with dimension |
matlab.io.hdf4.sd.setDimScale | Set scale values for dimension |
ユーザー定義属性
matlab.io.hdf4.sd.attrInfo | Information about attribute |
matlab.io.hdf4.sd.findAttr | Index of specified attribute |
matlab.io.hdf4.sd.readAttr | Read attribute value |
matlab.io.hdf4.sd.setAttr | Write attribute value |
定義済みの属性
matlab.io.hdf4.sd.getCal | Data set calibration information |
matlab.io.hdf4.sd.getDataStrs | Predefined attributes for data set |
matlab.io.hdf4.sd.getDimStrs | Predefined attributes for dimension |
matlab.io.hdf4.sd.getFillValue | Fill value for data set |
matlab.io.hdf4.sd.getRange | Maximum and minimum range values |
matlab.io.hdf4.sd.setCal | Set data set calibration information |
matlab.io.hdf4.sd.setDataStrs | Set predefined attributes for data set |
matlab.io.hdf4.sd.setDimStrs | Set label, unit, and format attributes |
matlab.io.hdf4.sd.setFillValue | Set fill value for data set |
matlab.io.hdf4.sd.setRange | Set maximum and minimum range value for data set |
チャンク/タイル配置演算
matlab.io.hdf4.sd.getChunkInfo | Chunk size for data set |
matlab.io.hdf4.sd.readChunk | Read chunk from data set |
matlab.io.hdf4.sd.setChunk | Set chunk size and compression method of data set |
matlab.io.hdf4.sd.writeChunk | Write chunk to data set |
圧縮
matlab.io.hdf4.sd.setCompress | Set compression method of data set |
matlab.io.hdf4.sd.setNBitDataSet | Specify nonstandard bit length for data set values |