[GRASS-SVN] r50878 - grass-addons/grass6/raster/r.basin
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 19 13:01:03 EST 2012
Author: madi
Date: 2012-02-19 10:01:03 -0800 (Sun, 19 Feb 2012)
New Revision: 50878
Modified:
grass-addons/grass6/raster/r.basin/r.basin.py
Log:
Error in mainchannel fixed
Modified: grass-addons/grass6/raster/r.basin/r.basin.py
===================================================================
--- grass-addons/grass6/raster/r.basin/r.basin.py 2012-02-19 17:24:45 UTC (rev 50877)
+++ grass-addons/grass6/raster/r.basin/r.basin.py 2012-02-19 18:01:03 UTC (rev 50878)
@@ -380,7 +380,7 @@
param_mainchannel = grass.read_command('v.what', map = v_mainchannel,
east_north = '%s,%s' % (east,north) )
tmp = param_mainchannel.split('\n')[8]
- mainchannel = float(tmp.split()[1])
+ mainchannel = float(tmp.split()[1]) / 1000 # km
# Topological Diameter
grass.mapcalc("$r_mainchannel_dim = -($r_mainchannel - $r_shreve) + 1",
More information about the grass-commit
mailing list