interpolation: Interpolation based on movement steps for all individuals

View source: R/fcts packages.R

interpolationR Documentation

Interpolation based on movement steps for all individuals

Description

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.

Usage

interpolation(traj, ls, wei = mean, deg = mean, bet = max,
  spe = mean, dt = dot)

Arguments

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)

Value

A list of object containing a raster stack object for each individual

Examples

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)

BastilleRousseau/moveNT documentation built on Aug. 26, 2023, 5:54 a.m.