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.
Execute script. You will be prompted to:
Select your .spa file(s) and click "Submit".
Your spectrum/spectra will be plotted. Below is a sample image using polystyrene:
GNU General Public License v3.0 or later
See COPYING to see the full text.