Loading an IR (omnic SPG) experimental file

Here we load an experimental SPG file (OMNIC) and plot it.

import spectrochempy as scp

Load and display the dataset

datadir = scp.preferences.datadir
dataset = scp.read_omnic(datadir / "irdata" / "nh4y-activation.spg")
_ = dataset.plot_stack(style="paper")
plot read IR from omnic

Adjust axis metadata

dataset.y.to("hour")
dataset.y -= dataset.y[0]
dataset.y.title = "acquisition time"

_ = dataset.plot_stack()
plot read IR from omnic

This ends the example ! The following line can be uncommented if no plot shows when running the .py script with python

# scp.show()

Total running time of the script: (0 minutes 0.514 seconds)