refineGrid: Horizontal grid refining

View source: R/refineGrid.R

refineGridR Documentation

Horizontal grid refining

Description

Increasing the grid coordinate density without altering the original pixel values.

Usage

refineGrid(grid, times = 5)

Arguments

grid

a grid or multigrid to be aggregated.

times

Refinement times. For instance, if the resolution of grid is 1 degree and times = 2, the resolution of the output grid will be 0.5 degrees.

Value

A grid or multigrid.

Author(s)

M. Iturbide

Examples

## Not run: 
require(climate4R.datasets)
data("EOBS_Iberia_pr")
library(visualizeR)
spatialPlot(climatology(EOBS_Iberia_pr))
newgrid <- refineGrid(redim(EOBS_Iberia_pr), 
                       times = 2)
spatialPlot(climatology(newgrid))

## End(Not run)

SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.