<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Following Anna's suggestion I had to find out that r.mode has to
option to handle NULL values, i.e. exclude it from calculation? I
need to aggregate rasters to polygons, with rasters covering only a
small part of the polygon. As I realized now r.mode returns NULL in
such case. Setting NULL with r.null null=9999 it will return 9999
for all of these.<br>
<br>
Is there a solution to that problem?<br>
Patrick<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 16.03.2016 13:59, Anna Petrášová
wrote:<br>
</div>
<blockquote
cite="mid:CAE0EDEq67fXNN9W-ufRAxM0Ueuwsw1hGa=e4wAKgc9Gpxx_m7g@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Mar 16, 2016 at 6:23 AM,
patrick s. <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:patrick_gis@gmx.net" target="_blank">patrick_gis@gmx.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear
list<br>
<br>
Is it possible to get the "mode" (most common occurring
value) in a polygon for discrete classes? It appears that
v.rast.stats does not have this option.<br>
</blockquote>
<div><br>
</div>
<div>v.rast.stats uses r.univar and r.univar doesn't have
mode implemented (it's a TODO in manual). You can look at
r.mode but it returns raster map, not one number.</div>
<div><br>
</div>
<div>Anna</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks for a short feedback,<br>
Patrick<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/grass-user"
rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>