[GRASS-user] Calculate statistics for raster values in polygons

Markus Neteler neteler at osgeo.org
Fri Apr 23 08:59:23 EDT 2010


On Fri, Apr 23, 2010 at 12:34 PM, Micha Silver <micha at arava.co.il> wrote:
> A. Marcia BARBOSA wrote:
>
>> True. But actually it would be quite useful if v.rast.stats would give
>> us an option to select the statistics we wanted. Sometimes we really
>> just want the mean, or the mean and range, and if the raster is very
>> large the process can take a long time to give us unnecessay stats.

Internally, it uses
r.univar -g map ...

so I don't think that there is anything to accelerate with a few changes.

...
> Good idea. Perhaps bring the suggestion to the developers.  (or contribute
> yourself...)

It is "just" a script, please review it and feel free to improve it!

Markus


More information about the grass-user mailing list