Data import and column mapping
Reads text column files and HDF5/NXS data, automatically detects energy and mu columns from headers, and applies a selected mu column to an entire batch.
A desktop application for X-ray absorption spectroscopy (XAS) that integrates data import, normalization, PCA, LCF, EXAFS and peak fitting, with batch processing, interactive visualization and CSV/PNG export.

PCA & LCF (XASMatch) is a desktop application for synchrotron X-ray absorption spectroscopy (XAS/XAFS). It supports the complete workflow from raw spectrum import through normalization, principal component analysis, linear combination fitting, EXAFS processing and peak fitting. The application is designed for batch experimental data and provides column mapping, batch processing, interactive plotting and result export.
The software is intended for batch normalization, spectral feature analysis, component fitting and routine EXAFS processing of synchrotron XAFS/XAS data, including data analysis at HEPS ID46, BM44 and related absorption spectroscopy beamlines.
The application is built with Python, PyQt5, pyqtgraph, NumPy, SciPy and h5py, and includes a compact XrayLarch-compatible API subset through larch.io, larch.xafs, larch.math and larch.fitting. The current software version is 1.2.1.




Reads text column files and HDF5/NXS data, automatically detects energy and mu columns from headers, and applies a selected mu column to an entire batch.
Performs pre-edge subtraction, post-edge normalization, E0 estimation and range adjustment, with batch spectrum display.
Supports PCA training, target-spectrum fitting, component variance and weight analysis with fitted result visualization.
Fits spectra with multiple components, including energy shifting, weight constraints, ranked results and component contribution output.
Provides background removal, forward and reverse Fourier transforms, Cauchy wavelet analysis and EXAFS data export.
Supports Gaussian, Voigt and error-function step models with multi-peak fitting, residual comparison and parameter output.
Exports normalization, PCA, LCF and EXAFS data to CSV, together with fit reports and PNG figures.
Resizable three-panel workspace with Chinese/English UI, one-click workspace reset and reusable parameter settings.
| Version | Platform | File size | Published | Downloads | |
|---|---|---|---|---|---|
| 1.2.2 PCA-LCF.exe | Windows · x64 | 100 MB | 18/11/2026 | 1 | |
| 1.2.1 PCA-LCF.exe | Windows · x64 | 100 MB | 18/11/2026 | 4 |
Download links are time-limited and support resume; verify the SHA-256 checksum.
Contact the maintainers above for usage, adaptation or customisation.