Skip to main content

Library for XAS data analysis

Project description

bm23id24_xas is a python library based on xraylarch, pyfitit and pymca It is created on BM23 and ID24 beamlines of the European Synchrotron Radiation Facility (ESRF) It provides tools for analysis of X-ray Absorption spectroscopy data

bm23id24_xas consists of 4 modules:
  • xas

  • pca_estimator

  • MCR-ALS

  • LCA

xas allows to load the data in .h5 format (the standart format for BM23 and ID24 beamlines after 2020 ESRF upgrade), perform calibration, alignment, interpolation, merge, normalization and EXAFS extraction. The result is a dictionary contatining scan numbers as keys and arrays with processed data as sub-dictionaries. The result is a dictionary.

xas exist in an old xas_v2_6 and new xasproc_v2_82 forms to test the new form

pca_estimator works with the dictionary produced by xas but can also work with an independent txt file contatining energy as the first column and normalized XAS spectra as 2nd and other columns. It allows to interactivelly perform PCA. The function is based on pyfitit, but readapted for the needs of the beamline users. The result is a dictionary.

MCR-ALS works with the dictionary produced by xas, but can also work with an independent txt file contatining energy as the first column and normalized XAS spectra as 2nd and other columns. It allows to interactivelly perform MCR-ALS analysis. It is possible to provide reference spectra if needed as dictionaries produced by xas or txt files if needed. The result is a dictionary.

LCA works with the dictionary produced by xas, but can also work with txt files for both, data and references.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bm23id24_xas-0.0.13.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bm23id24_xas-0.0.13-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file bm23id24_xas-0.0.13.tar.gz.

File metadata

  • Download URL: bm23id24_xas-0.0.13.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bm23id24_xas-0.0.13.tar.gz
Algorithm Hash digest
SHA256 2cfa3fc6348d10644308944e44804c33692486e221cbe3b105827598106a236b
MD5 1f197d9ad9142e0e22a363e90c7099aa
BLAKE2b-256 f7d1542e3c30f9c6c668f1e2028be13925da27abe734a73ea4d4cc2a056f241c

See more details on using hashes here.

File details

Details for the file bm23id24_xas-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: bm23id24_xas-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bm23id24_xas-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3669766dc1fb90bd221aa699ccf7a8a66d7409b9d4df6b2147ee25f6c4314adc
MD5 14ab3f388142e8e6c5cd5d7239e66587
BLAKE2b-256 82cd9a75ab8f9689160516fc67d6b53a4dc37e6e015bac32cd1d1cfd4fbe8fa2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page