[GRASS-SVN] r58753 - grass-addons/grass7/raster/r.shalstab
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 21 01:50:25 PST 2014
Author: kikapu
Date: 2014-01-21 01:50:25 -0800 (Tue, 21 Jan 2014)
New Revision: 58753
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-01-21 07:39:04 UTC (rev 58752)
+++ grass-addons/grass7/raster/r.shalstab/r.shalstab.py 2014-01-21 09:50:25 UTC (rev 58753)
@@ -158,8 +158,7 @@
phy=phy, gamma=gamma)
# Calculation of critical rain (mm / hr) and riclassification
grass.mapcalc("i_cri_mm=i_crit_m*24000")
- reclass_rules = "0 thru 50 = 2\n50 thru 100 = 3\n100 thru 200 = 4\n" \
- "200 thru 400 = 5\n400 thru 999 = 6"
+ reclass_rules = "0 thru 50 = 2\n51 thru 100 = 3\n101 thru 200 = 4\n201 thru 400 = 5\n401 thru 999 = 6"
grass.write_command('r.reclass', input='i_cri_mm', output='i_recl',
overwrite='True', rules='-', stdin=reclass_rules)
grass.mapcalc("copia_reclass=i_recl+0")
More information about the grass-commit
mailing list