subsetSpatial: Spatial subset from a grid

Description Usage Arguments Details Value Author(s) See Also

View source: R/subsetGrid.R

Description

Retrieves a grid that is a logical subset of the input grid along its 'lat' and 'lon' dimensions. Multimember multigrids are supported. Subroutine of subsetGrid.

Usage

1
subsetSpatial(grid, lonLim, latLim, outside)

Arguments

grid

Input grid to be subset (possibly a multimember multigrid).

lonLim

Vector of length = 2, with minimum and maximum longitude coordinates, in decimal degrees, of the bounding box defining the subset. For single-point subsets, a numeric value with the longitude coordinate. If NULL (default), no subsetting is performed on the longitude dimension

latLim

Same as lonLim argument, but for latitude.

outside

Logical. Default to FALSE. If TRUE, subset coordinates outside the grid extent are allowed.

Details

An attribute subset with value subsetSpatial is added to the xyCoords component of the output grid.

Value

A grid (or multigrid) that is a logical spatial subset of the input grid.

Author(s)

J. Bedia

See Also

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


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