[GRASS-SVN] r69112 - grass-addons/grass7/raster/r.skyview
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 9 04:59:10 PDT 2016
Author: kuszinger
Date: 2016-08-09 04:59:10 -0700 (Tue, 09 Aug 2016)
New Revision: 69112
Modified:
grass-addons/grass7/raster/r.skyview/r.skyview.py
Log:
Adding " around map names in r.mapcalc call meanwhile swapping "s to '.
Modified: grass-addons/grass7/raster/r.skyview/r.skyview.py
===================================================================
--- grass-addons/grass7/raster/r.skyview/r.skyview.py 2016-08-09 11:44:13 UTC (rev 69111)
+++ grass-addons/grass7/raster/r.skyview/r.skyview.py 2016-08-09 11:59:10 UTC (rev 69112)
@@ -165,9 +165,9 @@
msgr.message(_("Computing sky view factor ..."))
new_maps = _get_horizon_maps()
- expr = "{out} = 1 - (sin({first}) ".format(first=new_maps[0], out=output)
+ expr = '"{out}" = 1 - (sin("{first}") '.format(first=new_maps[0], out=output)
for horizon in new_maps[1:]:
- expr += "+ sin({name}) ".format(name=horizon)
+ expr += '+ sin("{name}") '.format(name=horizon)
expr += ") / {n}.".format(n=len(new_maps))
grast.mapcalc(exp=expr)
More information about the grass-commit
mailing list