ewoksid02.utils.secondaryscattering.shift_window#

ewoksid02.utils.secondaryscattering.shift_window(array_window, cx, cy)[source]#

Shift the window data to align with the specified center coordinates and apply a mask.

Inputs:
  • array_window (numpy.ndarray): The input window data to be shifted.

  • cx (int): X-coordinate of the direct beam.

  • cy (int): Y-coordinate of the direct beam.

Outputs:

Tuple[numpy.ndarray, numpy.ndarray]: The shifted window data and the mask.

Parameters:
  • array_window (ndarray)

  • cx (int)

  • cy (int)

Return type:

Tuple[ndarray, ndarray]