Interact directly with HDF4 multifile scientific data set (SD) interface
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 package matlab.io.hdf4.sd
.
To use this package, prefix the function name with a package path,
or use the import function to add the package to the current import
list, prior to calling the function, for example,
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 |