Skip to content
Prev 9328 / 29559 Next

how to mask a raster with a coarser resolution selected grid squares ?

On 09/17/2010 09:47 AM, Arnald Marcer wrote:
convert the first to SpatialPointsDataFrame, and create a SpatialPixels
object from the second, then use overlay() to get the indexes of the
points that lie within the 10km grid cells.
first create a SpatialPixelsDataFrame, say sx, then use

as(sx, "SpatialPolygonsDataFrame")