matlab.io.hdf4.sd
直接与 HDF4 多文件科学数据集 (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 dataset |
matlab.io.hdf4.sd.getFilename | Name of file |
matlab.io.hdf4.sd.select | Identifier of dataset 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 dataset |
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 dataset |
查询
matlab.io.hdf4.sd.fileInfo | Number of datasets and global attributes in file |
matlab.io.hdf4.sd.getCompInfo | Information about dataset compression |
matlab.io.hdf4.sd.getFillValue | 数据集填充值 |
matlab.io.hdf4.sd.getInfo | Information about dataset |
matlab.io.hdf4.sd.idToRef | Reference number corresponding to dataset identifier |
matlab.io.hdf4.sd.idType | Type of object |
matlab.io.hdf4.sd.isCoordVar | Determine if dataset is a coordinate variable |
matlab.io.hdf4.sd.isRecord | Determine if dataset is appendable |
matlab.io.hdf4.sd.nameToIndex | Index value of named dataset |
matlab.io.hdf4.sd.nameToIndices | List of datasets with same name |
matlab.io.hdf4.sd.refToIndex | Index of dataset 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 | Dataset calibration information |
matlab.io.hdf4.sd.getDataStrs | Predefined attributes for dataset |
matlab.io.hdf4.sd.getDimStrs | Predefined attributes for dimension |
matlab.io.hdf4.sd.getFillValue | Fill value for dataset |
matlab.io.hdf4.sd.getRange | Maximum and minimum range values |
matlab.io.hdf4.sd.setCal | Set dataset calibration information |
matlab.io.hdf4.sd.setDataStrs | Set predefined attributes for dataset |
matlab.io.hdf4.sd.setDimStrs | Set label, unit, and format attributes |
matlab.io.hdf4.sd.setFillValue | Set fill value for dataset |
matlab.io.hdf4.sd.setRange | Set maximum and minimum range value for dataset |
分块操作
matlab.io.hdf4.sd.getChunkInfo | Chunk size for dataset |
matlab.io.hdf4.sd.readChunk | Read chunk from dataset |
matlab.io.hdf4.sd.setChunk | Set chunk size and compression method of dataset |
matlab.io.hdf4.sd.writeChunk | Write chunk to dataset |
压缩
matlab.io.hdf4.sd.setCompress | Set compression method of dataset |
matlab.io.hdf4.sd.setNBitDataSet | Specify nonstandard bit length for dataset values |