Show all scripts

EELS Spike Remover

Category: Data Processing and Evaluation – Spectra
Description: Script to automatically locate and remove spikes in EELS spectra. Running the script with the ALT key held down enables the peak finding parameters to be changed. Spikes due to stray x-rays hitting the CCD are removed and the replaced by a linear interpolation between the mean in windows (3 channels wide) either side of the peak detection window, the width of which can be varied by the user. Spikes aren't all that common, but based on the few spectra I have used this on, it semms to work pretty well. Please let me know if you find any bugs or have other issues with this script.
Comments: There is a limitation (or conflict) in User Defined Language with DM script. The operation "/" and "*" cannot be defined as operators in Notepad++ once we define "/*" and "*/" as comment block markers. So I have left "/" and "*" out from the operator list
Script version: 1.0
DM/GMS version: 3.8.2
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download