Hello I have a FTIR (fourier transform infrared) absorbance spectrum of a sample, Integrating the single lines is correlated to the quantity of substance present in the sample. The spectrum part I'm interested in is something like this:
And I want to calculate the integral under a peak, in respect of the baseline, or something like this area:
My idea was to get the baseline with a filter or something to cut the peaks and then integrate the curve with simpson method (and subtract the baseline integral on the same interval) or subtract the baseline to the curve and integrate then. Is there any way to get the baseline with packages like scipy or others? I'm new to spectrum analysis and I would be thankful for any suggestion!