[GRASS-user] Calculate statistics for raster values in polygons
A. Marcia BARBOSA
anamarciabarbosa at gmail.com
Fri Apr 23 05:35:27 EDT 2010
If you don't want all the nine statistics that v.rast.stats gives you
(can be unnecessary and a bit slow for large rasters), you can use
r.statistics instead, with method=average.
>>Luis Lisboa wrote:
>> Hi all
>> I'm reading the v.rast.stats Help and I'm a bit confused. It says "Calculates basic univariate statistics from a raster map only for the parts covered by the specified vector map". But for >>instance if all my region is covered by different polygons and, if I want to calculate for each polygon my average value from raster, is this function helpful? (e.g. I have vector with
>yes, exactly the function you need. It adds nine attribute columns to your vector layer with min,max,mean, etc values calculated from the raster.
More information about the grass-user
mailing list