Re: [R-sig-Geo] sampling a raster using sample points

2011-01-14 Thread Robert Hijmans
> 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 S

[R-sig-Geo] sampling a raster using sample points

2011-01-14 Thread Stratford, Jeffrey
Hi everyone, Does anyone have any suggestions on sampling a raster (NLCD land cover map, 30 m res) using circular buffers centered on 100+ sample points? The NLCD map has classifications such as high density urban, medium density urban, crop, etc. The goal is to produce a data set with the perce