matlab.io.hdf4.sd
Low-level access to HDF4 multifile scientific datasets (SD)
Description
To use these MATLAB® functions, you should be familiar with the HDF SD C API. In most cases, the syntax
of the MATLAB function is similar to the syntax of the corresponding HDF library function. The
functions are implemented as the namespace matlab.io.hdf4.sd
. To use this
namespace, prefix the function name with a namespace path, or use the import function to add the
namespace to the current import list, prior to calling the function, for
example,
import matlab.io.hdf4.* sdID = sd.start("myfile.hdf","read");
Access
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 |
Read/Write
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 |
Inquiry
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.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 |
Dimensions
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 |
User-defined Attributes
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 |
Predefined Attributes
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 |
Chunking/Tiling Operations
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 |
Compression
matlab.io.hdf4.sd.setCompress | Set compression method of dataset |
matlab.io.hdf4.sd.setNBitDataSet | Specify nonstandard bit length for dataset values |