intersectGrid: Intersection of multiple grids

Description Usage Arguments Value Author(s) See Also Examples

View source: R/intersectGrid.R

Description

Takes multiple input grids and crops the overlapping part

Usage

1
intersectGrid(..., type = c("temporal", "spatial"), which.return = 1)

Arguments

...

Input grids

type

Character. Options are "temporal" (default) or "spatial".

which.return

Integer of the index to specify which grids in "..." are to be returned.

Value

The grids indicated in which.return, encompassing the overlapping time period.

Author(s)

M Iturbide

See Also

subsetGrid

Other subsetting: getTemporalIntersection, intersectGrid.spatial, intersectGrid.time, limitArea, subsetCluster, subsetDimension, subsetGrid, subsetMembers, subsetRuntime, subsetSeason, subsetSpatial, subsetStation, subsetVar, subsetYears

Examples

1
2
3
4
data("EOBS_Iberia_tas")
a <- subsetGrid(EOBS_Iberia_tas, lonLim = c(-8,-1), latLim = c(37, 40))
b <- subsetGrid(EOBS_Iberia_tas, lonLim = c(-4,3), latLim = c(39, 43))
z <- intersectGrid(a, b, type = "spatial", which.return = 1)

SantanderMetGroup/transformeR documentation built on April 1, 2020, 5:42 a.m.