[GRASS-SVN] r73749 - grass-addons/grass7/raster/r.droka

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 2 05:29:31 PST 2018


Author: neteler
Date: 2018-12-02 05:29:30 -0800 (Sun, 02 Dec 2018)
New Revision: 73749

Modified:
   grass-addons/grass7/raster/r.droka/r.droka.py
Log:
r.droka addon: add null_value parm to r.what; fix mixed tabs and spaces

Modified: grass-addons/grass7/raster/r.droka/r.droka.py
===================================================================
--- grass-addons/grass7/raster/r.droka/r.droka.py	2018-12-01 16:58:58 UTC (rev 73748)
+++ grass-addons/grass7/raster/r.droka/r.droka.py	2018-12-02 13:29:30 UTC (rev 73749)
@@ -83,7 +83,7 @@
 except:
     try:
         from grass.script import core as grass
-	#from grass.script import core as gcore
+        #from grass.script import core as gcore
     except:
         sys.exit("grass.script can't be imported.")
 
@@ -177,6 +177,7 @@
     what = grass.read_command('r.what' , 
         map=r_elevation , 
         points='start_points_' ,
+        null_value="-9999", # TODO: a better test for points outside the current region is needed
         quiet = True )
     quota = what.split('\n')
 



More information about the grass-commit mailing list