class documentation
class Illuminant:
Contains standard illumination functions, and the means to compute them.
| Static Method | from |
Create spectra from csv file with given spectral range file e.g.: |
| Static Method | merge |
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'):
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 | |
| filename | path (string) |
| wavelength | wavelengths e.g. np.arange(380, 781) (np.array) |
| interp | way of smoothing spectra (see interp1d) (string) |
| Returns | |
| radiation/absorption over wavelengths (np.array) | |
@staticmethod
def planck(wavelengths, temperature):
def planck(wavelengths, temperature):
Get a blackbody radiator at a given temperature
| Parameters | |
| wavelengths | wavelengths (np.array) |
| temperature | temperature of the radiator (np.array) |
| Returns | |
| radiation (np.array) | |