<i>pygid</i> : a Python package for fast data reduction in grazing-incidence diffraction
Advances in X-ray and neutron sources, as well as in area-detector technologies, enable the recording of several terabytes of raw two-dimensional detector data in a single experiment. While several efficient integration and conversion tools are available for data collected in transmission geometry, analogous solutions for grazing-incidence diffraction (including grazing-incidence X-ray diffraction and grazing-incidence wide-angle X-ray scattering) experiments have not yet achieved the same level of efficiency. The development of new data analysis tools, including machine-learning-based software for X-ray data, necessitates the establishment of a standardized format for the converted data. To address these challenges, we have developed a new Python library, <i>pygid</i>, which is designed to facilitate fast data processing while providing compatibility with various raw data formats, a standardized data storage format and an intuitive interface for straightforward use. <i>pygid</i> supports three types of coordinate systems and both transmission and grazing-incidence geometries. It is capable of handling large datasets, performing one-dimensional line cuts and simulating expected Bragg peak positions for given structures. The package facilitates sample and experimental metadata curation in accordance with the FAIR principles. As an integral part of the broader <i>mlgid</i> pipeline, <i>pygid</i> serves as the initial step linking raw scattering patterns with machine learning tools for data analysis. The <i>pygid</i> package is accessible at https://github.com/mlgid-project.
Authors
- Dmitry Lapkin (ORCID: https://orcid.org/0000-0003-0680-8740)
- Alexander Hinderhofer (ORCID: https://orcid.org/0000-0001-8152-6386)
- Ainur F. Abukaev (ORCID: https://orcid.org/0000-0002-7164-5688)
- Oleg Konovalov (ORCID: https://orcid.org/0000-0002-0390-5900)
- Constantin Völter (ORCID: https://orcid.org/0009-0001-2690-4468)
- Florian Bertram (ORCID: https://orcid.org/0000-0001-9002-4118)
- Sebastian Schwartzkopff
- Mikhail Romodin
- Frank Schreiber
Institutions
- Deutsches Elektronen-Synchrotron DESY (DE)
- European Synchrotron Radiation Facility (FR)
- University of Tübingen (DE)
Publication Details
- Journal
- Journal of Applied Crystallography
- Published
- 2025-12-17
- DOI
- https://doi.org/10.1107/s1600576725010593
- Primary Topic
- Advanced X-ray Imaging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00