Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Dec 15, 2025

See second entry in https://confluence.ess.eu/spaces/LSS/pages/788709987/Estia+Reduction+Use+Cases.

Instrument scientist has reviewed the implementation.
Best would be to test this by using it to reduce some offspecular dataset that was measured using a collimated beam in the ESTIA McStas instrument.
But currently we don't have that.

@jokasimr jokasimr marked this pull request as ready for review December 18, 2025 14:12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation looks good. But can you add the equation to the docstring. That makes it easier to read without having to understand code (and Scipp idiosyncrasies like dtype conversions).

is the incident angle on the sample surface.
Assuming the sample is aligned with the beam the incident angle is what
we call the sample rotation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by 'aligned' here? I understand that word to mean that the beam is in the sample plane, i.e., the incident angle is 0. Is sample_rotation defined as the incident angle? If so, just use that here!

Copy link
Contributor Author

@jokasimr jokasimr Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by 'aligned' here? I understand that word to mean that the beam is in the sample plane, i.e., the incident angle is 0

Yes you're right, this is unclear.

In this context, what I mean by "aligned with the beam" is exactly that rotation_angle equals the angle of incidence on the sample (which makes the statement above a bit circular).

But I thought it is good for the user to be aware that we make this assumption.

Maybe it would be good to introduce a quantity called angle_of_incidence, to clearly distinguish that from sample_rotation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do.
Personally, I'm quite partial to using images to show these quantities. Basically, a modification of the images in https://scipp.github.io/scippneutron/user-guide/coordinate-transformations.html would be useful here. Maybe we should add them somewhere centrally in the ESSreflectometry docs. Especially since some definitions differ from ScippNeutron.

jokasimr and others added 2 commits January 5, 2026 15:39
Co-authored-by: Jan-Lukas Wynen <j-l.wynen@hotmail.de>
@jokasimr jokasimr merged commit 71f6ca6 into main Jan 6, 2026
4 checks passed
@jokasimr jokasimr deleted the add-qx branch January 6, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants