<div dir="auto"><div>Hi Nikos,<br><br><div class="gmail_quote"><div dir="ltr">El dom., 26 ago. 2018 13:16, Nikos Alexandris <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Veronica Andreo <<a href="mailto:veroandreo@gmail.com" target="_blank" rel="noreferrer">veroandreo@gmail.com</a>> [2018-08-25 18:17:51 +0200]:<br>
<br>
>Hi devs,<br>
><br>
>If I use a series of integer type maps as input to t.rast.series or<br>
>r.series and select minimum as method, the output is a floating point map.<br>
>I would have thought that if the input are integers then output should be<br>
>integer as well. I realized when I made a plot of the map and got a smooth<br>
>legend instead of integer numbers.<br>
><br>
>Here an example:<br>
><br>
>{{{<br>
>for i in `seq 1 6` ; do r.mapcalc expression="map${i} = ${i}" ; done<br>
><a href="http://r.info" rel="noreferrer noreferrer" target="_blank">r.info</a> map1 <<-- CELL<br>
>r.series input=`g.list rast pat=map* sep=,` method=minimum output=test_min<br>
><a href="http://r.info" rel="noreferrer noreferrer" target="_blank">r.info</a> test_min <<-- DCELL<br>
>}}}<br>
><br>
>Is this an expected behaviour?<br>
<br>
Vero,<br>
<br>
just guessing,<br>
<br>
maybe it's similar to my question about 'count' in `r.stats.zonal` [0]:<br>
use of DCELL allows for integers larger than CELL (32-bit).</blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks for your answer. I can understand the storage of 'count' output as double since the count can exceed the length of input data type. But why minimum? If I input integer data, the minimum of a set of integer numbers should be integer, no? How can it exceed the CELL range if it is the minimum of that range?</div><div dir="auto"><br></div><div dir="auto">Just thinking out loud</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Vero</div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[0] <a href="https://lists.osgeo.org/pipermail/grass-dev/2018-August/089197.html" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/pipermail/grass-dev/2018-August/089197.html</a><br>
</blockquote></div></div></div>