You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
@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.
Activity
andped10 commentedon Mar 7, 2024
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
andped10 commentedon Mar 13, 2024
Refnx

andped10 commentedon Mar 13, 2024
refl1d

andped10 commentedon Mar 14, 2024
Code changes should probably only be done in
calculators. The specific code iscalculator_base.pyand the specificwrappersandped10 commentedon Apr 4, 2024
@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.
jfkcooper commentedon Apr 4, 2024
I think that it will be a reasonable assumption to take it as smooth and approximating it as a linear interpolation is fine.
andped10 commentedon May 6, 2024
Done by #141