lentil.radiometry.Spectrum.to#

Spectrum.to(*args)[source]#

Set new wavelength and/or value units. In addition to supporting single wave or value unit conversion, this method accepts two unit arguments to perform simultaneous wave and value unit conversions.

Parameters:

unit (str) – Unit to convert to, as accepted by Unit().