get_DFT#

diffsims.utils.fourier_transform.get_DFT(X=None, Y=None)[source]#

Returns discrete analogues for the Fourier/inverse Fourier transform pair defined from grid X to grid Y and back again.

Parameters:
Xlist [numpy.ndarray [float]], of shape [(nx,), (ny,), …], optional

Mesh on real space

Ylist [numpy.ndarray [float]], of shape [(nx,), (ny,), …], optional

Corresponding mesh on Fourier space

If either `X` or `Y` is `None` then it is inferred from the other
Returns:
DFTfunction(f, axes=None)

If f is a function on X then DFT(f) is the Fourier transform of f on Y. axes parameter can be used to specify which axes to transform.

iDFTfunction(f, axes=None)

If f is a function on Y then iDFT(f) is the inverse Fourier transform of f on X. axes parameter can be used to specify which axes to transform.