soft_aperture

Contents

soft_aperture#

abtem.transfer.soft_aperture(alpha, phi, semiangle_cutoff, angular_sampling)[source]#

Calculates an array with a disk of ones and a soft edge.

Parameters:
  • alpha (2D array) – Array of radial angles [mrad].

  • phi (2D array) – Array of azimuthal angles [rad].

  • semiangle_cutoff (float or 1D array) – Semiangle cutoff(s) of the aperture(s). If given as an array, a 3D array is returned where the first dimension represents a different aperture for each item in the array of semiangle cutoffs.

  • angular_sampling (tuple of float) – Reciprocal-space sampling in units of scattering angles [mrad].

Returns:

soft_aperture_array

Return type:

2D or 3D np.ndarray