to_recip#

diffsims.utils.fourier_transform.to_recip(x)[source]#

Converts spatial coordinates to Fourier frequencies.

Parameters:

x (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:

y – List of vectors defining a mesh such that for a function, f, defined on the mesh given by x, fft(f) is defined on the mesh given by y

Return type:

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