Check out the Hyperspy Workshop May 13-17, 2024 Online

get_direct_beam_mask#

Diffraction2D.get_direct_beam_mask(radius)[source]#

Generate a signal mask for the direct beam.

Parameters:

radius (float) – Radius for the circular mask in pixel units.

Returns:

The mask of the direct beam

Return type:

numpy.ndarray