<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#333333">
<p><font size="-1">Thank you Vero,</font></p>
<p><font size="-1">If I well understand, r.series return always
floating values. But from trunk r73206 we expect something
different... Ok I will wait for the next release, and continue
with a int().</font></p>
<p><font size="-1">But I still not understand from where r.series
return such values (more or less 0.03) from integer... it's
mysterious!<br>
</font></p>
<p><font size="-1">Frank</font></p>
<div class="moz-cite-prefix">Le 9/25/18 à 2:43 PM, Veronica Andreo a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAMki4E_mp6aCmEBz5RNm4poV3i-THr3a9jxy2y7G8KWA_SKHA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div>Hello Frank, <br>
</div>
<div><br>
</div>
<div>See this related thread: <a
href="https://lists.osgeo.org/pipermail/grass-dev/2018-August/089410.html"
moz-do-not-send="true">https://lists.osgeo.org/pipermail/grass-dev/2018-August/089410.html</a></div>
<div><br>
</div>
<div>The method sum in r.series always returns DCELL. But
maybe this is also a case in which a check of data type
could be done beforehand, so the result keeps the original
data type.</div>
<div><br>
</div>
<div>HTH, <br>
</div>
<div>Vero<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">El mar., 25 sept. 2018 a las 10:51, Frank David
(<<a href="mailto:frank.david@geophom.fr"
moz-do-not-send="true">frank.david@geophom.fr</a>>)
escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#333333">
<p><font size="-1">Hello all,</font></p>
<p><font size="-1">I've done a sum with r.series from 8
rasters previously calculated with r.mapcalc. Each
raster cell content is 0 or 1. So the sum raster cells
should have 0 to 8. I was looking at r.category to set
labels like "1 to 2", "3 to 4", etc. To see my raster
values, I've done a r.describe, and the result surprised
me :<br>
</font></p>
<p><font size="-1">0.000000-0.031373<br>
0.972549-1.003922<br>
1.976471-2.007843<br>
2.980392-3.011765<br>
3.984314-4.015686<br>
4.956863-4.988235<br>
5.960784-5.992157<br>
6.964706-6.996078<br>
7.968627-8.000000</font></p>
<p><font size="-1">instead of :</font></p>
<p><font size="-1">0<br>
1-1<br>
2-2<br>
...<br>
8-8</font></p>
<p><font size="-1">If I do int(value) with r.mapcalc in my
first raster (value is integer), r.describe returns
integer result as expected.<br>
</font></p>
<p><font size="-1">Why r.describe return float values ? how
they are calculated ? why I must make a int() on a
integer to get an integer ?<br>
</font></p>
<p><font size="-1">Since my values are integer, how can I
force raster in CELL instead of DCELL ?</font></p>
<p><font size="-1">Thanks to help me to understand this !</font></p>
<p><font size="-1">Regards,</font></p>
<p><font size="-1">Frank<br>
</font></p>
</div>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank"
moz-do-not-send="true">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote>
</div>
</blockquote>
</body>
</html>