PGMweb: A Plane Grating Monochromator Simulation Tool

About PGMweb

PGMweb is a web-based simulation tool for plane grating monochromators (PGM) frequently used in soft X-ray synchrotron beamlines and at free-electron lasers. This work is based on the following paper:

Wang, P. Y., Bazan da Silva, M., Hand, M., Wang, H., Chang, P., Beilsten-Edmands, V., Kim, T. K., Lee, T.-L., Sawhney, K. & Walters, A. C. (2025). Journal of Synchrotron Radiation 32(1), 261-268. https://doi.org/10.1107/S1600577524011603

The inspiration for this tool came from the need for a simple, user-friendly tool to visualise the geometry of a PGM given a set of parameters. Staff at the Diamond Light Source had previously built an in-house offline program with Igor. Much of the calculation remained the same but the program was ported to python. The program was then converted to a web-based tool using Shinylive. The calculations are packaged into callable functions and compiled into a Pypi package.

The github repository for this project can be found at here .

This tool is provided as is and without warranty. It is available for free and open-source use under the MIT license. MIT license

Diamond Light Source logo

Copyright 2024 Patrick Wang, Andrew Walters, and Murilo Bazan da Silva