Loading an IR (omnic SPG) experimental file

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

import spectrochempy as scp

Loading and stacked plot of the original

datadir = scp.preferences.datadir

dataset = scp.NDDataset.read_omnic(datadir / "irdata" / "nh4y-activation.spg")

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

change the unit of y-axis, the y origin as well as the title of the axis

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

_ = dataset.plot_stack()

# scp.show()  # uncomment to show plot if needed (not necessary in jupyter notebook)
plot read IR from omnic

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

Gallery generated by Sphinx-Gallery