Handle missmatching spectra #644
-
Is there any way to handle two spectra of different resolution and/or bounds? I know, it is not possible to beat physics. So, I do not expect any reults for the region outside the given datapoints. Nevertheless, it should be possible to do some math on two spectra of different wavenumbers in the table. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It depends on what exactly you want to do. It seems impossible to do math such as addition, multiplication... etc, on spectra with different coordinates. But it is always possible to align them before doing calculations. This means that some of the spectra must be transformed. If this is not what you want, could you give an example (maybe some code to start with) |
Beta Was this translation helpful? Give feedback.
Align: https://www.spectrochempy.fr/latest/userguide/processing/alignment.html
This could solve some problems.
For resampling (and interpolation), it is possible to do this even if SpectroChemPy does not yet propose all the tools. SciPy and numpy may be useful for manipulating the data in addition to what SpectroChemPy already offers. I will try to write a working example when I have time.
Also, if you have some examples of misaligned spectra that you would like to address, perhaps you can send them to us by attaching them here.