IndexToWL

Declaration: TSpecCollection.IndexToWL (index: integer): double;
Returns the wavelength which corresponds to the index of the stored spectrum. If the index is outside the valid range (1...NLayers) it returns the wavelength value associated to the closest index value. Please note that the index is 1-based despite the fact that the spectrum is stored in a 0-based open array (see example 1 in the description of the TSpecCollection class to see how to use IndexToWL).

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