[R] problem in Krig function of "Fields" package

From: orkun <temiz_at_deprem.gov.tr>
Date: Wed 20 Jul 2005 - 03:41:30 EST


hello

I try to build DEM using Krig function of fields package. And I get this error message.
here is the procedure I followed:

> dt<-read.table("/usr/local/bartin/stat/topostat1",header=F,sep="|")
> names(dt) <-c("x","y","z")
> coord<-cbind(dt$x,dt$y)
> elevation<-cbind(dt$z)
> fit1<-Krig(coord,elevation,cov.function=exp.cov,scale.type="range")
[1] "condition number is 907405545.878743" Error in Krig(kord, el, cov.function = exp.cov, scale.type = "range") :

        Covariance matrix is close
to
singular

here is the structure of my data:

`data.frame': 3911 obs. of 3 variables:

 $ x: num  50139 50169 50214 50223 50227 ...
 $ y: num  4592999 4593322 4593054 4593151 4593246 ...
 $ z: int  320 320 320 320 320 320 320 320 320 320 ...

what do you suggest to solve the problem ?

kind regards



XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster@deprem.gov.tr

The views and opinions expressed in this e-mail message are ...{{dropped}}


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 20 03:51:26 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:50 EST