Skip to content
Prev 5117 / 7420 Next

Compute the distance between the trajectories of two animals with varying sampling intervals

As far as I can tell, there is no such function in adehabitatLT. However, I 
wrote a function 'closest' [1] in the package 'hab' [2], which specifically 
does that: find the closest relocations from ltraj objects. It can work 
with only one ltraj, in which case it will look in other bursts, or with 
two different ltraj, in which case it will in the other ltraj. Most 
importantly, you can define a temporal windows to restrict the search, 
which may solve your problem of irregular time (the ltraj do not have to be 
regular, or on the same time schedule). It's only Euclidean distance 
though. Lastly, it works at the location level, i.e. it's not considering 
lines (steps). If that's what you're looking for, I would probably suggest 
using PostGIS...

Hope this helps,
Mathieu.


[1] https://github.com/basille/hab/blob/master/R/closest.r

[2] https://github.com/basille/hab


Le 22/07/2015 10:09, Jeremy Chacon a ?crit :