[GRASS-SVN] r70009 - grass-addons/grass7/raster/r.green/r.green.hydro/libhydro

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 5 13:45:27 PST 2016


Author: Giulia
Date: 2016-12-05 13:45:26 -0800 (Mon, 05 Dec 2016)
New Revision: 70009

Modified:
   grass-addons/grass7/raster/r.green/r.green.hydro/libhydro/optimal.py
Log:
r.green:change parameter in the recursive function

Modified: grass-addons/grass7/raster/r.green/r.green.hydro/libhydro/optimal.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.hydro/libhydro/optimal.py	2016-12-05 20:16:50 UTC (rev 70008)
+++ grass-addons/grass7/raster/r.green/r.green.hydro/libhydro/optimal.py	2016-12-05 21:45:26 UTC (rev 70009)
@@ -197,6 +197,8 @@
     # we should avoid to take discharge in another branch
     #import ipdb; ipdb.set_trace()
     if len(h) > 3:
+        if line.cat==100:
+            import ipdb; ipdb.set_trace()
         h_diff = np.array(h[0: -2])-np.array(h[1: -1])
         if h_diff.sum() < 0:
             q = q[::-1]
@@ -250,7 +252,7 @@
     dis = abs(distance*math.cos(theta))
     len_plant = range_plant[1]*math.cos(theta)
     len_min = range_plant[0]*math.cos(theta)
-    if count < 6:
+    if count < 100:
         if len_p > len_plant + 2*dis:
         # if (end-start) > len_plant + 2*distance:
             if not(p_max):



More information about the grass-commit mailing list