Skip to content

Resolution smearing #110

Closed
Closed

Description

@andped10

Implementation issues:
#127
#128
#130

Currently, we only support a constant Gaussian q-resolution function. However, many reflectometry analysis libraries support q-dependent Gaussian resolution and even arbitrary function resolutions.

#4
#47

The resolution data is a part of the orso format. The 4th column contains sQ. When a orso file is read the resolution can be fetched by. Notice that the sQ is variance and the read value is squared value:

from EasyReflectometry.data import load
fpath='.\\tests\\_static\\test_example1.ort'
orso = load(fpath)
np.sqrt(orso['data']['R_spin_up'].variances)

Activity

  1. converted this from a draft issue on Mar 7, 2024
  2. added
    roadmap
    on Mar 7, 2024
  3. andped10 commented on Mar 7, 2024

    @andped10
    CollaboratorAuthor

    From Jos:
    I just re-found this paper which is a (very) detailed explanation of resolution for a neutron reflectometer
    https://journals.iucr.org/paper?rg5037
    It may be worth a read if you want an understanding of what is/should/can be done

    I (Andreas) managed to download the paper

  4. andped10 commented on Mar 13, 2024

    @andped10
    CollaboratorAuthor

    Refnx
    image

  5. andped10 commented on Mar 13, 2024

    @andped10
    CollaboratorAuthor

    refl1d
    image

  6. andped10 commented on Mar 14, 2024

    @andped10
    CollaboratorAuthor

    Code changes should probably only be done in calculators. The specific code is calculator_base.py and the specific wrappers

  7. moved this to In Progress in EasyReflectometryon Apr 4, 2024
  8. self-assigned this
    on Apr 4, 2024
  9. andped10 commented on Apr 4, 2024

    @andped10
    CollaboratorAuthor

    @jfkcooper how is the shape of the resolution?
    I am asking because we have to be able to determine the resolution at an arbitrary point from a provided set of discrete data points.

    Is it correct to assume that the function is smooth and one can simply determine the value from a linear interpolation between the two neighboring provided data-points. Or is the shape more step-wise and we would have to use the "plain" value of the nearest provided data-point?

    Please let me know if my question is not clear enough.

  10. jfkcooper commented on Apr 4, 2024

    @jfkcooper
    Collaborator

    I think that it will be a reasonable assumption to take it as smooth and approximating it as a linear interpolation is fine.

  11. andped10 commented on May 6, 2024

    @andped10
    CollaboratorAuthor

    Done by #141

  12. moved this from In Progress to Done in EasyReflectometryon May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

resolution-smearingroadmap

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions