[][src]Module shallow_water::sta2dfft

This module performs FFTs in two directions on two dimensional arrays using the stafft library module to actually compute the FFTs. If FFTs in one direction only are required use the stafft module directly. The module can compute any combination of sine, cosine and full FFTs in each direction. Along with the usual forwards (physical -> Fourier space) and reverse (Fourier space -> physical) routines there are also routines for computing the first derivatives in either direction.

The convention is that for each direction the array is dimensioned 1:nx or 1:ny for either the sine or full transforms. While the cosine transforms require the additional endpoint so 0:nx or 0:ny.

Structs

D2FFT