[GRASS-SVN] r59018 - grass-addons/grass7/raster/r.shalstab

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 13 02:14:27 PST 2014


Author: kikapu
Date: 2014-02-13 02:14:27 -0800 (Thu, 13 Feb 2014)
New Revision: 59018

Modified:
   grass-addons/grass7/raster/r.shalstab/r.shalstab.py
Log:
R.shalstab: change critic rain classification

Modified: grass-addons/grass7/raster/r.shalstab/r.shalstab.py
===================================================================
--- grass-addons/grass7/raster/r.shalstab/r.shalstab.py	2014-02-13 10:11:13 UTC (rev 59017)
+++ grass-addons/grass7/raster/r.shalstab/r.shalstab.py	2014-02-13 10:14:27 UTC (rev 59018)
@@ -179,7 +179,7 @@
                   phy=phy, gamma=gamma)
     # Calculation of critical rain (mm / hr) and riclassification
     grass.mapcalc("i_cri_m_1000=i_crit_m*1000")
-    grass.mapcalc("i_cri_mm=if(i_cri_m_1000>200, null(), i_cri_m_1000")
+    grass.mapcalc("i_cri_mm=if(i_cri_m_1000>200, null(), i_cri_m_1000)")
     grass.run_command('r.colors', map='i_cri_mm', color='precipitation')
     reclass_rules = "0 thru 30 = 2\n31 thru 100 = 3\n101 thru 150 = 4\n151 thru 200 = 5\n201 thru 999 = 6"
     grass.write_command('r.reclass', input='i_cri_mm', output='i_recl',



More information about the grass-commit mailing list