Luxpy is a powerful python library with a multitude of useful colormetric calculations.
[Update 9/7/2022] The author of Luxpy has created an online portal to perform some calculations without having to write any Python code. The Luxpy portal is here.
"Luxpy is an open-source package under a GPLv3 license that supports several common lighting, colorimetric, color appearance and other color science related calculations and models, such as:
- spectral data interpolation (conform CIE15-2018) and normalization
- calculation of daylight phase, blackbody radiator and other reference illuminant spectra
- calculation of tristimulus values
- correlated color temperature and Duv (methods: robertson1968, ohno2014, li2016, zhang2019)
- color space transformations
- chromatic adaptation transforms
- color appearance models
- color rendition indices (e.g., CIE Ra, CIE 224:2017 Rf, ANSI/IES TM30 Rf, Rg, ... + IES TM30 Annex E priority levels & reports)
- calculation of photobiological quantities (e.g., melanopic irradiance, MEDI, CS, ...)
- multi-component spectrum creation and optimization
- hyper-spectral image simulation and rendering
- MacAdam ellipses
- color differences (cam02ucs, DE2000, ...)
- modelling of individual observer color matching functions (Asano, 2016)
- calculation of CIEOP06 (cfr. CIE TC1-97) color matching functions and cone-fundamentals
- display characterization
- reading and visualizing IES and LDT photometric files (visualizations: 2D polar plots, 3D plots, single-bounce physical-based rendering)
- spectral mismatch (f1', correction factors) and measurement uncertainty (under development)
As of May 2019, LuxPy now also has a toolbox spectro for spectral measurements with JETI and OceanOptics spectrometers:
- spectro.jeti: easy installation (dll's are part of sub-package).
- spectro.oceanoptics: more tricky installation (requires manual install of python-seabreeze, ...; see here or subpackage help for more info)
UPDATED (May 2021): ANSI/IES-TM30-2018 graphical output (Color Rendition Reports, Color Vector Graphics, Annex E priority levels...)"
We have posted an example Datalore static notebook that shows some of the usage for the Luxpy library. This notebook can be cloned using the JetBrains free plan and the files needed are attached below.
Some examples of the Luxpy graphical output are below.
Note - 9/6/23 Numpy version 1.20 depreciated the use of some type conversion alias commands such as np.complex and np.float so that code libraries that use these commands now have to update their code to maintain compatibility with Numpy. The last version of Numpy that is compatible with the current versions of Colour and Luxpy is numpy 1.19.5. Current versions of Pandas and Matplotlib both require numpy > 1.20, so to get this to work, change the versions as follows:
Numpy 1.19.5
Pandas 1.4.4
Matplotlib 3.6.3
This can be done in Datalore using the Environment tab to the left. Search for each package, click on it, and use the pull-down menu to select the version.
--------------------------------------------------------------------------------------------------------------------
These links are being provided as a convenience and for informational purposes only; they do not constitute an endorsement or an approval by Luminus of any of the products, services or opinions of the corporation or organization or individual. Luminus bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links. Contact the external site for answers to questions regarding its content.
Comments
0 comments
Please sign in to leave a comment.