[GRASS-SVN] r69707 - grass-addons/grass7/imagery/i.segment.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 19 08:05:57 PDT 2016
Author: mlennert
Date: 2016-10-19 08:05:57 -0700 (Wed, 19 Oct 2016)
New Revision: 69707
Modified:
grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
Log:
i.segment.stats: replace points by underscores in raster names used as basenames for column names
Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py 2016-10-19 11:18:20 UTC (rev 69706)
+++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py 2016-10-19 15:05:57 UTC (rev 69707)
@@ -163,7 +163,8 @@
if not gscript.find_file(raster, element='cell')['name']:
gscript.message(_("Cannot find raster %s" % raster))
continue
- rastername=raster.split('@')[0]
+ rastername = raster.split('@')[0]
+ rastername = rastername.replace('.', '_')
output_header += [rastername + "_" + x for x in raster_statistics]
stat_indices = [raster_stat_dict[x] for x in raster_statistics]
gscript.run_command('r.univar',
More information about the grass-commit
mailing list