<br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 5:54 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Apr 9, 2012 at 4:25 PM, Margherita Di Leo<br>
<<a href="mailto:dileomargherita@gmail.com">dileomargherita@gmail.com</a>> wrote:<br>
> Ciao Markus,<br>
><br>
> On Mon, Apr 9, 2012 at 3:47 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>
>><br>
>> Wouldn't it be better to remove them with v.clean and rmarea to avoid<br>
>> holes?<br>
><br>
><br>
> just tried with:<br>
><br>
><br>
> grass.run_command('v.clean', input = v_basins,<br>
> output = v_basin,<br>
> type = 'area',<br>
> tool = 'rmarea',<br>
> thresh = 1, # I also tried 10<br>
> overwrite = True)<br>
><br>
> Maybe I do something wrong, but this way I can't get rid of small polygons,<br>
<br>
</div>what is exactly happening? Nothing or some are removed?<br></blockquote><div><br></div><div>In this case, nothing is removed. I'll give it some more try.. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> and, in addiction, I need to set the threshold parameter, which I'm not sure<br>
> to be suitable for all cases...<br>
<br>
</div>I wanted to suggest to run quartile statistics (extended stats in v.univar) on<br>
an "area" column (if needed, add with v.to.db). But I realized that it only<br>
supports extended statistics on point data :( No idea why this limitation...<br>
So I thought to suggest the 1st quartile as threshold.<br></blockquote><div><br></div><div>Thanks, I'll work on this idea. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Maybe someone else has an idea?<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(102,102,102)">Ing. Margherita Di Leo, </span><span style="color:rgb(102,102,102)">Ph.D. </span><font color="#666666"><br></font><span style="color:rgb(102,102,102)"></span><br>
<br><br>