Larch is an open-source library and toolkit for processing and analyzing scientific data. Initially designed for X-ray spectroscopic and scattering data collected at modern synchrotron sources, Larch provides a wide selection of algorithms for processing such X-ray data. It also provides many tools for organizing complex data sets and general-purpose tools for processing and analyzing arrays of scientific data.
Larch is written in Python, relies heavily on the wonderful numpy, scipy, h5py, and matplotlib libraries. It can be used directly as a Python library, and it can be extended using Python. In addition, Larch provides a Python-like language (a macro language, or domain specific language) that is intended to be very easy to use for novices while also being complete enough for advanced data processing and analysis.
Larch has several related target application areas, including:
- XAFS analysis, becoming version 2 of the Ifeffit Package for EXAFS analysis.
- Visualizing and analyzing micro-X-ray fluorescence maps.
- Quantitative X-ray fluorescence analysis.
- X-ray standing waves and surface scattering analysis.
- Data collection software for synchrotron data.
The central idea is that having these otherwise different application areas connected by a common macro language will strengthen the tools available for all of them. The macro language can provide a very shallow barrier for those interested in scripting the manipulation and analysis of their data, and become the framework upon which new analysis tools can be built.
Currently, Larch provides a complete set of XAFS Analysis tools (replacing all of the Ifeffit package), has some support for visualizing and analyzing XRF maps and spectra, and has many extra tools for X-ray spectral analysis, data handling, and general-purpose data modeling.
- 1. Downloading and Installation
- 2. Larch Community and Support
- 3. Larch: Motivation and Overview
- 4. Larch Tutorial
- 5. Reading and Writing Data
- 6. Plotting and Displaying Data
- 7. Fitting and Modeling Data
- 8. XAFS Analysis
- 9. X-ray Databases
- 10. X-ray Fluorescence Analysis with Larch
- 11. Programming with Larch