[GRASS-SVN] r38398 - grass-addons/vector/v.krige

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 13 11:52:34 EDT 2009


Author: aghisla
Date: 2009-07-13 11:52:34 -0400 (Mon, 13 Jul 2009)
New Revision: 38398

Modified:
   grass-addons/vector/v.krige/v.krige.py
Log:
start adding progress feedback - starting from most time-demanding function, krige()


Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py	2009-07-13 15:28:51 UTC (rev 38397)
+++ grass-addons/vector/v.krige/v.krige.py	2009-07-13 15:52:34 UTC (rev 38398)
@@ -177,7 +177,8 @@
         ##see if it caused by automap/gstat dedicated plot function.
     
     def DoKriging(self, formula, inputdata, grid, model):
-        KrigingResult = robjects.r.krige(formula, inputdata, grid, model)
+        DottedParams = {'debug.level': -1} # let krige() print percentage status
+        KrigingResult = robjects.r.krige(formula, inputdata, grid, model, **DottedParams)
         return KrigingResult
  
     def ExportMap(self, map, column, name, overwrite):



More information about the grass-commit mailing list