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

remapcon

Conservative remapping


Description

Implements conservative remapping, weighting with the overlap area between pixels.

Usage

remapcon(x, y, z, xo, yo)

Arguments

x

vector of input longitudes

y

vector of input latitudes

z

matrix of input data

xo

vector of target longitudes

yo

vector of target latitudes

Value

A remapped matrix of dimensions c(length(xo), length(yo))

Author(s)

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

Examples

z <- 1:(31*51)
dim(z) <- c(31, 51)
x <- seq(4, 10, 0.2)
y <- seq(30, 40, 0.2)
xo <- seq(5, 6, 0.5)
yo <- seq(35, 37, 0.5)
zo <- remapcon(x, y, z, xo, yo)
zo
#       [,1]  [,2]  [,3]   [,4]   [,5]
# [1,] 781.0 858.5 936.0 1013.5 1091.0
# [2,] 783.5 861.0 938.5 1016.0 1093.5
# [3,] 786.0 863.5 941.0 1018.5 1096.0

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.