raman.MM_baseline_correction

raman.MM_baseline_correction(y, w=60)

Baseline correction based on a moving median filter. See Grumstrup et al., J. Phys. Chem. B 117, 8245 (2013) for more details. This filter tends to reduce the peak height and works best as supplement to any of the other baseline correction functions.

New in version 01-04-2016.

Parameters:
  • y (array) – Input spectrum. If y is a list or a 2d array of spectra, correct all spectra.
  • w (int) – Window size for median filter in indices. Works best for 5x Raman line width.
Returns:

Baseline corrected spectrum with same shape as y.