Loading Bruker OPUS files
Here we load an experimental Bruker OPUS files and plot it.
Read and display OPUS files
import spectrochempy as scp
Z = scp.read_opus(
["test.0000", "test.0001", "test.0002", "test.0003"], directory="irdata/OPUS"
)
Z
NDDataset [merged [opus-AB]] — float64, shape: (y:4, x:2567), a.u.
author
:
runner@runnervm8axu0
created
:
2026-11-15 08:43:57+00:00
description
:
Concatenation of 4 datasets:
( test, test, test, test )
history
:
2026-11-15 08:43:57+00:00> Created by concatenate from 4 datasets: test, test, test, test
2026-11-15 08:43:57+00:00> Merged 4 imported datasets
Data
values
:
[[0.000459 0.0004219 ... 0.5771 0.6324]
[0.000451 0.0004229 ... 0.5752 0.6311]
[0.0002479 0.0002325 ... 0.5809 0.6376]
[0.0003685 0.0003442 ... 0.5827 0.6388]] a.u.
Dimension `x`
coordinates
:
[ 3998 3997 ... 700.7 699.4] cm⁻¹
Dimension `y`
title
:
acquisition timestamp (GMT)
coordinates
:
[1.581e+09 1.581e+09 1.581e+09 1.581e+09] s
labels
:
[[ 2020-02-06 12:09:58.095000+00:00 2020-02-06 12:10:02.232000+00:00 2020-02-06 12:10:06.368000+00:00 2020-02-06 12:10:10.505000+00:00]
[ MCT D317 1mm² [8500 - 700 Cm-1] MCT D317 1mm² [8500 - 700 Cm-1] MCT D317 1mm² [8500 - 700 Cm-1] MCT D317 1mm² [8500 - 700 Cm-1]]
[ /home/runner/.spectrochempy/testdata/irdata/OPUS/test.0000 /home/runner/.spectrochempy/testdata/irdata/OPUS/test.0001
/home/runner/.spectrochempy/testdata/irdata/OPUS/test.0002 /home/runner/.spectrochempy/testdata/irdata/OPUS/test.0003]]

Uncomment the following line to display all figures when running the script
directly with Python.
Total running time of the script: (0 minutes 0.271 seconds)