sinc

Contents

sinc#

abtem.integrals.sinc(gpts, sampling, device='cpu')[source]#

Returns an array representing a 2D sinc function centered at [0, 0]. The result is used to compensate for the finite size of single pixels used for representing delta functions.

Parameters:
  • gpts (two int) – Number of grid points in the first and second dimension to evaluate the sinc over.

  • sampling (two float) – Size of the pixels of the grid determining the scale of the sinc.

  • device (str) – The array is created on this device (‘cpu’ or ‘gpu’).

Return type:

ndarray