[GRASS-SVN] r64412 - in grass-addons/grass7/raster: r.hypso r.in.srtm.region r.width.funct
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 3 02:58:21 PST 2015
Author: neteler
Date: 2015-02-03 02:58:21 -0800 (Tue, 03 Feb 2015)
New Revision: 64412
Modified:
grass-addons/grass7/raster/r.hypso/r.hypso.py
grass-addons/grass7/raster/r.in.srtm.region/r.in.srtm.region.py
grass-addons/grass7/raster/r.width.funct/r.width.funct.py
Log:
Addons: update g.region calls to #2409
Modified: grass-addons/grass7/raster/r.hypso/r.hypso.py
===================================================================
--- grass-addons/grass7/raster/r.hypso/r.hypso.py 2015-02-03 10:36:36 UTC (rev 64411)
+++ grass-addons/grass7/raster/r.hypso/r.hypso.py 2015-02-03 10:58:21 UTC (rev 64412)
@@ -58,7 +58,7 @@
stats = grass.read_command('r.stats', input = options['map'], sep = 'space', nv = '*', nsteps = '255', flags = 'inc').split('\n')[:-1]
# res = cellsize
- res = float(grass.read_command('g.region', rast = options['map'], flags = 'm').strip().split('\n')[4].split('=')[1])
+ res = float(grass.read_command('g.region', raster = options['map'], flags = 'm').strip().split('\n')[4].split('=')[1])
zn = np.zeros((len(stats),6),float)
kl = np.zeros((len(stats),2),float)
prc = np.zeros((9,2),float)
Modified: grass-addons/grass7/raster/r.in.srtm.region/r.in.srtm.region.py
===================================================================
--- grass-addons/grass7/raster/r.in.srtm.region/r.in.srtm.region.py 2015-02-03 10:36:36 UTC (rev 64411)
+++ grass-addons/grass7/raster/r.in.srtm.region/r.in.srtm.region.py 2015-02-03 10:58:21 UTC (rev 64412)
@@ -362,7 +362,7 @@
else:
grass.fatal(_("Please check internet connection and if url <%s> is correct.") % url)
- grass.run_command('g.region', rast = str(srtmtiles));
+ grass.run_command('g.region', raster = str(srtmtiles));
if fillnulls == 0:
grass.run_command('r.patch', input = srtmtiles, output = output)
Modified: grass-addons/grass7/raster/r.width.funct/r.width.funct.py
===================================================================
--- grass-addons/grass7/raster/r.width.funct/r.width.funct.py 2015-02-03 10:36:36 UTC (rev 64411)
+++ grass-addons/grass7/raster/r.width.funct/r.width.funct.py 2015-02-03 10:58:21 UTC (rev 64412)
@@ -52,7 +52,7 @@
stats = grass.read_command('r.stats', input = options['map'], sep = 'space', nv = '*', nsteps = '255', flags = 'Anc').split('\n')[:-1]
# res = cellsize
- res = float(grass.read_command('g.region', rast = options['map'], flags = 'm').strip().split('\n')[4].split('=')[1])
+ res = float(grass.read_command('g.region', raster = options['map'], flags = 'm').strip().split('\n')[4].split('=')[1])
zn = np.zeros((len(stats),4),float)
kl = np.zeros((len(stats),2),float)
prc = np.zeros((9,2),float)
More information about the grass-commit
mailing list