<div dir="ltr">Hi,<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 1:36 PM Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><br><div class="gmail_quote"><div dir="ltr">El mié., 5 dic. 2018 a las 11:04, Moritz Lennert (<<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/12/18 10:47, Margherita Di Leo wrote:<br>
> Hi,<br>
<br>
This can probably somehow be solved within t.rast.univar, but IIUC the <br>
actual issue comes from the underlying r.univar call which has the same <br>
behaviour, for example when call with the 'zones' parameter and the '-t' <br>
flag: data is just absent if there are only null values in a given zone. <br>
I've been struggling with that, for example for addon modules such as <br>
i.segment.stats. I don't know how easy it would be to change that within <br>
r.univar, but it would be nice.<br>
<br>
IIUC, the issue comes from stats.c [1]:<br>
<br>
123             if (stats[z].n == 0)<br>
124                 continue;<br>
<br>
Maybe a flag to fill the stats with NULL values, instead of ignoring <br>
them, would be appropriate ? </blockquote><div><br></div></div></div></blockquote><div><br></div><div>[...]<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>+1!!</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">But I don't know what an good NULL value would be here.<br></blockquote><div> </div><div>IIRC, <a href="http://r.out.xyz" target="_blank">r.out.xyz</a> and <a href="http://t.rast.out.xyz" target="_blank">t.rast.out.xyz</a> use the '*' character. <br></div></div></div></blockquote><div><br></div><div>Indeed, this is the case also for t.rast.what</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div>It would be good to create a ticket for this, no? As to not forget afterwards...<br></div></div></div></blockquote><div><br></div><div>Yes. I'm not sure if this should be put as a ticket for r.univar, or for t.rast.univar or 2 separate tickets referring to each other?<br></div></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div></div>