colour.msds_CIE_illuminant_D_series#

colour.msds_CIE_illuminant_D_series(xy: ArrayLike, M1_M2_rounding: bool = True, shape: SpectralShape | None = None) MultiSpectralDistributions[source]#

Return the multi-spectral distributions of the specified N CIE Illuminant D Series using the specified CIE xy chromaticity coordinates.

Parameters:
  • xy (ArrayLike) – CIE xy chromaticity coordinates of shape (N, 2).

  • M1_M2_rounding (bool) – Whether to round \(M1\) and \(M2\) variables to 3 decimal places in order to yield the internationally agreed values.

  • shape (SpectralShape | None) – Specifies the shape of the returned MultiSpectralDistributions. Optional, default None.

Returns:

CIE Illuminant D Series multi-spectral distributions of shape (n_wavelengths, N).

Return type:

colour.MultiSpectralDistributions

Notes

References

[CIET14804i], [WS00k]

Examples

>>> import numpy as np
>>> from colour.utilities import numpy_print_options
>>> from colour.temperature import CCT_to_xy_CIE_D
>>> CCTs = np.array([5000.0, 6500.0]) * 1.4388 / 1.4380
>>> xy = CCT_to_xy_CIE_D(CCTs)
>>> with numpy_print_options(suppress=True):
...     msds_CIE_illuminant_D_series(
...         xy, shape=SpectralShape(400, 700, 100)
...     )
MultiSpectralDistributions([[400.    ,  49.3081,  82.7549],
                            [500.    ,  95.7237, 109.3545],
                            [600.    ,  97.6878,  90.0062],
                            [700.    ,  91.6035,  71.6091]],
                           [...],
                           LinearInterpolator,
                           {},
                           Extrapolator,
                           {'method': 'Constant', 'left': None, 'right': None})