-
Is this legit? https://www.waveformlighting.com/tech/calculate-duv-from-cie-1931-xy-coordinates No citation for the calculation is provided. Does Colour-science have this? I could not find it in the API reference. Thanks in advance for any consideration you provide this post!
|
Beta Was this translation helpful? Give feedback.
Answered by
tjdcs
Mar 14, 2023
Replies: 1 comment 4 replies
-
We don't have this particular calculation, but that's ok because it's just an approximation function anyway. It's more accurate to do the correct conversions. Convert from xy to UCS uv, and then compute uv to CCT with the defaut options. from colour import xy_to_UCS_uv, uv_to_CCT
cct_duv = uv_to_CCT(xy_to_UCS_uv((0.3143, 0.3275)))
print(f"CCT: {cct_duv[0]:.1f}, ∆uv: {cct_duv[1]:.4f}") |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
blue-j
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't have this particular calculation, but that's ok because it's just an approximation function anyway. It's more accurate to do the correct conversions.
Convert from xy to UCS uv, and then compute uv to CCT with the defaut options.