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
Methods
Filter the diffraction vectors to accept only those not within a user specified proximity to the detector edge.
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.
Returns diffraction vectors considered unique by: strict comparison, distance comparison with a specified threshold, or by clustering using DBSCAN [1].