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

smoothconv

Smoothening using convolution with a circular kernel


Description

The input field is convolved with a circular kernel with equal weights. Takes into account missing values.

Usage

smoothconv(z, nas)

Arguments

z

matrix with the input field to smoothen, with dimensions c(ns, ns)

nas

the smoothing kernel uses a radius (ns/nas)/2

Value

The smoothened field.

Author(s)

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

Examples

z <- rnorm(64 * 64)
dim(z) <- c(64, 64)
zs <- smoothconv(z, 8)
sd(zs)
# [1] 0.07910996

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.