template_match_ring#
- Diffraction2D.template_match_ring(r_inner=5, r_outer=7, inplace=False, **kwargs)[source]#
Template match the signal dimensions with a ring.
Used to find diffraction rings in convergent beam electron diffraction data.
- Parameters:
r_inner, r_outer (scalar, optional) – Inner and outer radius of the rings.
inplace (bool, optional) – If True, the data is replaced by the filtered data. If False, a new signal is returned. Default False.
kwargs – Passed to
pyxem.utils.diffraction.normalize_template_match()
- Return type:
Examples
>>> s = pxm.data.dummy_data.get_cbed_signal() >>> s_template = s.template_match_ring(show_progressbar=False) >>> s.plot()