raytrace_to_det#

anri.geom.raytrace_to_det(vec_lab, origin_lab, sc_lab, fc_lab, norm_lab)[source]#

Ray-trace from vector in lab frame (unknown length) to detector coordinates (sc, fc).

Adapted from ImageD11.transform.compute_xyz_from_tth_eta().

Parameters:
Returns:

  • sc (jax.Array) – Slow coordinate on detector in pixels

  • fc (jax.Array) – Fast coordinate on detector in pixels

See also

anri.geom.detector_basis_vectors_lab

Compute detector basis vectors in lab frame, needed for sc_lab, fc_lab, norm_lab.

Notes

Originally from section 5 of (Thomas, 1992) [3] .

References