Constructor for 'spateFT' object which are used for the two-dimensional Fourier transform.

Share:

Description

Auxilary function for constructing 'spateFT' objects which are used for the two-dimensional Fourier transform.

Usage

1
spate.init(n,T,NF=n*n)

Arguments

n

Number of points on each axis. n x n is the total number of spatial points.

T

Number of temporal points.

NF

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.

Value

A 'spateFT' object. This is a list with

wave

a matrix containing the wavenumbers

indCos

a vector indicating the position of the cosine terms (excluding the frist 'ns')

ns

an integer indicating the number of cosine-only terms

indFFT

a list of indices used for the conversion between the complex FFT and the real Fourier transform.

n

number of points on each axis

T

number of points in time

Author(s)

Fabio Sigrist

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.