Unexpected CIE XYZ output for emission spectra with "colour.colorimetry.sd_to_XYZ_integration" definition. #849
-
By the calculation of CIE XYZ from an emission spectrum of a white Nichia LED (NSPW500GS-K1), measured with a selfmade webcam spectrometer, I'm facing the following strange results for XYZ:
Complete code is also attached:
I'm a bloddy beginner in spectrometry and colorimetry. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @heinemannj, We are generally using ASTM E308-15 practise and according to it, the spectral shape for computation is as follows: Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
-
Already tested yesterday - k=1 provides XYZ vales far away from my self made XYZ integration:
Question:
|
Beta Was this translation helpful? Give feedback.
-
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))
|
Beta Was this translation helpful? Give feedback.
Thanks! I got it: It is because you are passing your irradiance source both as the spectral distribution and the illuminant!