[GRASS-user] [GRASSLIST:1135] Qn. on extracting from multiple rasters, data corresponding to vector polygons

Dylan Beaudette dylan.beaudette at gmail.com
Tue Jun 27 12:05:38 EDT 2006


On Tuesday 27 June 2006 03:46, Vishal Mehta wrote:
> Hi all,
>
> I have a vector polygon shapefile which contains 8 polygons (each watershed
> is a polygon). I also have some 100 GRASS raster files of environmental
> data (rainfall, temperature etc).
>
> Whats the best way to extract for each watershed, the corresponding average
> data from each raster file and put it in a text file?
>
> I've looked at v.what.rast but it seems to be quite cumbersome for this
> application. I'm using Grass 6.0.1 on Ubuntu linux.
>
> cheers,
> vishal

if you have the ability to compile from source code, try starspan.

http://starspan.casil.ucdavis.edu/?StarSpan

Matt Perry has a nice demo here:

http://www.perrygeo.net/wordpress/?p=30

Cheers,

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341




More information about the grass-user mailing list