def k_xy(self):
"""
The k-space coordinates along the (X, Y) spatial dimensions,
which describe the spatial frequencies.
NOTE:
k = 2*pi * f, where "f" is the spatial frequencies, and the
Fourier dual to spatial transverse distances x/y.
Unit: [Mpc^-1]
"""
f_xy = fftpack.fftshift(fftpack.fftfreq(self.Nx, d=self.d_xy))
k_xy = 2*np.pi * f_xy
return k_xy
评论列表
文章目录