UnitSize

Declaration: TMetaData.UnitSize (dim: TDims; index: integer): double;
Returns the size of a matrix cell of the hyperspectral cube in world coordinates. The parameter dim specifies the axis, the parameter index specifies the index number of the cell along the axis. Please note that the size of a matrix cell may be different at different positions of the axis if the calibration function for this axis is not a first order polynomial (i.e. a straight line). This is commonly the case with the wavelength (layer) axis.

Hint: In order to directly access the metadata of the currently loaded dataset you can use the pre-declared global variable MData.