spate.init: Constructor for 'spateFT' object which are used for the...

View source: R/spateFcts.R

spate.initR Documentation

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

Description

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

Usage

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


spate documentation built on Oct. 3, 2023, 5:09 p.m.