raman.rayleigh_correction

raman.rayleigh_correction(y)

Remove the baseline arising from the Rayleigh line by fitting a Gauss-Lorentz curve to the data. The position of the Rayleigh line (left or right end) is chosen by the amplitude of the spectrum. To reduce the effect of huge Raman peaks, the second order derivative is subtracted from the spectrum before fitting the baseline.

Parameters:y (array) – Input spectrum. If y is a list or 2d-array of spectra, filter every spectrum.
Returns:Spectrum without Rayleigh baseline, same shape as y.