Repository navigation
|
Hi, I would need to recalculate the position on the detector (in mm from the beam center preferably) from know 2theta and azimuth angles. The detector orientation is defined using a poni file. The pyFAI.geometry package documentation has functions to calculate 2theta and azimuth from a pixel position, but I would like to do the reverse operation and I can not find it in the documentation. Could someone help me with this? Thanks S. Merkel |
Answered by
kif
Mar 20, 2025
Replies: 2 comments
|
Hi Sebastien, There is no "direct" way to perform this, but approximate solutions based on You can also refer to the issue #1354 Jerome |
0 replies
Answer selected by
smerkel
|
Got it working! A bit slow but it works. Thanks! Sébastien |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sebastien,
There is no "direct" way to perform this, but approximate solutions based on
InvertGeometrywhich is based on on linear interpolation. There is an example of usage in the test suite.You can also refer to the issue #1354
Cheers,
Jerome