raman.peak_remove

raman.peak_remove(y, peaks)

Remove (narrow) peaks like single pixel artefacts from Raman data by linear interpolation.

Parameters:
  • y (array) – Spectrum.
  • peaks (array) – List of tuples containing the first and last index of the interval to remove.
Returns:

Stripped spectrum with same shape as y.