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

peaks_as_gvectors#

pyxem.utils.diffraction.peaks_as_gvectors(z, center, calibration)[source]#

Converts peaks found as array indices to calibrated units, for use in a hyperspy map function.

Parameters:
  • z (numpy.ndarray) – peak positions as array indices.

  • center (numpy.ndarray) – diffraction pattern center in array indices.

  • calibration (float) – calibration in reciprocal Angstroms per pixels.

Returns:

g – peak positions in calibrated units.

Return type:

numpy.ndarray