geom#
Geometry transforms to and from laboratory, detector, and sample frames.
Functions
|
Convert detector (sc, fc) coordinates to lab (lx, ly, lz) coordinates. |
|
Get laboratory basis vectors for detector (slow, fast, normal). |
|
Return a matrix that transforms detector (slow, fast) pixel values to (z_det, y_det). |
|
Return a 3D orientation matrix that transforms a point in the detector reference frame to the lab frame. |
|
Return all transformations required to convert from detector pixel to lab space. |
|
Find the dty value required to make the beam intersect a specific point v_sample at a given omega. |
|
Convert lab (lx, ly, lz) coordinates to detector (sc, fc) coordinates. |
|
Ray-trace from vector in lab frame (unknown length) to detector coordinates (sc, fc). |
|
Convert from lab to sample coordinates (apply the diffractometer stack). |
|
Convert from sample to lab coordinates (apply the diffractometer stack). |
|
Convert rotation space (origin in corner) to step space (integer steps leading from rotation axis). |
|
Convert step space (integer steps leading from rotation axis) to rotation space (origin in corner). |
|
Create reconstruction grid in "step" space (integer units of the step size). |
|
Convert step space (integer steps leading from rotation axis) to sample space. |
|
Return rotation matrix for positive right-handed rotation about axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the X axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Y axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Z axis by angle (degrees). |