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

interpola

Interpolate field using nearest neighbors


Description

Interpolates a square input matrix to a finer resolution ns using nearest neighbours.

Usage

interpola(z, ns)

Arguments

z

matrix containing the input field at coarse resolution.

ns

the target size.

Value

The resulting fine-scale field with dimensions c(ns, ns).

Author(s)

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

Examples

za <- rnorm(4 * 4)
dim(za) <- c(4, 4)
z <- interpola(za, 16)
dim(z)
# [1] 16 16

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.