Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Kamran Safi
- From: r-sig-geo-boun...@stat.math.ethz.ch on behalf of alexander.h...@csiro.au Sent: Wed 28.01.2009 01:10 To: r-sig-geo@stat.math.ethz.ch Subject: [R-sig-Geo] calculate raster values based on vector regions Hi List, How would I go about assigning values to a raster based on polygon regions

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Tomislav Hengl
- From: r-sig-geo-boun...@stat.math.ethz.ch [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf Of alexander.h...@csiro.au Sent: Wednesday, January 28, 2009 2:10 AM To: r-sig-geo@stat.math.ethz.ch Subject: [R-sig-Geo] calculate raster values based on vector regions Hi List, How

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Alexander.Herr
-Original Message- From: r-sig-geo-boun...@stat.math.ethz.ch [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf Of alexander.h...@csiro.au Sent: Wednesday, January 28, 2009 2:10 AM To: r-sig-geo@stat.math.ethz.ch Subject: [R-sig-Geo] calculate raster values based on vector regions

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Tomislav Hengl
...@stat.math.ethz.ch] On Behalf Of Tomislav Hengl Sent: Wednesday, January 28, 2009 9:56 AM To: r-sig-geo@stat.math.ethz.ch Cc: alexander.h...@csiro.au Subject: Re: [R-sig-Geo] calculate raster values based on vector regions Dear Herry, If I understand what you problem, one solution is to use R

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Kamran Safi
-Original Message- From: r-sig-geo-boun...@stat.math.ethz.ch on behalf of alexander.h...@csiro.au Sent: Wed 28.01.2009 10:37 To: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] calculate raster values based on vector regions Hi list, I try to explain my problem a bit better. 1

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Edzer Pebesma
: [R-sig-Geo] calculate raster values based on vector regions Dear Herry, If I understand what you problem, one solution is to use R+SAGA. You should first convert the polygon map to the same grid, and then you can load it to R and do any type of aggregation: library(maptools) library(rgdal

Re: [R-sig-Geo] calculate raster values based on vector regions

2009-01-28 Thread Alexander.Herr
: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] calculate raster values based on vector regions Alexander, below is a reproducible example that uses a polygon data set from package maptools. You should read your polygons e.g. through readOGR (package rgdal) and your grid through readGDAL

[R-sig-Geo] calculate raster values based on vector regions

2009-01-27 Thread Alexander.Herr
Hi List, How would I go about assigning values to a raster based on polygon regions in R. Examples would be most appreciated. I have (vector) regions assigned to a specific value. The raster has NAs and some pixels where these values are likely to occur on ground. I need to assign these