upscaleGrid | R Documentation |
Aggregates a grid along the target dimensions using user-defined functions.
upscaleGrid(grid, times = 5, aggr.fun = list(FUN = max, na.rm = TRUE))
grid |
a grid or multigrid to be aggregated. |
times |
Degradation times. For instance, if the resolution of |
aggr.fun |
Upscale function. Default retains the maximum value. |
The development of a more eficient and fast version of the function is planned.
A grid or multigrid aggregated along the chosen dimension(s).
M. Iturbide
## Not run:
require(climate4R.datasets)
data("EOBS_Iberia_pr")
library(visualizeR)
spatialPlot(climatology(EOBS_Iberia_pr))
newgrid <- upscaleGrid(redim(EOBS_Iberia_pr),
times = 2,
aggr.fun = list(FUN = "min", na.rm = TRUE))
spatialPlot(climatology(newgrid))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.