propagate_cov_scan#
- anri.fwd.propagate_cov_scan(ubi, origin_sample, hkl, etasign, wavelength, ky, kz, wedge, chi, y0, sc_lab, fc_lab, norm_lab, ostep, ystep, cov_in)[source]#
Get output covariance matrix for a given forward-projected Scanning 3DXRD peak.
This can be vectorised over ubis and origin_samples (e.g. voxels), see
propagate_cov_scan_all_grains(). It can then be vectorised in an outer loop over hkl, seepropagate_cov_scan_all().- Parameters:
ubi (
Array) – [3,3] (U.B)^(-1) matrix of the grain/voxelorigin_sample (
Array) – [3] origin position of the voxel in the sample reference framehkl (
Array) – [3] (h,k,l) reciprocal space vectoretasign (
float) – +1 (omega1 in ImageD11) or -1 (omega2 in ImageD11) to select which omega solution to returnwavelength (
float) – Wavelength in angstromsky (
float) – y-component of the beam in the lab frame. Represents horizontal beam divergence, usually zero.kz (
float) – z-component of the beam in the lab frame. Represents vertical beam divergence, usually zero.wedge (
float) – Wedge motor value (degrees)chi (
float) – Chi motor value (degrees)y0 (
float) – The true value of dty when the rotation axis (untilted by wedge, chi) intersects the beamsc_lab (
Array) – [3] Laboratory basis vector for the slow direction on the detector fromanri.geom.detector_basis_vectors_lab().fc_lab (
Array) – [3] Laboratory basis vector for the fast direction on the detector fromanri.geom.detector_basis_vectors_lab().norm_lab (
Array) – [3] Laboratory basis vector for the detector normal fromanri.geom.detector_basis_vectors_lab().ostep (
float) – Omega step size in degreesystep (
float) – dty step size in degreescov_in (
Array) – [6,6] Input covariance matrix - build withanri.fwd.get_cov_in()
- Returns:
cov_integrated (
jax.Array) – [3,4] Output covariance matrix for this peak.
Notes
Gets Jacobian of
anri.fwd.get_centroid_box(), then uses that to propagate cov_in viaanri.fwd.propagate_cov(). Adds single pixel widths (in sc, fc, ostep) as variances to outputs to “spread” the signal over 1 pixel.