Data Analysis, Chemometrics, Spectroscopy, Raman Spectroscopy, Cosmic Rays.
Fixing the Raman spectrum Once the spikes are detected, the next step is to remove them and fix the spectra. For this, interpolated values are obtained at each candidate wavenumber by calculating the mean of its immediate neighbors (within a 2m+1 values window). def fixer(y,m): threshold = 7 #