NLayers

Declaration: TSpecCollection.NLayers: integer;
The function NLayers returns the number of layers (= length of the spectra) stored in the spectral collection. Please note that the number of layers must match the raw data cube and cannot be set directly. It is indirectly set either by loading a spectral collection from disk or by initializing the spectral collection. .

Hint: In order to access the spectral collection currently loaded in the Spectral Collection Editor you can use the pre-declared global variable SCData.