Published October 28, 2025 | Version v1

pygid: Fast Preprocessing of Grazing Incidence Diffraction Data (GID). Usage examples.

Description

The pygid package converts raw detector images into cylindrical, Cartesian, polar, and pseudo-polar coordinate representations and stores the results in the NXsas file format. It supports both grazing-incidence (GID) and transmission geometries and provides tools for radial and azimuthal profiling.

The provided Jupyter Notebook demonstrates the pygid workflow using three different datasets.

The first example presents a GID pattern of a diindenoperylene (DIP) thin film acquired at the ESRF ID10 beamline equipped with a EIGER2 X CdTe 4M detector. The second dataset contains a typical GIWAXS pattern of a methylammonium lead iodide (MAPbI₃) perovskite thin film measured at the PETRA III P08 beamline using a PerkinElmer flat-panel detector. Finally, the third example shows GID data of PbTe nanoplatelet clusters obtained with an in-house X-ray scattering setup (Xeuss 2.0, Xenocs) operating at an X-ray energy of 8 keV and equipped with a Pilatus 300k detector.

The raw images were converted to cylindrical and polar coordinates and saved as PNG images and HDF5 files containing experimental parameters and sample metadata, following the FAIR data principles.

A detailed description of the package functionality and code is available in the GitHub repository: https://github.com/mlgid-project/pygid.

Files

pygid_logo.png

Files (301.7 MB)

Name Size
md5:9a1a0b0350ea56dd53dd9a3e09abf59a
286.5 kB Preview Download
md5:964e66036cb6479e3842b712b77de0c7
690 Bytes Download
md5:e734bd7a61eca21cc9d9904f8de8c4c8
311.3 kB Preview Download
md5:2267812f2c2894e5aab3b27e5d896e3c
16.3 MB Download
md5:5d1214e4a38b94578a91ea082a73d556
314.9 kB Preview Download
md5:8fe4f637cc553e4e9bfcc37512587a54
468 Bytes Download
md5:2ef8c4d56b11b8f9f812dcf1b1bcc7d0
13.2 kB Download
md5:441fb1ef2a03b5006a3a4fc112e6b1ef
232.5 MB Download
md5:84ff2ac37ae12b4039f24a398d2a216f
571 Bytes Download
md5:e2493ce06db037c4beda300af0316cea
543 Bytes Download
md5:6bb03158dddf2d3cd2f06ee5a53af7da
1.7 kB Download
md5:8fc9f9cd5fa05851790d83e76c04315d
4.5 MB Download
md5:64683b432f37127a3a8ec974a39fcf2f
302.0 kB Download
md5:e8d8eef43568e47a5e423135789389ca
528.0 kB Preview Download
md5:01f431a7c983d139e6c1cb5e1d036e0a
517.3 kB Preview Download
md5:c6e7e03e33c21adab139aa4ac5c879c9
1.2 MB Download
md5:2508f3c1bf376595b9bb7b380dcfcd89
1.2 MB Download
md5:7d70e49a39a95d106fd9a72da5956624
106.9 kB Preview Download
md5:360f17c6f7d0bf0975055c9b0b73472a
6.0 MB Preview Download
md5:8f9d23d271c39eda4e619332ab180e7d
16.8 MB Preview Download
md5:fbd056642c3916f1afe1203643b329d9
828.5 kB Preview Download
md5:0c9c47fd5f9615a08f1e3a8687300d97
813.0 kB Preview Download
md5:e0206c283ecbf3472110a1f6e2099342
18.4 MB Download
md5:1855165483843182992225235f2720a3
863.7 kB Preview Download
md5:19596916a603d93d82985b0652aa3798
1.5 kB Download

Additional details

Dates

Available
2025-10-30

Software

Repository URL
https://github.com/mlgid-project/pygid
Programming language
Python