[GRASS-SVN] r66386 - grass/trunk/scripts/v.krige

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 30 13:12:39 PDT 2015


Author: neteler
Date: 2015-09-30 13:12:39 -0700 (Wed, 30 Sep 2015)
New Revision: 66386

Modified:
   grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: update to rgrass7 (contributed by pvanbosgeo)

Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py	2015-09-30 19:14:28 UTC (rev 66385)
+++ grass/trunk/scripts/v.krige/v.krige.py	2015-09-30 20:12:39 UTC (rev 66386)
@@ -6,7 +6,7 @@
 
 PURPOSE:   Performs ordinary or block kriging
 
-DEPENDS:   R 2.x, packages gstat, maptools and spgrass6, optional: automap
+DEPENDS:   R 2.x, packages gstat, maptools and rgrass7, optional: automap
 
 COPYRIGHT: (C) 2009-2014 the GRASS Development Team
 
@@ -140,7 +140,7 @@
         Checks for NULL values in the provided column and exits if they are present."""
 
         #@NOTE: new way with R - as it doesn't alter original data
-        Rpointmap = robjects.r.readVECT6(map, type =  'point')
+        Rpointmap = robjects.r.readVECT(map, type =  'point')
         # checks if x,y columns are present in dataframe. If they do are present, but with different names,
         # they'll be duplicated.
         if "x" not in robjects.r.names(Rpointmap): 
@@ -232,7 +232,7 @@
  
     def ExportMap(self, map, column, name, overwrite, command, variograms):
         # add kriging parameters to raster map history
-        robjects.r.writeRAST6(map, vname = name, zcol = column, overwrite = overwrite)
+        robjects.r.writeRAST(map, vname = name, zcol = column, overwrite = overwrite)
         grass.run_command('r.support',
                           map = name,
                           title = 'Kriging output',
@@ -408,7 +408,7 @@
         
     # R packages check. Will create one error message after check of all packages.
     missingPackagesList = []
-    for each in ["rgeos", "gstat", "spgrass6", "maptools"]:
+    for each in ["rgeos", "gstat", "rgrass7", "maptools"]:
         if not robjects.r.require(each, quietly = True)[0]:
             missingPackagesList.append(each)
     if missingPackagesList:



More information about the grass-commit mailing list