[GRASS-SVN] r54833 - grass-addons/grass7/imagery/i.histo.match

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 2 02:17:58 PST 2013


Author: lucadelu
Date: 2013-02-02 02:17:57 -0800 (Sat, 02 Feb 2013)
New Revision: 54833

Modified:
   grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
Log:
fix separator, thanks to nikos alexandris

Modified: grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
===================================================================
--- grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2013-02-02 00:10:43 UTC (rev 54832)
+++ grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2013-02-02 10:17:57 UTC (rev 54833)
@@ -91,7 +91,7 @@
         grass.use_temp_region()
         grass.run_command('g.region', rast = i)
         # calculate statistics
-        stats_out = grass.pipe_command('r.stats', flags='cin', input= i, fs=':')
+        stats_out = grass.pipe_command('r.stats', flags='cin', input= i, separator=':')
         stats =  stats_out.communicate()[0].split('\n')[:-1]
         stats_dict = dict( s.split(':', 1) for s in stats)
         cdf = 0       



More information about the grass-commit mailing list