Subtracting background spectra from sample spectra #731
Answered
by
atravert
phoebe-sch
asked this question in
Q&A
-
Hi - Thanks so much! |
Beta Was this translation helpful? Give feedback.
Answered by
atravert
Jan 8, 2024
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
atravert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Yes it is perefectly doable using the subtraction. For instance, if your sample spectra and background have been recorded in distinct files, you could do:
or if all your spectra are in a dataset
A
where the background spectrum is the first one (index0
):You can test this directly with one of the sample datasets in spectrochempy. In this case the reference spectrum is the last one (index
-1
):