Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-18 Thread Mauricio Zambrano
2009/11/17 Edzer Pebesma edzer.pebe...@uni-muenster.de: I just want to point out that krige has no problem with constant observations, as long as it is provided with a valid (i.e. semi negative definite, or something like that) variogram model. Thanks for make this point clear. The problem

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Paul Hiemstra
Edzer Pebesma wrote: My guess is that from constant data, the (co)variance is constant and zero, so the covariance matrix cannot be decomposed (hence: LDLfactor errors). Is this a case that autokrige should catch? I added a check in autoKrige. The output for the example below is now:

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Mauricio Zambrano
Thank you Edzer for giving a hint about the meaning of the 'LDLfactor' error, and thank you Paul for adding a check to the 'autoKrige' function. Kind regards, Mauricio --  Ph.D. Candidate, University of Trento Dept. of Civil and Env. Engineering

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Tomislav Hengl
: Tuesday, November 17, 2009 9:53 AM To: Edzer Pebesma Cc: r-sig-geo Subject: Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function Edzer Pebesma wrote: My guess is that from constant data, the (co)variance is constant and zero, so the covariance matrix cannot be decomposed (hence: LDLfactor

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Mauricio Zambrano
Subject: Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function Edzer Pebesma wrote: My guess is that from constant data, the (co)variance is constant and zero, so the covariance matrix cannot be decomposed (hence: LDLfactor errors). Is this a case that autokrige should catch? I added

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Edzer Pebesma
://home.medewerker.uva.nl/t.hengl/ -Original Message- From: r-sig-geo-boun...@stat.math.ethz.ch [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf Of Paul Hiemstra Sent: Tuesday, November 17, 2009 9:53 AM To: Edzer Pebesma Cc: r-sig-geo Subject: Re: [R-sig-Geo] 'LDLfactor' error in 'krige

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Edzer Pebesma
I just want to point out that krige has no problem with constant observations, as long as it is provided with a valid (i.e. semi negative definite, or something like that) variogram model. The problem is to automatically fit such a function from data that are constant, as they have zero

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-17 Thread Tomislav Hengl
To: Tomislav Hengl Cc: 'r-sig-geo' Subject: Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function Tom, you can already do this: library(gstat) data(meuse) coordinates(meuse)=~x+y data(meuse.grid) gridded(meuse.grid)=~x+y meuse=meuse[c(1,1:155),] # replicate first observation pr1 = predict(zinc

[R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-16 Thread Mauricio Zambrano
Dear List, During some OK interpolations of daily precipitation, with the 'automap' library, I got the following error: [using ordinary kriging] chfactor.c, line 130: singular matrix in function LDLfactor() Error en predict.gstat(g, newdata = newdata, block = block, nsim = nsim, : LDLfactor

Re: [R-sig-Geo] 'LDLfactor' error in 'krige' function

2009-11-16 Thread Edzer Pebesma
My guess is that from constant data, the (co)variance is constant and zero, so the covariance matrix cannot be decomposed (hence: LDLfactor errors). Is this a case that autokrige should catch? -- Edzer Mauricio Zambrano wrote: Dear List, During some OK interpolations of daily precipitation,