Skip to content

[Requirement] Masking tools #50

Closed
Closed
@celinedurniak

Description

@celinedurniak

Executive summary

Provide masks for different physical quantities: wavelength, 2 theta, intensity and detectors

Context and background knowledge

These masks are first to be used in the Powder Diffraction workflow for DREAM.
Different physical parameters could be used in order to mask:

  • Faulty detectors
  • Contribution from SE or instrument component in the detected signal
  • Debye-Scherrer rings
  • Too-high, too low or uneven distribution of intensity

Follow-up:

  • adapt implementation with DREAM NeXus file
  • use widget to determine masks (optional and for some physical quantities only)

Inputs

  • For masks in 2 theta, wavelength: DataArray containing the quantity to be masked as coordinate

  • For masks of detectors: metadata about detectors should be stored (positions, other characteristics like sumo, segment, sector…)

Methodology

  • For the detectors, the masks could be specified either by the spatial coordinates of the voxels to mask or by sub-elements (i.e., sumo, sector, wire, strip). It could be a set like bank (hr, sans, endcap fwd, endcap bwd, mantle), sector (for SANS and HR) or sumo (for endcaps), module, segment, wire(s) and or strip(s), counter

Outputs

Data array with the same structure as input and with added mask.

Which interfaces are required?

Integrated into reduction workflow, Python module / function

Test cases

  • Mask in two theta, intensity: data from D16 @ ILL link1 or DREAM csv files below
  • Detector mask, wavelength: DREAM csv data (any csv files in link2)

Examples:

  • mask in 2 theta

Figure_2theta

  • mask of pixels (2d detectors for D16 @ ILL)

Figure_mask_pix

Comments

Note: The file from D16 can be used in the online documentation.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions