Add an option to deal with "single crystal-like" signal
Original request:
In the data, we would like to be able to remove ‘single-crystal like’ hotspots from the 2D diffraction images before/during the azimuthal integration. Ideally this would allow us to get two azimuthally integrated datasets:
- one containing the diffraction signals of the powder-like material (i.e. without hotspots). This allows us to get the spatial distribution of the powder-like phases.
- one containing the diffraction signals of the ‘single-crystal-like’ material (i.e. only the hotspots). This allows us to get the spatial distribution of the single-crystal-like phases
Comment by @jerome.kieffer:
There are 2 solutions which are both fairly simple to implement:
- Perform 2 integrations, one with and one without sigma-clipping.
- Use the
sparsify-Bragg
code which performs a sigma-clipping and registers pixels belonging to single-crystal data. Those pixels can easily be replaced in an image and integrate this image. The main limitation is that this requires OpenCL.