Re: [R-sig-Geo] Subsetting a spatial grid

2008-12-11 Thread Edzer Pebesma
For SpatialGridDataFrames, row and col selection can be done by object[firstrow:lastrow, firstcol:lastcol,] after the last , you can optionally select attributes. -- Edzer Rob Robinson wrote: Help - please! :-) I have what I thought was a really simple problem. I have a raster image of satell

Re: [R-sig-Geo] Subsetting a spatial grid

2008-12-10 Thread rick reeves
The following R example might be a bit off-topic, but it does show how to create a point grid and then use it to extract samples from an underlying set of vector polygons. The vector polygon data could probably be replaced by a raster grid. Though not a very big one, given R's memory limitation

Re: [R-sig-Geo] Subsetting a spatial grid

2008-12-10 Thread Dylan Beaudette
On Wednesday 10 December 2008, Rob Robinson wrote: > Help - please! :-) > I have what I thought was a really simple problem. I have a raster image > of satellite data from which I would like to extract an arbitrary (but > simple rectangular) portion for subsequent analysis (which I'll need to do >

[R-sig-Geo] Subsetting a spatial grid

2008-12-10 Thread Rob Robinson
Help - please! :-) I have what I thought was a really simple problem. I have a raster image of satellite data from which I would like to extract an arbitrary (but simple rectangular) portion for subsequent analysis (which I'll need to do for many images). I have the data as a (projected) SpatialGr