r-spatial / gstat

Spatial and spatio-temporal geostatistical modelling, prediction and simulation
http://r-spatial.github.io/gstat/
GNU General Public License v2.0
195 stars 49 forks source link

Cokriging Predict Function "Error in h(simpleError(msg, call))" #104

Open MichaelGAttia opened 2 years ago

MichaelGAttia commented 2 years ago

I tried to do CoKriging using gstat library in R. it works perfectly until the prediction function

CK <- predict(g, Grid)

It gave me this error:

Error in h(simpleError(msg, call)) : error in evaluating the argument 'obj' in selecting a method for function 'coordinates': trying to get slot "bbox" from an object (class "data.frame") that is not an S4 object.