laserkelvin / PySpecTools

Routines for rotational spectroscopy analysis written in Python 3
MIT License
31 stars 5 forks source link

Bias in baseline removal #24

Open laserkelvin opened 3 years ago

laserkelvin commented 3 years ago

It was brought to my attention that in experiments where there is an offset/bias to the baseline, the peak finding does not work as intended for whatever reason: significantly fewer peaks are detected contrary to what is expected.

From some testing it seemed like playing around (specifically decreasing) with the sigma threshold for AssignmentSession.find_peaks will partially alleviate this, but then sigma doesn't hold the meaning it should.