fwd#
Forward-projection functions, that use the rest of anri to project peaks onto detector images, and the renderer.
Functions
|
How much of a voxel the beam illuminates: its profile integrated over the voxel. |
|
Check rendered peaks against a Monte Carlo simulation of the beam spreads. |
|
Forward project (ubi, hkl) to get 3D peak centroid on detector (sc, fc, omega) in the box-beam case. |
|
Vectorized version of get_centroid_box. |
|
Vectorized version of get_centroid_box_both. |
|
Vectorized version of get_centroid_box. |
|
Vectorized version of get_centroid_box_both. |
|
Forward project (ubi, hkl) to both Friedel 3D peak centroids on the detector in the box-beam case. |
|
Forward project (ubi, hkl) to get 4D peak centroid (sc, fc, omega, dty) in the Scanning 3DXRD case. |
|
Vectorized version of get_centroid_scan. |
|
Vectorized version of get_centroid_scan_both. |
|
Vectorized version of get_centroid_scan. |
|
Vectorized version of get_centroid_scan_both. |
|
Forward project (ubi, hkl) to both Friedel 4D peak centroids in the Scanning 3DXRD case. |
|
Generate the input variance-covariance matrix from your sigma values. |
|
Largest |
|
Forward-project a reciprocal space vector (h,k,l) with basis vectors (a*, b*, c*) into k-vectors and omega angles. |
|
Forward-project (h,k,l) into k-vectors and omega angles for both Friedel solutions. |
|
Lorentz factor for rotation about |
|
Build the row dict for |
|
Polarisation factor for a beam polarised horizontally, with degree of polarisation |
|
Propagate an input covariance matrix with a Jacobian to yield an output covariance matrix. |
|
|
|
Vectorized version of _propagate. |
|
Vectorized version of _propagate. |
|
|
|
Vectorized version of _propagate. |
|
Vectorized version of _propagate. |
Vectorized version of _propagate. |
|
Vectorized version of _propagate. |
|
|
|
|
Render a fixed-size batch of peaks into sparse contributions for one dty row. |
|
Render all peaks of one phase that reach one dty row into sparse pixels. |
|
Mask of the (entry, hkl, branch) peaks that can put intensity into this dty row. |