Absolute CTR structure factor and reflectivity - #87
Merged
Merged
Conversation
…factor scale BREAKING CHANGE: F2_hkl changes in both integration modes. Rocking scans gain the per-frame exposure/monitor normalization, the rocking integral in radian, and division by the out-of-plane acceptance; both modes divide the detector solid-angle correction back out of F2_hkl, which still scales the intensity. Rods integrated with an earlier version are on a different scale and must be re-integrated before being combined with new ones.
BREAKING CHANGE: intensities and F2_hkl change for scans that drive the detector arm, and only those. The per-pixel polarization array is built at the calibrated arm position, which understated the correction by 3 % at a scattering angle of 10 degrees, 10 % at 18 and 33 % at 30; both integration paths now apply a per-frame factor that moves it onto the arm position each frame was measured at. A fixed-arm scan is bit-identical. The reciprocal-space reconstruction applies the polarization per pixel and is unchanged.
BREAKING CHANGE: integration_corrections is now a group of typed datasets instead of a single json string. The json dataset is still read, but no longer written, so post-processing that parses it will not see new files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds absolute structure factor and reflectivity calculation
According to #15
Reflectivity should be 1 below critical angle if everything is set correctly.
This requires exact knowledge of the sample size, beam size/shape and total flux hitting the sample.
Fixes
The solid angle correction was incorrect before. I used the default pixel-based solid angle correction. This is correct for determination of scattering cross-sections of broad scattering features or to correct the image to a correct scale.
However, for CTRs with wide-open detector slits (not truncated signal)
Also addresses partially:
#79