Setting the UB MatrixΒΆ
The UB matrix describes how reciprocal lattice coordinates are oriented on the
diffractometer. The B matrix is determined by the lattice constants and
converts (h, k, l) from reciprocal lattice units to Cartesian
reciprocal-space coordinates. The U matrix describes how the crystal is
mounted relative to the diffractometer sample circles.
orGUI provides two complementary workflows:
Manual reflection settingThe user selects known reference reflections in detector images, assigns
hklvalues, and calculatesUfrom one or more measured reflections. This is the most transparent workflow and is the best way to diagnose detector, scan-axis, or indexing problems.Automatic UB settingorGUI streams through the scan images, detects a sharp Bragg-like peak, assigns candidate
hklvalues, builds a one-reflection trialUmatrix, confirms that matrix with another predicted Bragg peak, and optionally adds more validated reflections.