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:
X (list [numpy.ndarray [float]], of shape [(nx,), (ny,), …], optional) – Mesh on real space
Y (list [numpy.ndarray [float]], of shape [(nx,), (ny,), …], optional) – Corresponding mesh on Fourier space
other (If either X or Y is None then it is inferred from the) –
- 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.