/spectrachroma

SpectraChroma is a software for calculating and plotting the color coordinates of emission spectra in the CIE 1931 Chromaticity Diagram.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

SpectraChroma

SpectraChroma is a software for calculating and plotting the color coordinates of emission spectra in the CIE 1931 Chromaticity Diagram (2 Degree Standard Observer).

SpectraChroma's screenshot

Features:

  • Import multiple spectra at once
  • Automatic data labeling
  • Can save the Chromaticity Diagram in several image formats (including SVG, PNG, JPG, TIFF)
  • Chromaticity Diagram customization by showing/hiding the axes, grid lines, and data labels
  • Display the CIE color coordinates and the calculated perceived color
  • Export all CIE color coordinates and the perceived colors to Microsoft Excel or plain text

Downloads

SpectraChroma runs on Windows and Linux, without the need of installation. Just unzip and run the program:

Optionally, an Windows installer is also available:

Note: the program may work on earlier versions of Windows and other flavors of Linux, but that is not guaranteed. Windows 10 and Ubuntu 20.04 are the versions in which SpectraChroma as built and tested into.

As a matter of convenience, some sample spectra are provided to be tested with SectraChroma:

Source Code

SpectraChroma is written in Python 3.9.4 and was exported to Windows and Linux executables using cx_Freeze, which means that no Python installation is required to run the executables.

But you can still get SpectraChorma's source code in Python, so you can run it in Python or build the executable yourself:

The following Python modules (and their dependencies) are required to run SpectraChroma from the source: colour-science, matplotlib, and XlsxWriter. To install all at once, you can run this command on the shell:

pip install colour-science matplotlib XlsxWriter

Aditionally, if you are on Ubuntu (Linux), you might need to also install the package python3-tk:

sudo apt-get install python3-tk

About

SpectraChroma was made by Tiago Becerra Paolini (PhD in Chemistry), with valuable programming advice from Guilherme Wiethaus (professional programmer and MD in Chemistry).

How to cite

Please cite SpectraChroma on your work as:

Paolini, T. B. (2021). SpectraChroma (Version 1.0.1) [Computer software]. https://doi.org/10.5281/zenodo.4906589 DOI: 10.5281/zenodo.4906589