d65_standard_illuminant#

colorsynth.d65_standard_illuminant(wavelength)[source]#

Spectral power distribution (SPD) of the CIE standard illuminant D65, which corresponds to average midday light in Western/Northern Europe.

This function interpolates the tabulated SPD provided by CIE.

Parameters:

wavelength (Quantity) – the wavelengths at which to evaluate the spectral power distribution.

Return type:

Quantity

Examples

Plot the D65 standard illuminant over the human visible color range.

import numpy as np
import matplotlib.pyplot as plt
import astropy.units as u
import astropy.visualization
import colorsynth

wavelength = np.linspace(300, 780, num=1001) * u.nm
d65 = colorsynth.d65_standard_illuminant(wavelength)

with astropy.visualization.quantity_support():
    plt.figure()
    plt.plot(wavelength, d65)
../_images/colorsynth.d65_standard_illuminant_0_0.png