Description Usage Arguments Value Author(s) Examples
View source: R/initmetagauss.R
A Fourier spectrum with prescribed logarithimic slope and zero phases is constructed.
1 | initmetagauss(sx, ns)
|
sx |
spectral slope for the output field.
The convention is that this is the slope of |
ns |
size of the output field. |
Output complex field in Fourier space with specified spectral slope,
with dimensions c(ns, ns)
.
Jost von Hardenberg, j.vonhardenberg@isac.cnr.it
1 2 3 4 5 6 7 | # Make a synthetic rainfall field with prescribed logarithmic spectral slope
f = initmetagauss(1.7, 64)
r = metagauss(f)
# Check slope of the resulting field
fx <- fft2d(r)
fitslope(fx)
# 1.640373
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.