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

template_match_disk#

Diffraction2D.template_match_disk(disk_r=4, inplace=False, **kwargs)[source]#

Template match the signal dimensions with a disk.

Used to find diffraction disks in convergent beam electron diffraction data.

Parameters:
  • disk_r (scalar, optional) – Radius of the disk. Default 4.

  • lazy_output (bool, default True) – If True, will return a LazyDiffraction2D object. If False, will compute the result and return a Diffraction2D object.

  • kwargs – Passed to pyxem.utils.diffraction.normalize_template_match()

Returns:

template_match

Return type:

pyxem.signals.Diffraction2D

Examples

>>> s = pxm.data.dummy_data.get_cbed_signal()
>>> s_template = s.template_match_disk(
...     disk_r=5, show_progressbar=False)
>>> s.plot()