What i found out so far is that it has to be something with data...i raplaced just the column in other krige code and i got the same error. I also got :
It is difficult to know exactly what happens without seeing a
reproducible example, but did you check the results of zerodist(DF) and
DF[-zerodist(DF)[,1],]? The error below can come if there are no points
that are within the limits of zerodist, not sure if the error in your
first email could have a similar reason.
loadMeuse()
zerodist(meuse)
meuse[-zerodist(meuse)[,1],]
vmod = vgm(1, "Exp", 500, 0)
kres = krige(zinc~1, meuse[-zerodist(meuse)[,1],], meuse.grid, vmod)
Cheers,
Jon
On 20-Aug-11 17:13, Matev? Pavli? wrote:
What i found out so far is that it has to be something with data...i raplaced just the column in other krige code and i got the same error. I also got :
[1] "SpatialPixels"
attr(,"package")
[1] "sp
Anyway, the problem was, as Jan Olav Skoien suggested, with the zerodist().
Tnx, m
-----Original Message-----
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Jon Olav Skoien
Sent: Monday, August 22, 2011 9:49 AM
To: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] krige error
It is difficult to know exactly what happens without seeing a reproducible example, but did you check the results of zerodist(DF) and DF[-zerodist(DF)[,1],]? The error below can come if there are no points that are within the limits of zerodist, not sure if the error in your first email could have a similar reason.
loadMeuse()
zerodist(meuse)
meuse[-zerodist(meuse)[,1],]
vmod = vgm(1, "Exp", 500, 0)
kres = krige(zinc~1, meuse[-zerodist(meuse)[,1],], meuse.grid, vmod)
Cheers,
Jon
On 20-Aug-11 17:13, Matev? Pavli? wrote:
What i found out so far is that it has to be something with data...i raplaced just the column in other krige code and i got the same error. I also got :