Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

initmetagauss

Generate the spectral amplitudes for a metagaussian field


Description

A Fourier spectrum with prescribed logarithimic slope and zero phases is constructed.

Usage

initmetagauss(sx, ns)

Arguments

sx

spectral slope for the output field. The convention is that this is the slope of k*|A(k)|^2.

ns

size of the output field.

Value

Output complex field in Fourier space with specified spectral slope, with dimensions c(ns, ns).

Author(s)

Jost von Hardenberg, j.vonhardenberg@isac.cnr.it

Examples

# 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

rainfarmr

Stochastic Precipitation Downscaling with the RainFARM Method

v0.1
Apache License 2.0
Authors
Jost von Hardenberg [aut, cre, cph] (<https://orcid.org/0000-0002-5312-8070>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.