[GRASS-SVN] r68098 - grass-addons/grass7/raster/r.mess

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 21 12:44:04 PDT 2016


Author: pvanbosgeo
Date: 2016-03-21 12:44:04 -0700 (Mon, 21 Mar 2016)
New Revision: 68098

Modified:
   grass-addons/grass7/raster/r.mess/r.mess.py
Log:
r.mess addon: small improvement in how r.series range is defined in computation of sum(IES)

Modified: grass-addons/grass7/raster/r.mess/r.mess.py
===================================================================
--- grass-addons/grass7/raster/r.mess/r.mess.py	2016-03-21 16:42:31 UTC (rev 68097)
+++ grass-addons/grass7/raster/r.mess/r.mess.py	2016-03-21 19:44:04 UTC (rev 68098)
@@ -478,12 +478,9 @@
 
     # sum(IES), where IES < 0
     if flk:
-        MinMes = grass.read_command("r.info", quiet=True, flags="r", map=opc)
-        MinMes = str.splitlines(MinMes)
-        MinMes = float(np.hstack([i.split('=') for i in MinMes])[1])
         mod = opc + "SumNeg"
         c0 = -0.01/digits2
-        grass.run_command("r.series", quiet=True, input=ipi, output=mod, method="sum", range=(MinMes,c0))
+        grass.run_command("r.series", quiet=True, input=ipi, output=mod, method="sum", range=('-inf',c0))
         grass.run_command("r.colors", quiet=True, map=mod, col="ryg")
 
     # Number of layers with negative values



More information about the grass-commit mailing list