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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 7 10:56:54 EDT 2009


Author: aghisla
Date: 2009-08-07 10:56:54 -0400 (Fri, 07 Aug 2009)
New Revision: 38631

Modified:
   grass-addons/vector/v.krige/v.krige.py
Log:
cleanup, preparation for variogram plotting (requires a bit of reorganisation of kriging workflow)


Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py	2009-08-07 10:15:54 UTC (rev 38630)
+++ grass-addons/vector/v.krige/v.krige.py	2009-08-07 14:56:54 UTC (rev 38631)
@@ -366,16 +366,13 @@
                                    layer = 1, excludeKey = True,
                                    type = ['integer', 'double precision'])
         self.InputDataColumn.SetSelection(0)
+        self.RunButton.Enable(self.InputDataColumn.GetSelection() is not -1)
+        self.RBookgstatPanel.PlotButton.Enable(self.InputDataColumn.GetSelection() is not -1)
         
         if self.InputDataColumn.GetSelection() is not -1:
             self.OutputMapName.SetValue(MapName.split("@")[0]+"_kriging")
-            self.RunButton.Enable(True)
-            self.RBookgstatPanel.PlotButton.Enable(True)
         else:
-            #self.InputDataColumn.SetSelection(0)
             self.OutputMapName.SetValue('')
-            self.RunButton.Enable(False)
-            self.RBookgstatPanel.PlotButton.Enable(False)
         
     def OnRunButton(self,event):
         """ Execute R analysis. """
@@ -520,7 +517,14 @@
         robjects.r.writeRAST6(map, vname = name, zcol = col, overwrite = overwrite)
     
     def OnPlotButton(self,event):
+        # import data
+        # fit the variogram
         
+        # convert R dataframe (data variogram) - points
+        # convert R dataframe (model variogram) - line
+        # give them to plot.PolyPoints and plot.PolyLine
+        # plot it
+        #Plot = plot.PlotGraphics([points, line], title, xlabel, ylabel)
         pass
     
     def UseValue(self, event):



More information about the grass-commit mailing list