[GRASS-SVN] r59006 - grass-addons/grass7/raster/r.shalstab
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 11 23:53:28 PST 2014
Author: kikapu
Date: 2014-02-11 23:53:27 -0800 (Tue, 11 Feb 2014)
New Revision: 59006
Modified:
grass-addons/grass7/raster/r.shalstab/r.shalstab.py
Log:
correct error in classification
Modified: grass-addons/grass7/raster/r.shalstab/r.shalstab.py
===================================================================
--- grass-addons/grass7/raster/r.shalstab/r.shalstab.py 2014-02-11 19:46:27 UTC (rev 59005)
+++ grass-addons/grass7/raster/r.shalstab/r.shalstab.py 2014-02-12 07:53:27 UTC (rev 59006)
@@ -178,7 +178,7 @@
grass.mapcalc("i_crit_m=(T*sin(slopes)*((ewres()+nsres())/2)/A*($gamma/1000*(1-(1-C/(sin(slopes)*cos(slopes))))*(tan(slopes)/tan($phy))))+(assoluta_cond)+(cond_instab)",
phy=phy, gamma=gamma)
# Calculation of critical rain (mm / hr) and riclassification
- grass.mapcalc("i_cri_mm=i_crit_m*24000")
+ grass.mapcalc("i_cri_mm=i_crit_m*1000")
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',
overwrite='True', rules='-', stdin=reclass_rules)
More information about the grass-commit
mailing list