Skip to main content

Synchrotron X-ray data analysis in python

Project description

https://github.com/xraypy/xraylarch/actions/workflows/test-ubuntu-mamba.yml/badge.svg https://github.com/xraypy/xraylarch/actions/workflows/test-windows-mamba.yml/badge.svg https://github.com/xraypy/xraylarch/actions/workflows/test-ubuntu.yml/badge.svg https://github.com/xraypy/xraylarch/actions/workflows/test-windows.yml/badge.svg

Larch is an open-source library and set of applications for processing and analyzing X-ray absorption and fluorescence spectroscopy data and X-ray fluorescence and diffraction image data from synchrotron beamlines. It is especially focussed on X-ray absorption fine-structure spectroscopy (XAFS) including X-ray absorption near-edge spectroscopy (XANES) and extended X-ray absorption fine-structure spectroscopy (EXAFS). It also supports visualization and analysis tools for X-ray fluorescence (XRF) spectra and XRF and X-ray diffraction (XRD) images as collected at scanning X-ray microprobe beamlines.

Larch is written in Python, making heavy use of the excellent scientific python libraries (numpy, scipy, h5py, matplotlib, and many more). Larch can be used as a Python library for processing and analyzing X-ray spectroscopy and imaging data. In addition, the applications built with it also use a built-in Python-like macro language for interactive and batch processing. This embedded “miniPython” language is intended to be very easy to use for novices while also being complete enough to automate data processing and analysis and to encourage and facilitate a gentle transition to transition from GUI-only analyses to scripted and programmatic analysis of larger data sets, and allows Larch to be run as a service, interacting with other processes or languages via XML-RPC, and so be used by the popular Demeter XAFS application suite.

Larch is distributed under an open-source license that is nearly identical to the BSD license. It is under active and open development centered at the GeoScoilEnviroCARS sector of the Center for Advanced Radiation Sources at the University of Chicago has been supported by the US National Science Foundation - Earth Sciences (EAR-1128799), and Department of Energy GeoSciences (DE-FG02-94ER14466). In addition, funding specifically for Larch was granted by the National Science Foundation - Advanced CyberInfrastructure (ACI-1450468).

The best citable reference for Larch is M. Newville, Larch: An Analysis Package For XAFS And Related Spectroscopies. Journal of Physics: Conference Series, 430:012007 (2013).

Larch Applications

These applications installed with Larch, in addition to a basic Python library. Here, GUI = Graphical User Interface, CLI = Command Line Interface, and beta indicates a work in progress.

Application Name

GUI/CLI

Description

larch

CLI

simple shell command-line interface

Larch GUI

GUI

enhanced command-line interface with data browser

Larix (was XAS Viewer)

GUI

XAFS Processing and Analysis: XANES pre-edge peak fitting, linear analysis, PCA/LASSO, EXAFS processing, Running Feff, fitting EXAFS data to Feff paths.

GSE Map Viewer

GUI

XRF Map Viewer for GSECARS X-ray microprobe data.

larch_xrf

GUI

Display and analyze XRF Spectra.

larch_xrd1d

GUI

Display and work with 1-D XRD patterns, integrate XRD images, search for XRD patterns of known structures

feff6l

CLI

Feff 6 EXAFS calculations

feff8l

CLI

Feff 8 EXAFS calculations (no XANES)

qtrixs

GUI beta

Display RIXS planes, take profiles

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

xraylarch-0.9.74.tar.gz (80.4 MB view details)

Uploaded Source

Built Distribution

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

xraylarch-0.9.74-py3-none-any.whl (21.2 MB view details)

Uploaded Python 3

File details

Details for the file xraylarch-0.9.74.tar.gz.

File metadata

  • Download URL: xraylarch-0.9.74.tar.gz
  • Upload date:
  • Size: 80.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for xraylarch-0.9.74.tar.gz
Algorithm Hash digest
SHA256 40c7e821170d7290c87db522e96761853390c29782858a87bccd5b64c3f8ae5e
MD5 e90f72ba82d81bce5643e98fe0f43751
BLAKE2b-256 43e0942335d7d4e458ae17bd1d26149f36a2f3c140e3ddaed445acf235576b2c

See more details on using hashes here.

File details

Details for the file xraylarch-0.9.74-py3-none-any.whl.

File metadata

  • Download URL: xraylarch-0.9.74-py3-none-any.whl
  • Upload date:
  • Size: 21.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for xraylarch-0.9.74-py3-none-any.whl
Algorithm Hash digest
SHA256 a1baaa14a3457e52a8fc64efa52d817b0517fa9072b6276aa981c0c7cc2bcb38
MD5 2e232bcfaea01403a1bfb81f6b561412
BLAKE2b-256 b58cca95da50520d07fe500f1f181b28778be245d496c3b43cade1a15f855598

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