Colour coordinates

Overview

This module provides rudimentary colour coordinate processing. Calculate the CIE 1931 rgb chromaticity coordinates for an arbitrary spectrum.

See the __main__ function for examples of use.

This package was partly developed to provide additional material in support of students and readers of the book Electro-Optical System Analysis and Design: A Radiometry Perspective, Cornelius J. Willers, ISBN 9780819495693, SPIE Monograph Volume PM236, SPIE Press, 2013. http://spie.org/x648.html?product_id=2021423&origin_id=x646

Module functions

pyradi.rychroma.chromaticityforSpectralL(spectral, radiance, xbar, ybar, zbar)

Calculate the CIE chromaticity coordinates for an arbitrary spectrum.

Given a spectral radiance vector and CIE tristimulus curves, calculate the CIE chromaticity coordinates. It is assumed that the radiance spectral density is given in the same units as the spectral vector (i.e. [1/um] or [1/cm-1], corresponding to [um] or [cm-1] respectively. It is furthermore accepted that the tristimulus curves are also sampled at the same spectral intervals as the radiance. See http://en.wikipedia.org/wiki/CIE_1931_color_space for more information on CIE tristimulus spectral curves.

Args:
spectral (np.array[N,] or [N,1]): spectral vector in [um] or [cm-1].
radiance (np.array[N,] or [N,1]): the spectral radiance (any units), (sampled at spectral).
xbar (np.array[N,] or [N,1]): CIE x tristimulus spectral curve (sampled at spectral values).
ybar (np.array[N,] or [N,1]): CIE y tristimulus spectral curve (sampled at spectral values).
zbar (np.array[N,] or [N,1]): CIE z tristimulus spectral curve (sampled at spectral values).
Returns:
[x,y,Y]: color coordinates x, y, and Y.
Raises:
No exception is raised.

Table Of Contents

Previous topic

Three-Dimensional Noise Calculation

Next topic

Bulk detector modelling

This Page