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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 5 11:40:46 EDT 2009


Author: aghisla
Date: 2009-08-05 11:40:45 -0400 (Wed, 05 Aug 2009)
New Revision: 38621

Modified:
   grass-addons/vector/v.krige/v.krige.py
Log:
corrected R package check - further progress for variogram plot, not yet working


Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py	2009-08-05 13:16:51 UTC (rev 38620)
+++ grass-addons/vector/v.krige/v.krige.py	2009-08-05 15:40:45 UTC (rev 38621)
@@ -135,7 +135,7 @@
 
 # R packages gstat or geoR
 for each in ["gstat", "spgrass6"]:
-    if not robjects.r.require(each, quietly=True):
+    if not robjects.r.require(each, quietly=True)[0]:
         sys.exit(_("R package " + each + " is missing. Install it and re-run v.krige."))
     
 # globals
@@ -461,8 +461,9 @@
                                      pos = (self.ParametersList.index(n),2))
         
         # right side of the Variogram fitting. The plot area.
-        Plot = wx.StaticBitmap(self, bitmap=wx.Bitmap('/home/anne/raster/Muppet-Bunsen.jpg'), size=(200,200))
-        self.RightSizer.Add(Plot, proportion=0, flag=wx.EXPAND | wx.ALL, border=parent.border)
+        Plot = wx.StaticText(self, id= wx.ID_ANY, label = "Check Plot Variogram to interactively fit model.")
+        #Plot = wx.StaticBitmap(self, bitmap=wx.Bitmap('/home/anne/raster/Muppet-Bunsen.jpg'), size=(200,200))
+        self.RightSizer.Add(Plot, proportion=0, flag= wx.ALIGN_CENTER | wx.ALL, border=parent.border)
         
         self.KrigingSizer = wx.StaticBoxSizer(wx.StaticBox(self,
                                                              id=wx.ID_ANY,



More information about the grass-commit mailing list