[GRASS-dev] [GRASS GIS] #2348: r.stream.order Error finding nodes.

#2348: r.stream.order Error finding nodes.
----------------------------+-----------------------------------------------
Reporter: hcho | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Raster | Version: svn-trunk
Keywords: r.stream.order | Platform: All
      Cpu: All |
----------------------------+-----------------------------------------------
When a cell has five tributaries, ram_number_of_tribs (or
seg_number_of_tribs) doesn't complain (trib > 5 in line 17), but
ram_stream_topology raises a fatal error with the same counting logic
(trib > 4 in line 89). I think 5 incoming tributaries, 1 outgoing and 2
non-stream cells should be fine here too.

IMHO, lines 89 and 308 should also be trib > 5 for consistency.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2348&gt;
GRASS GIS <http://grass.osgeo.org>