* Veronica Andreo <veroand...@gmail.com> [2018-08-25 18:17:51 +0200]:

Hi devs,

If I use a series of integer type maps as input to t.rast.series or
r.series and select minimum as method, the output is a floating point map.
I would have thought that if the input are integers then output should be
integer as well. I realized when I made a plot of the map and got a smooth
legend instead of integer numbers.

Here an example:

{{{
for i in `seq 1 6` ; do r.mapcalc expression="map${i} = ${i}" ; done
r.info map1 <<-- CELL
r.series input=`g.list rast pat=map* sep=,` method=minimum output=test_min
r.info test_min <<-- DCELL
}}}

Is this an expected behaviour?

Vero,

just guessing,

maybe it's similar to my question about 'count' in `r.stats.zonal` [0]:
use of DCELL allows for integers larger than CELL (32-bit).

Nikos

[0] https://lists.osgeo.org/pipermail/grass-dev/2018-August/089197.html

Attachment: signature.asc
Description: PGP signature

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to