XYZcie1931_from_spd#

colorsynth.XYZcie1931_from_spd(spd, wavelength, axis=-1)[source]#

Calculate the CIE 1931 tristimulus values, \(XYZ\), for the given spectral power distribution.

Parameters:
  • spd (ndarray) – the spectral power distribution of an emitting source as a function of wavelength

  • wavelength (Quantity) – the wavelength grid corresponding to the spectral power distribution. Must be sorted to yield positive \(XYZ\) values

  • axis (int) – the wavelength axis, or the axis along which to integrate

Return type:

ndarray