[GRASS-SVN] r70046 - grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.recommended

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 9 09:12:58 PST 2016


Author: Giulia
Date: 2016-12-09 09:12:58 -0800 (Fri, 09 Dec 2016)
New Revision: 70046

Modified:
   grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.recommended/r.green.hydro.recommended.py
Log:
r.green.hydro: limit discharge to positive values

Modified: grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.recommended/r.green.hydro.recommended.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.recommended/r.green.hydro.recommended.py	2016-12-09 15:10:24 UTC (rev 70045)
+++ grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.recommended/r.green.hydro.recommended.py	2016-12-09 17:12:58 UTC (rev 70046)
@@ -349,7 +349,7 @@
                                          percentage)
         mapcalc(formula, overwrite=OVW)
         formula = '%s=if(%s>0, %s, 0)' % (tmp_disch, tmp_disch, tmp_disch)
-        mapcalc(formula, overwrite=OVW)
+        mapcalc(formula, overwrite=True)
         TMPRAST.append(tmp_disch)
         discharge_current = tmp_disch
 



More information about the grass-commit mailing list