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

Markus Neteler neteler at osgeo.org
Mon Oct 3 09:57:04 EDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.series_testscript.sh
Type: application/x-sh
Size: 873 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20111003/1eb76002/r.series_testscript.sh


More information about the grass-dev mailing list