Skip to content
Prev 3510 / 29559 Next

gstat variogram & great circle distance

Timothy, for some reason the projected argument was not meant to be set 
by users at this level of abstraction; I'll look into it. The following 
seems to work:

 > proj4string(foo)=CRS("+longlat")
 > proj4string(foo)
[1] "+longlat"
 > variogram(z~1,foo)
  np      dist        gamma dir.hor dir.ver   id
1  1  177.7815   0.48861387       0       0 var1
2  2  614.0040   1.11639574       0       0 var1
3  3  715.8402 115.50300578       0       0 var1
4  1  829.6047   0.01873678       0       0 var1
5  1  893.0483   3.66061567       0       0 var1
6  1  992.9436 268.46555052       0       0 var1
7  4 1095.7359  83.25299050       0       0 var1
8  1 1274.4497  12.33954872       0       0 var1
9  1 1357.4796   3.01500925       0       0 var1

--
Edzer
Timothy W. Hilton wrote: