class documentation

class Illuminant:

View In Hierarchy

Contains standard illumination functions, and the means to compute them.

Static Method from_file_with_range Create spectra from csv file with given spectral range file e.g.:
Static Method merge_spectra Undocumented
Static Method planck Get a blackbody radiator at a given temperature
Method __init__ Undocumented
Method get Get a standard illumination, specified by name (e.g. "D65")
Instance Variable _D65 Undocumented
@staticmethod
def from_file_with_range(filename, wavelength_range, interp='cubic'):

Create spectra from csv file with given spectral range file e.g.:

    390, 0.1
    500, 0.5
Parameters
filenamepath (string)
wavelength_rangewavelengths e.g. np.arange(380, 781) (np.array)
interpway of smoothing spectra (see interp1d) (string)
Returns
radiation/absorption over wavelengths (np.array)
@staticmethod
def merge_spectra(spectra_a, spectra_b):

Undocumented

@staticmethod
def planck(wavelengths, temperature):

Get a blackbody radiator at a given temperature

Parameters
wavelengthswavelengths (np.array)
temperaturetemperature of the radiator (np.array)
Returns
radiation (np.array)
def __init__(self):

Undocumented

def get(self, function_name):

Get a standard illumination, specified by name (e.g. "D65")

Parameters
function_nameName of illumination (e.g. "D65") (string)
Returns
Illumination (np.array)
_D65 =

Undocumented