find_dty_for_beam_xy#
- anri.geom.find_dty_for_beam_xy(v_sample, k_in_lab, omega, wedge, chi, y0)[source]#
Find the dty value required to make the beam intersect a specific point v_sample at a given omega.
This is only valid for the scanning case (beam can be approximated as a ray).
- Parameters:
v_sample (
Array) – [3] Vector in sample coordinatesk_in_lab (
Array) – [3] Incoming wave-vector in lab frameomega (
float) – Omega motor value (degrees)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 beam
- Returns:
dty_required (
float) – dty value that brings v_sample into beam at angle omega