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
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
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
>
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