bufferMask: Create a mask by distance from points

Description Usage Arguments Value See Also

Description

Create a mask RasterLayer with NA values in all cells more than a specified distance from a set of points.

Usage

1
bufferMask(mask, points, buffer = 0)

Arguments

mask

a Raster* object, used as the starting mask. All cells which are NA in mask will be NA in the resulting RasterLayer.

points

a set of points (given as a two-column matrix of coordinates) around which top calculate the buffer.

buffer

the distance from points beyond which to set cells to NA. If the coordinate system of mask is latitude/longitude, this will be in metres, otherwise in the units of the mask's coordinate system.

Value

A RasterLayer with the same extent, resolution and coordinate system as mask and with non-NA cells being 0.

See Also

Other GIS: condSim, getArea, getPoints, insertRaster, ll2cart, makeVoronoiPolygons, safeMask, sortPolyData


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.