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.
.
|