colour.temperature.xy_to_CCT_McCamy1992#

colour.temperature.xy_to_CCT_McCamy1992(xy: ArrayLike) FloatingOrNDArray[source]#

Return the correlated colour temperature \(T_{cp}\) from given CIE xy chromaticity coordinates using McCamy (1992) method.

Parameters

xy (ArrayLike) – CIE xy chromaticity coordinates.

Returns

Correlated colour temperature \(T_{cp}\).

Return type

numpy.floating or numpy.ndarray

References

[Wikipedia01a]

Examples

>>> import numpy as np
>>> xy = np.array([0.31270, 0.32900])
>>> xy_to_CCT_McCamy1992(xy)  
6505.0805913...