MIDAS4PIL - A new data reduction software for pixelated area detectors
midas4pil is a Python package for synchrotron powder and high-pressure X-ray diffraction data reduction, designed for pixelated area detectors such as Pilatus and Eiger. It implements a complete detector geometry correction pipeline — sample-to-detector distance, beam center, detector tilts, per-panel module misalignment, and radial distortion — following the MIDAS reference model. The central innovation is pixel-matched variable-bin (varbin) integration: each 2θ bin is set to the angular footprint of exactly one detector pixel, delivering the true instrumental resolution without artificial oversampling or interpolation. Calibration against a NIST standard (CeO₂, 29.2 keV, ~350 mm) achieves a mean residual strain of 117 ppm with per-panel correction. Frame reduction runs at 79 Hz for a Pilatus 2M (1679 × 1475) using precomputed bin maps and numba JIT kernels. A PySide6 GUI provides a full calibration and batch integration workflow. The package is self-contained: no dependency on MIDAS, pyFAI, or Dioptas is required. The detailed technical descriptions, development progresses, and user guide can be found from the following links.
For more information, contact Dr. Changyong Park.