Skip to contents

Replace wavelength values in an instrument descriptor for an Ocean Optics spectrometer with new values. (e.g. when wavelngth calibration is not stored in firmware).

Usage

set_descriptor_wl(descriptor, wl)

Arguments

descriptor

list as returned by function get_oo_descriptor

wl

numeric vector of sorted wavelengths values corresponding to each pixel in the instrument array.

Value

a copy of the argument passed for oo_descriptor with the wavelengths field of the calibration data replaced by the new values.