conv_to_grid: Convert SpatialPolygons object to a grid
Description
Convert SpatialPolygons object to a binary grid. Grid boxes whose
centers are part ofthe SpatialPolygons are given value 1 and all other
grid boxes are given value 0. Land values are set to NA.
Usage
conv_to_grid(x, my_land_mat = land_mat)
Arguments
my_land_mat
binary matrix specifying land locations