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

detector_to_fourier#

pyxem.utils.vectors.detector_to_fourier(k_xy, wavelength, camera_length)[source]#

Maps two-dimensional Cartesian coordinates in the detector plane to three-dimensional coordinates in reciprocal space, with origo in [000].

The detector uses a left-handed coordinate system, while the reciprocal space uses a right-handed coordinate system.

Parameters:
  • k_xy (numpy.ndarray) – Cartesian coordinates in detector plane, in reciprocal Ångström.

  • wavelength (float) – Electron wavelength in Ångström.

  • camera_length (float) – Camera length in metres.

Returns:

k – Array of Cartesian coordinates in reciprocal space relative to [000].

Return type:

numpy.ndarray