pf_sda_filter: Use 'sda' to identify extreme locations

View source: R/pf_sda_filter.R

pf_sda_filterR Documentation

Use sda to identify extreme locations

Description

Use sda to identify extreme locations

Usage

pf_sda_filter(x, spdf, vmax, ang, distlim)

Arguments

x

data from pf_obs_type()

spdf

turn speed filter on/off (logical; default is TRUE)

vmax

max travel rate (m/s)

ang

angles of outlier location "spikes" (default is c(15,25) deg); ang = NA turns off sda filter in favour of speedfilter

distlim

lengths of outlier location "spikes" in km (default is c(2.5, 5) m); distlim = NA turns off sda filter in favour of speedfilter. Either ang = NA or distlim = NA are sufficient.

Details

sda is a vectorized implementation of the Argos filter presented in Freitas et al. (2008) Mar Mamm Sci 24:315-325. This function checks for errors returned by sda and falls back to using the simpler speedfilter if an error is returned. Both sda and speedfilter are native implementations of those from the trip package (MD Sumner: https://github.com/Trackage/trip).


ianjonsen/foieGras documentation built on Jan. 17, 2025, 11:15 p.m.