[GRASS-dev] r.series: min_raster and max_raster in C notation?

Hi,

I have (re?)-discovered that min_raster and max_raster are in C notation
which is a bit unfortunate from a user's point of view. Test script attached:

r.series_testscript.sh
Reading raster map <two>... 1
Reading raster map <one>... 2 <-- min
Reading raster map <three>...3
Reading raster map <four>... 4
Reading raster map <five>... 5 <-- max
Reading raster map <one>... 6
100%
### rseries_max_test.max:
min=5 <-- ok
max=5
### rseries_max_test.count:
min=4 <-- shifted by -1
max=4
### rseries_min_test.min:
min=1 <-- ok
max=1
### rseries_min_test.count:
min=1 <-- shifted by -1
max=1

Is there a reason that the first map is 0 rather than 1?

Markus

(attachments)

r.series_testscript.sh (874 Bytes)