compute_geometry
compute_geometry(xlylzl, omega, omegasign, wvln, wedge, chi, t, out)
Categories: Scattering geometry
Layout: xlylzl and out accept (n,3) AoS or (3,n) SoA See AoS/SoA guide.
Description
is for the "updateGeometry" method of columnfiles from xlylzl it will compute tth, eta, ds, gve into out in the laboratory in xlylzl[npks], the omega rotation[npks], and the rest of the parameters (wedge,wvln,chi,t[3] and omegasign) out should contain : (tth, eta, ds, gx, gy, gz)
Parameters
| Name | Description |
|---|---|
chi |
Chi angle (radians). |
omega |
Omega rotation per spot (radians), shape (n,). |
omegasign |
Omega rotation sign (+1 or -1). |
out |
Output (n,6) AoS or (6,n) SoA: tth, eta, ds, gx, gy, gz. |
t |
Translation vector (3 elements). |
wedge |
Wedge angle (detector tilt, radians). |
wvln |
Wavelength (angstroms). |
xlylzl |
Spot positions in lab frame, (n,3) AoS or (3,n) SoA. |
Constraints
xlylzl.ndim == 2t.n == 3out.ndim == 2
Overloads
| C function | Condition |
|---|---|
compute_geometry |
always |
compute_geometry_f32 |
always |
compute_geometry_soa_f64 |
always |
compute_geometry_soa_f32 |
always |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)