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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 14 01:31:06 PST 2014


Author: kikapu
Date: 2014-02-14 01:31:06 -0800 (Fri, 14 Feb 2014)
New Revision: 59037

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-14 09:28:28 UTC (rev 59036)
+++ grass-addons/grass7/raster/r.shalstab/r.shalstab.py	2014-02-14 09:31:06 UTC (rev 59037)
@@ -170,7 +170,7 @@
                   phy=phy, gamma=gamma)
     # Calculation of critical rain (mm / hr) and riclassification
     grass.mapcalc("i_cri_mm=i_crit_m*1000")
-    grass.mapcalc("i_cri_mm_reclass=if(i_cri_mm<-1000, -1000, if(i_cri_mm>500,500, i_cri_mm))")
+    grass.mapcalc("i_cri_mm_reclass=if(i_cri_mm<-1000, -1000, if(i_cri_mm>200,200, i_cri_mm))")
     grass.run_command('r.colors', map='i_cri_mm_reclass', 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