[Gstat-info] variogram
Hoogland, Tom
Tom.Hoogland at wur.nl
Thu Mar 20 16:04:23 CET 2008
I use gstat in R for the first time and in the first steps I encounter
this error:
> library(gstat)
Loading required package: sp
> pnt<-read.table("pnt-norg.csv", header=TRUE, sep=",")
> coordinates(pnt) = ~X + Y
> varioghg <- variogram(GHG_NAP ~ 1, pnt)
Error: dimensions do not match: locations 426 and data 159
> summary(pnt)
Object of class SpatialPointsDataFrame
Coordinates:
min max
X 228793 229679
Y 566722 567816
Is projected: NA
proj4string : [NA]
Number of points: 213
The number of locations is indeed 213 as given by summary(pnt) but the
variogram finctions seems to find 426 locations. Can anyone tell me
whats wrong...
Tom Hoogland
Alterra, Centrum Bodem
Tel: 0317-484251
E-mail: Tom.Hoogland at wur.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.geo.uu.nl/pipermail/gstat-info/attachments/20080320/323af75c/attachment.html
More information about the Gstat-info
mailing list