GroupNrOfContentType

Declaration: TMetaData.GroupNrOfContentType (Content: TLayerType; DerivOrder: integer): integer;
Returns the spectral group number of the layer content type specfied by the parameters Content and DerivOrder. If the specfied layer type and the specified order of the derivative do not match any layer of the datacube a value of -1 is returned.

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