-
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
Got it working! A bit slow but it works. Thanks! Sébastien |
Beta Was this translation helpful? Give feedback.
Hi Sebastien,
There is no "direct" way to perform this, but approximate solutions based on
InvertGeometry
which 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