Moran_XY.csvList readers,
I am trying to perform an ordinary kriging with the above data using the 'krige.conv' function in the geoR package. I am however, encountering problems with successfully completing this. I have provided the data and code I have been running and would welcome some suggestions.
data<-read.csv("Moran_XY.csv")
sb<-as.geodata(data)
# Defining a prediction grid
grid<-expand.grid(seq(300000,360000,l=60),seq(3613000,3650000,l=60))
# predicting by ordinary kriging
vario <- variog(sb)
vf <- variofit(vario)
kc <- krige.conv(sb, loc=grid, krige=krige.control(obj.m=vf))
#generating image
image(kc)
Thanks in advance,
Dan.