# colour.temperature.CCT_to_xy_McCamy1992¶

colour.temperature.CCT_to_xy_McCamy1992(CCT, optimisation_parameters=None)[source]

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

Parameters: CCT (numeric or array_like) – Correlated colour temperature $$T_{cp}$$. optimisation_parameters (dict_like, optional) – Parameters for scipy.optimize.minimize() definition. CIE xy chromaticity coordinates. ndarray

Warning

McCamy (1992) method for computing CIE xy chromaticity coordinates from given correlated colour temperature is a bijective function and might produce unexpected results. It is given for consistency with other correlated colour temperature computation methods but should be avoided for practical applications.The current implementation relies on optimization using scipy.optimize.minimize() definition and thus has reduced precision and poor performance.

References

[Wikipedia2001]

Examples

>>> CCT_to_xy_McCamy1992(6505.0805913074782)  # doctest: +ELLIPSIS
array([ 0.3127...,  0.329...])