from_recip#

diffsims.utils.fourier_transform.from_recip(y)[source]#

Converts Fourier frequencies to spatial coordinates.

Parameters:

y (list [numpy.ndarray [float]], of shape [(nx,), (ny,), …]) – List (or equivalent) of vectors which define a mesh in the dimension equal to the length of x

Returns:

x – 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.

Return type:

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