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

from_peaks#

DiffractionVectors2D.from_peaks(**kwargs)[source]#

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

Parameters:
  • peaks (hyperspy.api.signals.BaseSignal) – Signal containing lists (np.array) of pixel coordinates specifying the reflection positions

  • center (np.array or None) – Diffraction pattern center in array indices.

  • calibration (np.array or None) – Calibration in reciprocal Angstroms per pixels for each of the dimensions.

Returns:

vectors – List of diffraction vectors

Return type:

pyxem.signals.diffraction_vectors.DiffractionVectors