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]],
ofshape[(nx,), (ny,), …],optional Mesh on real space
- Ylist [numpy.ndarray [float]],
ofshape[(nx,), (ny,), …],optional Corresponding mesh on Fourier space
- If either `X` or `Y` is `None` then it is inferred from the other
- Xlist [numpy.ndarray [float]],
- Returns:
- DFT
function(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.
- iDFT
function(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.
- DFT