# colour.temperature.CCT_to_xy_Hernandez1999¶

colour.temperature.CCT_to_xy_Hernandez1999(CCT, optimisation_kwargs=None, **kwargs)[source]

Returns the CIE xy chromaticity coordinates from given correlated colour temperature $$T_{cp}$$ using Hernandez-Andres et al. (1999) method.

Parameters
• CCT (numeric or array_like) – Correlated colour temperature $$T_{cp}$$.

• optimisation_kwargs (dict_like, optional) – Parameters for scipy.optimize.minimize() definition.

Other Parameters

**kwargs (dict, optional) – Keywords arguments for deprecation management.

Returns

CIE xy chromaticity coordinates.

Return type

ndarray

Warning

Hernandez-Andres et al. (1999) method for computing CIE xy chromaticity coordinates from given correlated colour temperature is not 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

[HernandezAndresLR99]

Examples

>>> CCT_to_xy_Hernandez1999(6500.7420431786531)
array([ 0.3127...,  0.329...])