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

krigeST.df - Error when returning Full Covariance matrix #53

Closed LuisMLRPM closed 4 years ago

LuisMLRPM commented 4 years ago

Dear @edzer,

Stumbled across a small issue when trying to return the full covariance matrix. After debugging it seems to me that the return command on line 178 tries to return the prediction, however that is only calculated on line 183, and thus krigeST gives a "object pred not found" error.

Thanks in advance

edzer commented 4 years ago

OK, please try if things work now.

LuisMLRPM commented 4 years ago

Dear Edzer,

Thank you for the celerity of the response.

It works fine now, thank you.