Check out the Free (Big) Data analysis of 4D-STEM workshop in Trondheim, Norway, 11-13 June 2024

DiffractionVectors2D#

class pyxem.signals.DiffractionVectors2D(*args, **kwargs)[source]#

Bases: DiffractionVectors, Signal2D

DiffractionVectors signal with the same number of vectors at each navigation position.

This class can also be used to represent a list of vectors with no navigation axis.

Attributes

DiffractionVectors2D.has_navigation_axis

Methods

DiffractionVectors2D.filter_detector_edge(...)

Filter the diffraction vectors to accept only those not within a user specified proximity to the detector edge.

DiffractionVectors2D.filter_magnitude(...)

Filter the diffraction vectors to accept only those with a magnitude within a user specified range.

DiffractionVectors2D.from_peaks(**kwargs)

Takes a list of peak positions (pixel coordinates) and returns an instance of Diffraction2D

DiffractionVectors2D.get_magnitudes([out, ...])

Calculate the magnitude of diffraction vectors.

DiffractionVectors2D.get_unique_vectors([...])

Returns diffraction vectors considered unique by: strict comparison, distance comparison with a specified threshold, or by clustering using DBSCAN [1].

Examples using DiffractionVectors2D#

Glass Symmetry from Vectors

Glass Symmetry from Vectors

Clustering Vectors

Clustering Vectors