Tool for calibrating a SAXS beamline using diffraction grating. Currently under construction.
On the DLS module system, you can load this directly with :
module load grating-calibration-i22
On the DLS module system, you can install this tool as:
module load uv
uv venv --python 3.12
uv pip install git+https://github.com/DiamondLightSource/i22-diffraction-grating-calibration.git
source .venv/bin/activate
Simple usage:
$ i22-diffraction-grating-calibration --file /path/to/input.nxs --output my_calibration_folder
For a practical overview of the program and its use, see the docs page
- Assumes a Pilatus 2M detector, pixel size 172e-6 m.
- Units are all SI, not more native/sensible SAXS based units (e.g. beam center position should really be in mm not m, wavelength in angstrom not m, etc.)