Auxilary function for constructing 'spateFT' objects which are used for the two-dimensional Fourier transform.
spate.init(n,T,NF=n*n)
A 'spateFT' object. This is a list with
a matrix containing the wavenumbers
a vector indicating the position of the cosine terms (excluding the frist 'ns')
an integer indicating the number of cosine-only terms
a list of indices used for the conversion between the complex FFT and the real Fourier transform.
number of points on each axis
number of points in time
Number of points on each axis. n x n is the total number of spatial points.
Number of temporal points.
This integer specifies the number of Fourier functions. If NF<n*n, dimension reduction is obtained. In this case, Fourier functions with wavenumbers closest to the origin (0,0) are first included. If a given 'NF' implies a basis with anisotropy, i.e., higher frequencies in one direction than in another, this is automatically corrected by using the next higher integer NF' such that the basis has the same resolution in all directions.
Fabio Sigrist