Declaration: TMetaData.CubeSize[dim: TDims]: integer;
The readonly array property CubeSize returns the number of data cells along a particular axis of the data cube. The parameter Dim specifies the axis and may take the following values: dimX, dimY, dimL and dimT for the x, the y, the layer and the timeslot axis, respectively.

Please note that the layer axis might be subdivided into several spectral groups which can be evaluated and accessed by routines such as CountSpectralGroups, FirstAvailableGroup or ObtainSpecRange.

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