[R-sig-Geo] increment and distance in correlog

2010-10-06 Thread Jens Floeter
Hello again, okay, i found the ncf package and the correlog function. # correlog(x, y, z, w = NULL, increment, resamp = 100, latlon = FALSE, na.rm = FALSE, quiet = FALSE) my short question is: if latlon = T and the positions are "degree,

Re: [R-sig-Geo] increment and distance in correlog

2010-10-06 Thread Edzer Pebesma
Jens, in your code snippet below, the number 6370 rings a bell. According to http://en.wikipedia.org/wiki/Earth_radius it is close to the average earth radius. In km. Given that there's just one such number, it seems the code assumes a sphere is close enough to approximate the earth. On