[R-sig-Geo] krige error

Matevž Pavlič matevz.pavlic at gi-zrmk.si
Tue Aug 23 10:21:01 CEST 2011


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



More information about the R-sig-Geo mailing list