-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gravity correction #62
Comments
Two comments for this:
|
I think 2) could be valuable, so we can fully understand which aspects need to be corrected. Having a unified mechanism would be a big advantage imho. |
I will add it to the agenda for the meeting today and speak to the others about the requirements. |
It seems there is interest from at least myself and Wojtek for this to be general. I will try and put a document together looking at this this week. |
@arm61 Could you write that document as a Jupyter notebook? This will makes things very easy if we get around to implement it, since we can just reuse (parts of) the notebook in the documentation. |
Github won't let me upload a notebook, see Slack. |
Thanks, I have placed it in a branch: https://github.com/scipp/scippneutron/blob/gravity-discussion/docs/user-guide/gravity.ipynb (including outputs for online viewing, should remove that branch later). |
Cheers, my feeling is that a general detector correction which rebins the data to remove the effect of gravity should be possible. I could put this together in Python but doubt my C++ is up to the level necessary to do it properly. |
Maybe I missed it in the notebook, but do we ever need to correct the (angle of the) incident beam for gravity? Or do slits and other components generally ensure that this is irrelevant? |
I don't have this in the notebook yet as it is something I am not 100 % sure of myself. For the Amor code, the assumption is that everything on the detector is specular intensity and therefore |
I have just spoken to @ajj about this for SANS and it sounds like there is more complexity. He suggested looking at the Mantid procedures for this. |
@arm61 @wpotrzebowski where are we with this? It seems like details are still being worked out regarding how this should work for SANS? Is there anything I can do to expedite this? |
@jl-wynen Can we consider this fixed based on your recent additions? |
I think this could have been closed earlier as this issue seems to be about figuring out whether and how to correct for gravity. We know this now. But the code in ESSreflectometry is still separate from ESSsans and ScippNeutron. We can, and I think should, merge the implementations. I opened a new issue in ESSreflectometry to track this: scipp/essreflectometry#54 |
In scipp/ess/pull/15 @arm61 added code for gravity corrections. Gravity corrections are generic and also used by other techniques, in particular SANS. Therefore it is a good condidate for inclusion in
scippneutron
.Requirements:
convert
. This can be achieved, e.g., by storing it astwo_theta
.convert
, which currently uses onlytof
coords of events, but takes all other params (includingtwo_theta
) from bin-coords.scattered_beam
instead ofsample_position
andposition
?Questions:
\vec g
, but not so in reflectometry? Does it even make sense to have a common implementation?The text was updated successfully, but these errors were encountered: