(user.saxs.online_integration)=
# Setup online radial integration on Jungfraujoch
1. **Calibrate the detector using pyFAI.**
Analyze a calibration scan carefully with `pyFAI` and save the resulting **PONI** file and **pixel mask**. Also determine the beam center position.
:::{note}
As of 2026-06-18, Jungfraujoch only accepts `uint32` TIFF mask files. If the mask generated by `pyFAI` is stored as `uint8`, it needs to be converted to the required format before uploading.
To do this (from the home directory `/sls/x12sa/data/[p-group]/raw/`):
- Activate the python environment: `source mask/.mask/bin/activate`
- Run `python convert_mask_format.py -i -o