pogechi / spa-on-python

Read Thermo Omnic .spa files using Python and plot them using Seaborn. Modified from lerkoah's original script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read .SPA Raman files using Python

Usage:

Use PySimpleGUI to select as many .spa files as you wish.

The function extracts count and wavenumber data to generate a Pandas DataFrame.

Finally, the spectra are plotted on top of each other using Seaborn. For multiple plots in the same image, an optional plot is provided at the end of the script.

This Python function is based on lerkoah/spa-on-python, which in turn is based on LoadSpectra from matlab. The original file allows working with FTIR spectra.

Example

Execute script. You will be prompted to:

PySimpleGUI

Select your .spa file(s) and click "Submit".

Your spectrum/spectra will be plotted. Below is a sample image using polystyrene:

Polystyrene

License

GNU General Public License v3.0 or later

See COPYING to see the full text.

About

Read Thermo Omnic .spa files using Python and plot them using Seaborn. Modified from lerkoah's original script.

License:GNU General Public License v3.0