CheckMetaDataCubeCompatibility

Declaration: TMetaData.CheckMetaDataCubeCompatibility (const Cube: TMat4D): integer;
The function CheckMetaDataCubeCompatibility checks whether the metadata are compatible to the raw data cube specified by the parameter Cube.

The function returns the following error codes:

 0 ... everything OK, metadata and data cube are compatible
-1 ... SizeX does not match the number of cube columns
-2 ... SizeY does not match the number of cube rows
-3 ... SizeL does not match the number of cube layers
-4 ... SizeT does not match the number of cube time slots

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