convToGrid: Convert 'SpatialPolygons' object to a grid

Description Usage Arguments Examples

View source: R/importExport.R

Description

Convert SpatialPolygons object to binary grid. Using the rasterize function, grid boxes whose centers are part of the SpatialPolygons are given value 1 and all other grid boxes are given value 0. Land values are set to NA.

Usage

1
convToGrid(x, myLandMat = landMat)

Arguments

x

SpatialPolygon object

myLandMat

binary matrix specifying land locations

Examples

1
2

IceCast documentation built on Aug. 16, 2017, 9:03 a.m.