[GRASS-SVN] r50535 - grass-addons/grass6/raster/r.basin
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 29 11:29:10 EST 2012
Author: madi
Date: 2012-01-29 08:29:10 -0800 (Sun, 29 Jan 2012)
New Revision: 50535
Modified:
grass-addons/grass6/raster/r.basin/r.basin.py
Log:
output r.stream.stats fixed for windows platform
Modified: grass-addons/grass6/raster/r.basin/r.basin.py
===================================================================
--- grass-addons/grass6/raster/r.basin/r.basin.py 2012-01-29 12:31:46 UTC (rev 50534)
+++ grass-addons/grass6/raster/r.basin/r.basin.py 2012-01-29 16:29:10 UTC (rev 50535)
@@ -488,9 +488,11 @@
stream_stats = grass.read_command('r.stream.stats', stream = r_strahler,
dir = r_drainage_e,
dem = 'r_elevation_crop' )
- grass.message( "##################################" )
- grass.message( "output r.stream.stats %s" % stream_stats )
- grass.message( "##################################" )
+
+ print "##################################"
+ print "Output of r.stream.stats: "
+ print stream_stats
+
stream_stats_summary = stream_stats.split('\n')[4].split('|')
stream_stats_mom = stream_stats.split('\n')[8].split('|')
Max_order , Num_streams , Len_streams , Stream_freq = stream_stats_summary[0] , stream_stats_summary[1] , stream_stats_summary[2] , stream_stats_summary[5]
More information about the grass-commit
mailing list