Legacy and new data layouts
Supports legacy external links, dual detectors (lambda + minipix) and the new DAQ layout with the 3D dataset under entry/data; I0 channels are located automatically in entry/data and entry/instrument.
Desktop data processing software for X-ray Raman scattering (XRS) experiments (program name XRSProcessTool): loads elastic-peak and XRS scans, locates ROIs on 2D detector images, fits elastic peaks with a Lorentzian and rejects bad crystals, computes the momentum transfer q for ROI selection, and interpolates scans and ROIs into a final energy-transfer spectrum. Supports both legacy and new DAQ data layouts at B5 beamline (ID33).

XRSProcessTool is a desktop application for X-ray Raman scattering (XRS) data processing at the B5 beamline (default data directory /heps/beamline/ID33). It turns raw scans into a final energy-transfer spectrum step by step.
.nxs format, supporting the legacy layout (entry/data/data external links), dual detectors (lambda + minipix) and the new DAQ layout where the 3D image dataset sits directly under entry/data (e.g. D_LAMBDA). Files can be picked individually or loaded by scan ID.XRSProcessTool for Windows and Linux, with bundled CJK fonts; libgcc_s is deliberately not bundled to avoid conflicts with system libraries.python main.py; dependencies are listed in requirements.txt.















Supports legacy external links, dual detectors (lambda + minipix) and the new DAQ layout with the 3D dataset under entry/data; I0 channels are located automatically in entry/data and entry/instrument.
Pick .nxs files one by one (accumulating, with clear), or load by scan ID with prefix matching under the data path — convenient for processing a batch of scans.
Overlay crystal ROIs on the 2D detector image, drag to adjust, auto-centre on the brightest pixel and resize, and build an intensity mask with a threshold.
Fits every ROI and reports centre energy, FWHM, height, background and R²; crystals with poor fits are excluded automatically.
Computes q and its uncertainty from the fixed scattering angles of each module, and selects ROIs by q range to balance statistics and resolution.
Interpolates and stacks spectra from many scans and ROIs onto a common energy grid, with module selection and manual ROI exclusion.
Merged / per-module / per-crystal export modes with fit results and a record of all parameters; save and reload the full parameter set as JSON.
| Version | Platform | File size | Published | Downloads | |
|---|---|---|---|---|---|
| No package yet — use it online in TORCH. | |||||
Contact the maintainers above for usage, adaptation or customisation.