One way of doing this is by using the package raster. Take a look at: ?zonal
Jacob. --- On Fri, 5/14/10, Raphael Saldanha <saldanha.plan...@gmail.com> wrote: From: Raphael Saldanha <saldanha.plan...@gmail.com> Subject: [R-sig-Geo] Region raster To: "r-sig-geo" <r-sig-geo@stat.math.ethz.ch> Date: Friday, May 14, 2010, 2:53 PM Dear list, I'm completely newbie with working with raster files inside R. I'm taking a good look on RGDAL documentation, and looking for some tutorials and docs. My first need is: a have two rasters, one is an SRTM relief, and the other is a region file. I need to do some calculations with the SRTM data (max und minimun) for each region of the other raster. Can anyone give me a hint? Regards, Raphael Saldanha Brazil saldanha.plan...@gmail.com [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo