[GRASS-SVN] r45078 - grass-addons/raster/r.diversity
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 18 07:23:24 EST 2011
Author: lucadelu
Date: 2011-01-18 04:23:24 -0800 (Tue, 18 Jan 2011)
New Revision: 45078
Modified:
grass-addons/raster/r.diversity/r.diversity.py
Log:
add alpha value in the output name for renyi calc
Modified: grass-addons/raster/r.diversity/r.diversity.py
===================================================================
--- grass-addons/raster/r.diversity/r.diversity.py 2011-01-18 12:19:39 UTC (rev 45077)
+++ grass-addons/raster/r.diversity/r.diversity.py 2011-01-18 12:23:24 UTC (rev 45078)
@@ -117,7 +117,7 @@
simpson = grass.run_command('r.li.simpson', map = map_in, out = map_out + '_simpson', conf = 'conf_diversity')
shannon = grass.run_command('r.li.shannon', map = map_in, out = map_out+ '_shannon', conf = 'conf_diversity')
pielou = grass.run_command('r.li.pielou', map = map_in, out = map_out+ '_pielou', conf = 'conf_diversity')
- renyi = grass.run_command('r.li.renyi', map = map_in, out = map_out+ '_renyi', conf = 'conf_diversity', alpha = alpha_value)
+ renyi = grass.run_command('r.li.renyi', map = map_in, out = map_out+ '_renyi_' + str(alpha_value), conf = 'conf_diversity', alpha = alpha_value)
os.remove(confilename)
print 'All works are terminated'
More information about the grass-commit
mailing list