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

get_virtual_electron_diffraction#

VDFSegment.get_virtual_electron_diffraction(calibration, shape, sigma)[source]#

Obtain a virtual electron diffraction signal that consists of one virtual diffraction pattern for each segment. The virtual diffraction pattern is composed of Gaussians centered at each vector position. If given, the integrated intensities of each vector will be taken into account by multiplication with the Gaussians.

Parameters:
  • calibration (float) – Reciprocal space calibration in inverse Angstrom per pixel.

  • shape (tuple) – Shape of the signal, (shape_x, shape_y) in pixels, where shape_x and shape_y are integers.

  • sigma (float) – The standard deviation of the Gaussians in inverse Angstrom per pixel. ‘calibration’ is a decent starting value.

Returns:

virtual_ed – Virtual electron diffraction signal consisting of one virtual diffraction pattern for each segment.

Return type:

ElectronDiffraction2D