maskForNyquistModes
returns a mask with locations of modes that are not fully resolved
Declaration
nyquistMask = WVGeometryDoublyPeriodic.maskForNyquistModes(Nx,Ny,Nz);
Parameters
Nxgrid points in the x-directionNygrid points in the y-directionNzgrid points in the z-direction (defuault 1)
Returns
nyquistMaskmask aliased mode
Discussion
Returns a ‘mask’ (matrices with 1s or 0s) indicating where Nyquist modes are located a standard FFT matrix.
Basic usage,
NyquistMask = wvm.maskForNyquistModes(8,8);
will return a mask that contains 1 at the locations of modes that will are at the Nyquist frequency of the Fourier transforms.