Journal of Synchrotron Radiation (Sep 2024)

Spexwavepy: an open-source Python package for X-ray wavefront sensing using speckle-based techniques

  • Lingfei Hu,
  • Hongchang Wang,
  • Kawal Sawhney

DOI
https://doi.org/10.1107/S1600577524005861
Journal volume & issue
Vol. 31, no. 5
pp. 1037 – 1042

Abstract

Read online

In situ wavefront sensing plays a critical role in the delivery of high-quality beams for X-ray experiments. X-ray speckle-based techniques stand out among other in situ techniques for their easy experimental setup and various data acquisition modes. Although X-ray speckle-based techniques have been under development for more than a decade, there are still no user-friendly software packages for new researchers to begin with. Here, we present an open-source Python package, spexwavepy, for X-ray wavefront sensing using speckle-based techniques. This Python package covers a variety of X-ray speckle-based techniques, provides plenty of examples with real experimental data and offers detailed online documentation for users. We hope it can help new researchers learn and apply the speckle-based techniques for X-ray wavefront sensing to synchrotron radiation and X-ray free-electron laser beamlines.

Keywords