Synchrotron Data Analysis Software Platform
Software
All softwareBrowse the full catalogueImagingCT, Ptycho, BCDI, HoloDiffraction & scatteringPDF, SAXS, BMX, XPCSSpectroscopyXAS, XRF, XRS, PCA/LCFData toolsConversion, cropping and formatsArtificial intelligenceSparse-view CT, training and inference
Download
Download centreAll software packagesDownload & installLicence, checksums and setup
Documentation
DocumentationAll documentationSoftware manualsUser guidesAPI guidePublic and maintainer APIsDownload & installChecksums and setupDAISY user docs ↗Framework and algorithms
NewsTeamAbout DAISYTORCH platform ↗
中文
DAISY Data Processing Software

Official site of HEPS DAISY data processing software: introductions, online access and downloads.

Navigation
  • Software
  • Download
  • Documentation
  • News
  • Team
  • About DAISY
  • Admin
Links
  • TORCH platform ↗
Institute of High Energy Physics, CAS · HEPS Big Data Centre
← Back to software
Spectroscopy

PCA & LCF

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.

BeamlinesID46BM44
Download ↗Download
PCA & LCF screenshot

About this software

Overview

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.

Key features

  • Data import and column mapping: reads text column files and HDF5/NXS data, automatically identifies energy and mu columns from headers, and allows the selected mu column to be applied to an entire batch.
  • Batch normalization: pre-edge subtraction, post-edge normalization, E0 estimation, adjustable normalization ranges and batch spectrum display.
  • Principal component analysis (PCA): PCA training, target-spectrum fitting, component weights and variance statistics.
  • Linear combination fitting (LCF): multi-component fitting with energy shifting, weight constraints, ranked results and component contributions.
  • EXAFS analysis: background removal, forward and reverse Fourier transforms, Cauchy wavelet transform and EXAFS data export.
  • Peak fitting: Gaussian, Voigt and error-function step models with multi-peak fitting and residual visualization.
  • Result export: CSV output for normalization, PCA, LCF and EXAFS data, together with fit reports and PNG figures.
  • Interactive workspace: resizable three-panel layout, Chinese/English UI, one-click workspace reset and reusable parameter settings.

Scope

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.

Technology and compatibility

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.

Software interface

Normalization and background removal: batch processing of Sb synchrotron XAS spectra with pre-edge, post-edge and normalized curves.
Normalization and background removal: batch processing of Sb synchrotron XAS spectra with pre-edge, post-edge and normalized curves.
Principal component analysis: trained PCA components, target-spectrum fit and variance contributions.
Principal component analysis: trained PCA components, target-spectrum fit and variance contributions.
Linear combination fitting: sample spectrum, multi-component fit, residual and component weights.
Linear combination fitting: sample spectrum, multi-component fit, residual and component weights.
EXAFS analysis: background removal with k-space, R-space and q-space results.
EXAFS analysis: background removal with k-space, R-space and q-space results.

Features & algorithms

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.

Batch normalization

Performs pre-edge subtraction, post-edge normalization, E0 estimation and range adjustment, with batch spectrum display.

Principal component analysis

Supports PCA training, target-spectrum fitting, component variance and weight analysis with fitted result visualization.

Linear combination fitting

Fits spectra with multiple components, including energy shifting, weight constraints, ranked results and component contribution output.

EXAFS analysis

Provides background removal, forward and reverse Fourier transforms, Cauchy wavelet analysis and EXAFS data export.

Peak fitting

Supports Gaussian, Voigt and error-function step models with multi-peak fitting, residual comparison and parameter output.

Result export

Exports normalization, PCA, LCF and EXAFS data to CSV, together with fit reports and PNG figures.

Interactive workspace

Resizable three-panel workspace with Chinese/English UI, one-click workspace reset and reusable parameter settings.

Available versions

VersionPlatformFile sizePublishedDownloads
1.2.2
PCA-LCF.exe
Windows · x64100 MB18/11/20261
1.2.1
PCA-LCF.exe
Windows · x64100 MB18/11/20264

Download links are time-limited and support resume; verify the SHA-256 checksum.

Contacts

刘
刘建利
liujianli@ihep.ac.cn

Contact the maintainers above for usage, adaptation or customisation.