fwd#

Forward-projection functions, that use the rest of anri to project peaks onto detector images.

Functions

hkl_to_k_omega(ubi, hkl, etasign, ...)

Forward-project a reciprocal space vector (h,k,l) with basis vectors (a*, b*, c*) into k-vectors and omega angles.

get_cov_in(sig_origin, sig_wavelength, ...)

Generate the input variance-covariance matrix from your sigma values.

propagate_cov(J_func_out, cov_in)

Propagate an input covariance matrix with a Jacobian to yield an output covariance matrix.

propagate_cov_box(*args)

propagate_cov_box_all_grains(*args)

Vectorized version of _propagate.

propagate_cov_box_all(*args)

Vectorized version of _propagate.

propagate_cov_scan(*args)

propagate_cov_scan_all_grains(*args)

Vectorized version of _propagate.

propagate_cov_scan_all(*args)

Vectorized version of _propagate.

get_centroid_box(ubi, origin_sample, hkl, ...)

Forward project (ubi, hkl) to get 3D peak centroid on detector (sc, fc, omega) in the box-beam case.

get_centroid_box_all_grains(ubi, ...)

Vectorized version of get_centroid_box.

get_centroid_box_all(ubi, origin_sample, ...)

Vectorized version of get_centroid_box.

get_centroid_scan(ubi, origin_sample, hkl, ...)

Forward project (ubi, hkl) to get 4D peak centroid (sc, fc, omega, dty) in the Scanning 3DXRD case.

get_centroid_scan_all_grains(ubi, ...)

Vectorized version of get_centroid_scan.

get_centroid_scan_all(ubi, origin_sample, ...)

Vectorized version of get_centroid_scan.

prepare_gaussian_bin(cov)

Precompute per-axis scaling factors for sample_gaussian_bins().

sample_gaussian_bins(mu, erf_scale, ...)

Integrated intensity of a multivariate Gaussian over an array of axis-aligned bins.

peak_to_pixels(centroid, erf_scale, ...)

Compute the intensity of a single Gaussian peak over a local pixel window.

peaks_to_pixels(centroid, erf_scale, ...)