from_recip#
- diffsims.utils.fourier_transform.from_recip(y)[source]#
Converts Fourier frequencies to spatial coordinates.
- Parameters:
- ylist [numpy.ndarray [float]],
ofshape[(nx,), (ny,), …] List (or equivalent) of vectors which define a mesh in the dimension equal to the length of x
- ylist [numpy.ndarray [float]],
- Returns:
- xlist [numpy.ndarray [float]],
ofshape[(nx,), (ny,), …] List of vectors defining a mesh such that for a function, f, defined on the mesh given by y, ifft(f) is defined on the mesh given by x. 0 will be in the middle of x.
- xlist [numpy.ndarray [float]],