Loading Bruker OPUS files

Here we load an experimental Bruker OPUS files and plot it.

import spectrochempy as scp

Z = scp.read_opus(
    ["test.0000", "test.0001", "test.0002", "test.0003"], directory="irdata/OPUS"
)
Z
NDDataset: [float64] a.u. (shape: (y:4, x:2567))[merged [opus-AB]]
Summary
name
:
merged [opus-AB]
author
:
runner@fv-az1719-728
created
:
2025-05-07 14:36:39+00:00
description
:
Concatenation of 4 datasets:
( test, test, test, test )
history
:
2025-05-07 14:36:39+00:00> Created by concatenate
2025-05-07 14:36:39+00:00> Merged from several files
Data
title
:
absorbance
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.
shape
:
(y:4, x:2567)
Dimension `x`
size
:
2567
title
:
wavenumber
coordinates
:
[ 3998 3997 ... 700.7 699.4] cm⁻¹
Dimension `y`
size
:
4
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]]


plot it

plot read IR from opus


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.196 seconds)