colour.temperature.xy_to_CCT_CIE_D#
- colour.temperature.xy_to_CCT_CIE_D(xy: ArrayLike, optimisation_kwargs: dict | None = None) NDArrayFloat[source]#
Compute the correlated colour temperature \(T_{cp}\) of a CIE Illuminant D Series from the specified CIE xy chromaticity coordinates.
- Parameters:
xy (ArrayLike) – CIE xy chromaticity coordinates.
optimisation_kwargs (dict | None) – Inversion parameters forwarded to
colour.temperature.x0_CCT_grid()andcolour.temperature.solve_CCT_Newton(). Accepted keys aresamples(grid density for the initial guess, defaultcolour.temperature.CCT_INVERSION_GRID_SAMPLES),newton_iterations,backtrack_iterationsandtolerance(forwarded tosolve_CCT_Newton()).
- Returns:
Correlated colour temperature \(T_{cp}\).
- Return type:
Warning
The CIE Illuminant D Series method does not provide an analytical inverse transformation to compute the correlated colour temperature \(T_{cp}\) from the specified CIE xy chromaticity coordinates. The current implementation seeds a damped Gauss-Newton iteration with a nearest-neighbour lookup against a coarse grid sampled from the analytical forward, vectorised across all input samples.
References
[WS00k]
Examples
>>> xy_to_CCT_CIE_D([0.31270775, 0.32911283]) np.float64(6504.389564...)