[R-sig-Geo] sampling a raster using sample points
Robert Hijmans
r.hijmans at gmail.com
Fri Jan 14 18:17:01 CET 2011
> Does anyone have any suggestions on sampling a raster (NLCD land cover
> map, 30 m res) using circular buffers centered on 100+ sample points?
You can do:
library(raster)
r <- raster('filename')
extract(r, points, buffer=250)
where points is a two column matrix (x,y), or (inherits from) a
SpatialPoints object
Robert
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/RASTER-or-RGDAL-package-tp5921830p5922603.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list