Coder Social home page Coder Social logo

tbpaolini / spectrachroma Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 7.05 MB

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

Home Page: https://tbpaolini.github.io/spectrachroma/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
colorimetry spectroscopy chromaticity-diagram chemistry python linux ubuntu

spectrachroma's Introduction

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

spectrachroma's People

Contributors

tbpaolini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spectrachroma's Issues

libffi7 is a dependency

I found that I needed to install package libffi7:

sudo apt install libffi7

on my PopOS 22.04 system to get SpectraChroma to run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.