Skip to content

How to remove discrepencies in a 2D pattern produced from the integration of an image calculated with calcfrom2d ? #2258

Answered by kif
loichuder asked this question in Q&A
Discussion options

You must be logged in to vote

The holes you see are consequences of the gaps in the detector "Pilatus 1M" which are hard-coded in the pyFAI.detectors class.
https://github.com/silx-kit/pyFAI/blob/main/src/pyFAI/detectors/_dectris.py#L69
You can always re-define the detector's mask like:

detector = pyFAI.detector_factory("Pilatus1M")
detector.mask = numpy.zeros(detector.shape, "int8")

Note that the calcfrom1/2d does interpolation while integrate performs histogramming, the difference is subtle but you won't get back what you input initially.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loichuder
Comment options

loichuder Sep 9, 2024
Maintainer Author

Answer selected by kif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants