Skip to content

Unexpected CIE XYZ output for emission spectra with "colour.colorimetry.sd_to_XYZ_integration" definition. #849

Answered by KelSolaar
heinemannj asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks! I got it: It is because you are passing your irradiance source both as the spectral distribution and the illuminant!

SD_LED = colour.SpectralDistribution(data, name=name)

print(colour.colorimetry.sd_to_XYZ_integration(SD_LED, k=1))

W, V = SD_LED.wavelengths, SD_LED.values[..., np.newaxis]

print(np.sum(colour.MSDS_CMFS['CIE 1931 2 Degree Standard Observer'][W] * V, axis=0))
[ 82.4402695   82.8543287   78.68796877]
[ 82.4402695   82.8543287   78.68796877]

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@heinemannj
Comment options

@KelSolaar
Comment options

Comment options

You must be logged in to vote
2 replies
@KelSolaar
Comment options

@heinemannj
Comment options

Comment options

You must be logged in to vote
1 reply
@heinemannj
Comment options

Answer selected by KelSolaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #848 on August 15, 2021 19:35.