A demonstration of how synchrotron XRD data are converted from a 2D area-detector image into a 1D diffraction pattern, together with an interactive lesson in calibrating the instrument from the diffraction rings of a standard sample. The image, the integration and the fit are all computed live in your browser.
The frame above is the real thing, not a recording. Use the tabs to switch between the two modes, drag the crosshair to mis-set the beam centre, and move the refinement slider to watch the fit converge.
| Feature | What you can do with it |
|---|---|
| Source | Cu Kα, Mo Kα or high-energy synchrotron radiation |
| Samples | LaB₆ standard, gold nanoparticles or vitreous silica |
| Detector | Resolution, pixel size and sample-to-detector distance (SDD) |
| Beam centre | Drag the crosshair to simulate a mis-aligned instrument |
| Live integration | The 2D image is converted into a 1D pattern as you adjust the parameters |
| Calibration | The detector distance is hidden and must be recovered from the LaB₆ rings |
| Fit quality | The root-mean-square error of the fit is reported while you refine |
| Interface | Chinese and English, switchable at any time |
A position-sensitive detector records a two-dimensional image; what the crystallographer wants is a one-dimensional pattern. This mode lets you drive the experiment and watch the conversion happen as you go.
The classic first task on a beamline: the detector distance is unknown, and it has to be recovered before anything else can be measured accurately.
r = SDD × tan(2θ)
θ = arcsin(λ / 2d)
d = a / √(h² + k² + l²)
By fitting the positions of the known rings of a standard sample (such as LaB₆), the instrument parameters — above all the detector distance — are recovered, which is what makes subsequent measurements accurate.
HTML5 Canvas renders the 2D image, Plotly.js draws the 1D patterns, and the physical calculations are plain JavaScript running in the browser. The 1D plot re-lays itself out whenever the frame is resized, so it stays aligned with the detector image at any window size.
XRD data-processing classes, synchrotron beamline training and self-study of diffraction geometry. Note that the model is deliberately simplified — real experiments are more complicated — and that the inner rings carry the better signal-to-noise ratio.