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

agg

Aggregation using box-averaging


Description

Aggregates an input field z to an array at coarser resolutions c(nas,nas) by box averaging. The input array can contain missing values.

Usage

agg(z, nas)

Arguments

z

matrix containing the fine field to aggregate.

nas

target dimension for the output field.

Value

The coarse field obtained by box averaging.

Author(s)

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

Examples

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

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.