bottom_delim_vspd: Delimitate bottom phase of dive using vertical speed...

Description Usage Arguments Examples

Description

Delimitate bottom which is defined as the period between the first and last moment in the dive were vertical speed (simplified signal using poly) exceeds a threshold.

Usage

1
2
bottom_delim_vspd(time = NULL, y = NULL, y.type = c("depth", "vspd"),
  vert_vel = 0.75, w = 21)

Arguments

time

time readings, sorted in chronological order.

vert_vel

the verical speed threshold.

w

a window width to use for vertical speed smoothing (moving average) when vspd is not provided.

depth

depth readings, sorted in chronological order.

vspd

smoothed verical speed, sorted in chronological order. Optional. If provided, function is faster as it does not need to compute it from depth and time.

Examples

1
2
3
4
5
6
7
data(exses)
ind(exses)

n <- 65
idx <- tdrply(bottom_delim_vspd, 1:2, "!_/", no = n)[[1]]
tdrply(plot, 1:2, "!_/", no = n, main = n)
tdrply(function(x, st, ed, ...) points(x[st:ed, ]), 1:2, no = n, la = idx)

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.