[GRASS-SVN] r38519 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 24 07:18:43 EDT 2009
Author: aghisla
Date: 2009-07-24 07:18:42 -0400 (Fri, 24 Jul 2009)
New Revision: 38519
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
problem with sill, nugget, value parameters - not yet solved
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-07-24 06:17:24 UTC (rev 38518)
+++ grass-addons/vector/v.krige/v.krige.py 2009-07-24 11:18:42 UTC (rev 38519)
@@ -193,13 +193,13 @@
print Formula
return Formula
- def FitVariogram(self, formula, inputdata, model = '', sill=0, nugget=0, range=0):
+ def FitVariogram(self, formula, inputdata, model = '', sill='NA', nugget='NA', range='NA'):
if model is '':
robjects.r.require("automap")
VariogramModel = robjects.r.autofitVariogram(formula, inputdata)
return VariogramModel.r['var_model'][0]
else:
- DataVariogram = robjects.r['variogram'](formula, inputdata)
+ DataVariogram = robjects.r['variogram'](formula, inputdata)
VariogramModel = robjects.r['fit.variogram'](DataVariogram,
model = robjects.r.vgm(psill = sill,
model = model,
More information about the grass-commit
mailing list