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:
vec_lab (
Array) – [3] Outgoing scaled normalised wave-vector in lab frameorigin_lab (
Array) – [3] Origin of diffraction in lab frames_step_lab (
Array) – [3] Lab-frame step of one pixel along the slow direction, fromdetector_basis_vectors_lab().f_step_lab (
Array) – [3] Lab-frame step of one pixel along the fast direction, fromdetector_basis_vectors_lab().det_origin_lab (
Array) – [3] Lab-frame position of pixel (0, 0), fromdetector_basis_vectors_lab().
- Returns:
See also
anri.geom.detector_basis_vectors_labComputes s_step_lab, f_step_lab and det_origin_lab.
Notes
Originally from section 5 of (Thomas, 1992) [3] .
References