<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 4, 2016 at 3:51 PM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/11/16 12:24, James Duffy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Moritz, have you seen the reply on the bug rep?<br>
<a href="https://trac.osgeo.org/grass/ticket/3197" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/t<wbr>icket/3197</a><br>
<<a href="https://trac.osgeo.org/grass/ticket/3197" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/<wbr>ticket/3197</a>><br>
<br>
Do you think the alternative r.univar2 could be used in your function?<br>
</blockquote>
<br></span>
Yes, I saw the answer. As Pietro said, r.univar2 was not ported to grass7 and I don't have time for that now. I also don't really know why the module is faster, but ideally the changes should be merged into r.univar instead of creating a second, similar module.<br></blockquote><div><br></div><div>r.univar2 was developed for grass7. Anyway it seems that now there are better tools for this task.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@Pietro: could you maybe explain how you changed the logic to see how difficult it would be to integrate this into r.univar ?<br></blockquote><div><br></div><div>It starts looking how many zones exists and how many cells per zone are present in the region. In this way it allocates only what is needed, and using the extended statistics free the memory after each zone is done. Probably this free rule should be moved also in the case user is not computing the extending statistics. In this way I was able to characterize the zones of the i.segment module.</div><div><br></div><div>All the best</div><div><br></div><div>Pietro</div></div></div></div>