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:
vec_lab (
Array) – [3] Outgoing scaled normalised wave-vector in lab frameorigin_lab (
Array) – [3] Origin of diffraction in lab framessc_lab (
jax.Array) – [3] Laboratory basis vector for the slow direction on the detector fromdetector_basis_vectors_lab().fc_lab (
jax.Array) – [3] Laboratory basis vector for the fast direction on the detector fromdetector_basis_vectors_lab().norm_lab (
jax.Array) – [3] Laboratory basis vector for the detector normal fromdetector_basis_vectors_lab().
- Returns:
See also
anri.geom.detector_basis_vectors_labCompute detector basis vectors in lab frame, needed for sc_lab, fc_lab, norm_lab.
Notes
Originally from section 5 of (Thomas, 1992) [3] .
References