PyXAS - an open-source package for 2D X-ray near-edge spectroscopy analysis.
In the synchrotron X-ray community, X-ray absorption near-edge spectroscopy (XANES) is a widely used technique to probe the local coordination environment and the oxidation states of specific elements within a sample. Although this technique is usually applied to bulk samples, the advent of new synchrotron sources has enabled spatially resolved versions of this technique (2D XANES). This development has been extremely powerful for the study of heterogeneous systems, which is the case for nearly all real applications. However, associated with the development of 2D XANES comes the challenge of analyzing very large volumes of data. As an example, a single 2D XANES measurement at a synchrotron can easily produce ∼106 spatially resolved XANES spectra. Conventional manual analysis of an individual XANES spectrum is no longer feasible. Here, a software package is described that has been developed for high-throughput 2D XANES analysis. A detailed description of the software as well as example applications are provided.