-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
(sub-ticket of #210)
For a psi (rocking) scan on INTER, we should be able to use detector-mapping to directly calculate psi, from a single data collection, rather than scanning. This should save quite a bit of time during sample alignment relative to scanning, or manually tweaking psi.
For a 2-d detector map, we will get a very elongated 2-dimensional ellipsoid. We want to extract a 'rotation' parameter from that ellipsoid; that rotation parameter is the psi value that we need.
Or, in other words:
- Count once
- Get this image on the detector
- Find angle of ellipse relative to horizontal, that is equal to
psi - Change psi to make it zero
- Profit
Workflow
- Read in full DAE data via detector-mapping interface
- Convert pixels to x/y coordinates
- Pass to lmfit
- Documentation about how to handle 2-d data in lmfit, including elongated 2-d ellipsoids that look very similar to what we need: https://lmfit.github.io/lmfit-py/examples/example_two_dimensional_peak.html
- Return fitted angle of the ellipsoid
Acceptance criteria
- Psi scan using the above workflow can be done on INTER
- Deployed/tested on INTER
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Impeded