Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Reproducible Spectral and Hyper-Spectral Analysis using NeXL



Nicholas Ritchie


NeXL is a collection of Julia language packages (libraries) for X-ray microanalysis data processing. NeXLCore provides basic atomic and X-ray physics data and models including support for microanalysis-related data types for materials and k-ratios. NeXLMatrixCorrection provides algorithms for matrix correction and iteration. NeXLSpectrum provides utilities and tools for energy dispersive X-ray spectrum and hyper-spectrum analysis including display, manipulation and fitting. NeXL is integrated in with the Julia language infrastructure. NeXL is tightly integrated with the Gadfly plotting library and the DataFrames tabular data library. When combined with the DrWatson package, NeXL can provide a highly reproducible environment in which to process microanalysis data. Data availability and reproducible data analysis are two keys to scientific reproducibility. No only should readers of journal articles have access to the data, they should also be able to reproduce the analysis steps that take the data to final results. This paper will both discuss the NeXL framework and provide examples of how it can used for reproducible data analysis.
Microscopy and Microanalysis


X-Ray Microanalysis


Ritchie, N. (2001), Reproducible Spectral and Hyper-Spectral Analysis using NeXL, Microscopy and Microanalysis, [online], (Accessed May 22, 2024)


If you have any questions about this publication or are having problems accessing it, please contact

Created January 1, 2001, Updated November 29, 2022