raytrace_to_det#

anri.geom.raytrace_to_det(vec_lab, origin_lab, s_step_lab, f_step_lab, det_origin_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

Computes s_step_lab, f_step_lab and det_origin_lab.

Notes

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

References