WLToIndexRounded

Declaration: TSpecCollection.WLToIndexRounded(wl: double; grp: integer): integer;
Converts the wavelength wl to the corresponding rounded index (1-based!). The grp parameter specifies the spectral group number.

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