[GRASS-SVN] r67603 - grass-addons/grass7/raster/r.skyview

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 18 13:39:00 PST 2016


Author: annakrat
Date: 2016-01-18 13:39:00 -0800 (Mon, 18 Jan 2016)
New Revision: 67603

Modified:
   grass-addons/grass7/raster/r.skyview/r.skyview.py
Log:
r.skyview: maxdistance parameter was not propagated to r.horizon

Modified: grass-addons/grass7/raster/r.skyview/r.skyview.py
===================================================================
--- grass-addons/grass7/raster/r.skyview/r.skyview.py	2016-01-18 15:58:17 UTC (rev 67602)
+++ grass-addons/grass7/raster/r.skyview/r.skyview.py	2016-01-18 21:39:00 UTC (rev 67603)
@@ -157,8 +157,11 @@
     if not gcore.overwrite() and color_raster_tmp:
         check_map_name(color_raster_tmp)
     try:
+        params = {}
+        if options['maxdistance']:
+            params['maxdistance'] = options['maxdistance']
         gcore.run_command('r.horizon', elevation=elev, step=horizon_step,
-                          output=TMP_NAME, flags='d')
+                          output=TMP_NAME, flags='d', **params)
 
         msgr.message(_("Computing sky view factor ..."))
         new_maps = _get_horizon_maps()



More information about the grass-commit mailing list