carnisj / bcdi

BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data
Other
23 stars 17 forks source link

Implement a method to interpolate into the laboratory frame #319

Closed carnisj closed 1 year ago

carnisj commented 1 year ago

Previously, the interpolation of the reconstructed crystal was done directly into the crystal frame. There are some use-cases where one would like to interpolate into the laboratory frame. This required previously two interpolations (detector_frame -> crystal frame -> back to laboratory frame).

Split setup.ortho_directspace into methods to get the transformation matrix in the laboratory frame or crystal frame. Implement setup.ortho_directspace_labframe if one wants to interpolate into the laboratory frame.

Fixes #317

Checklist: