An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110820/1c9cb7a6/attachment.pl>
krige error
3 messages · Matevz Pavlic, Paul Hiemstra
2 days later
Dear Matevz, Please provide us with a reproducible example. At this stage we can only guess what is going wrong. regards, Paul
On 08/20/2011 02:50 PM, Matev? Pavli? wrote:
Hi all, i am having problems with krige() predisction. When i use this line :
Mag.K<-krige(DF1$MGCN_IGRF~1, DF1[-zerodist(DF1)[,1],], grd, vmfMag, nmax=nmx)
Error: too few spatial dimensions: 0 In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf 3: In min(x) : no non-missing arguments to min; returning Inf 4: In max(x) : no non-missing arguments to max; returning -Inf I get : Too few spatial dimension : 0 error When i use IDW it works perfectly....Any ideas? regards, m [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770
Paul, i found out the problem. It was , as Jan Olav suggested, the problem with zerodist(). When I leave the zerodist() part of the code out it works perfectly. thanks anyways for the help, m -----Original Message----- From: Paul Hiemstra [mailto:paul.hiemstra at knmi.nl] Sent: Tuesday, August 23, 2011 9:20 AM To: Matev? Pavli? Cc: r-sig-geo at r-project.org Subject: Re: [R-sig-Geo] krige error Dear Matevz, Please provide us with a reproducible example. At this stage we can only guess what is going wrong. regards, Paul
On 08/20/2011 02:50 PM, Matev? Pavli? wrote:
Hi all, i am having problems with krige() predisction. When i use this line :
Mag.K<-krige(DF1$MGCN_IGRF~1, DF1[-zerodist(DF1)[,1],], grd, vmfMag, nmax=nmx)
Error: too few spatial dimensions: 0 In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf 3: In min(x) : no non-missing arguments to min; returning Inf 4: In max(x) : no non-missing arguments to max; returning -Inf I get : Too few spatial dimension : 0 error When i use IDW it works perfectly....Any ideas? regards, m [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
-- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770