Related Experiment Video
Updated: Oct 30, 2025

Author Spotlight: Exploring Light-Driven Chemical Reactions and Energy-Harnessing Devices in Photochemical Research
Published on: February 16, 2024
An algorithm for the automatic deglitching of X-ray absorption spectroscopy data
Samuel M Wallace1, Marco A Alsina2, Jean François Gaillard1
1Department of Civil and Environmental Engineering, Northwestern University, 2145 Sheridan Road, Evanston, USA.
Abstract:
Analysis of X-ray absorption spectroscopy data often involves the removal of artifacts or glitches from the acquired signal, a process commonly known as deglitching. Glitches result either from specific orientations of monochromator crystals or from scattering by crystallites in the sample itself. Since the precise energy - or wavelength - location and the intensity of glitches in a spectrum cannot always be predicted, deglitching is often performed on a per spectrum basis by the analyst. Some routines have been proposed, but they are prone to arbitrary selection of spectral artifacts and are often inadequate for processing large data sets. Here, a statistically robust algorithm, implemented as a Python program, for the automatic detection and removal of glitches that can be applied to a large number of spectra, is presented. It uses a Savitzky-Golay filter to smooth spectra and the generalized extreme Studentized deviate test to identify outliers. Robust, repeatable, and selective removal of glitches is achieved using this algorithm.
More Related Videos
Related Concept Videos
Atomic Absorption Spectroscopy: Interference
Spectral interference occurs when signals from other elements or molecules overlap with the analyte signal, falsely elevating or masking the analyte's absorbance. This interference can be corrected using Zeeman,...
Atomic Absorption Spectroscopy: Lab
Solutions containing organic solvents, such as low-molecular-mass alcohols, esters, or ketones, enhance absorbances by increasing...

