matlab.io.hdf4.sd.getCal
Package: matlab.io.hdf4.sd
Data set calibration information
Syntax
[cal,calErr,offset,offsetErr,datatype] = getCal(sdsID)
Description
[cal,calErr,offset,offsetErr,datatype] = getCal(sdsID)
retrieves
the calibration information associated with a data set.
This function corresponds to the SDgetcal
function
in the HDF library C API.
Examples
import matlab.io.hdf4.* sdID = sd.start('sd.hdf'); idx = sd.nameToIndex(sdID,'temperature'); sdsID = sd.select(sdID,idx); [cal,calErr,offset,offsetErr,dtype] = sd.getCal(sdsID); sd.endAccess(sdsID); sd.close(sdID);