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

CK <- predict(g, grid) cokriging error #109

Closed MichaelGAttia closed 2 years ago

MichaelGAttia commented 2 years ago

Dear Dr. Pebesma,

I'm trying to apply cokriging on two datasets and the package works perfectly until I reached the prediction part, I got that error message:

**

Linear Model of Coregionalization found. Good. [using ordinary cokriging] Error in predict.gstat(g, grid) : out of dynamic memory (try local kriging?)

**

edzer commented 2 years ago

Seems your kriging system is too large. Memory requirement for the covariance matrix alone is 8*O(n^2) with n the total amount of observations summed over the variables.

MichaelGAttia commented 2 years ago

Thanks! I will split my study area.