View source: R/fcts packages.R
interpolation | R Documentation |
Use movement steps to linearly interpolate raster produced by loop. User can select if the mean or max is taken when multiple steps overlap in a single pixel. Function need to be applied following the loop function. This process is very slow.
interpolation(traj, ls, wei = mean, deg = mean, bet = max,
spe = mean, dt = dot)
traj |
An object produce by the function adj2stack |
ls |
An object produced by the loop |
wei |
Whether mean or max should be used for weight (default = mean) |
deg |
Whether mean or max should be used for degree (default = mean) |
bet |
Whether mean or max should be used for betweeness (default = max) |
spe |
Whether mean or max should be used for speed (default = mean) |
dt |
Whether mean, max, or dot product should be used for turning angle (default = dot) |
A list of object containing a raster stack object for each individual
data(puechabonsp)
locs <- puechabonsp$relocs
xy <- coordinates(locs)
df <- as.data.frame(locs)
da <- as.character(df$Date)
da <- as.POSIXct(strptime(as.character(df$Date),"%y%m%d", tz="Europe/Paris"))
litr <- as.ltraj(xy, da, id = id)
out1<-loop(litr)
out2<-interpolation(litr, out1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.