prh_predictor2 {tagtools}R Documentation

Predict the tag position on a diving animal from depth and acceleration data

Description

Predict the tag position on a diving animal parametrized by p0, r0, and h0, the canonical angles between the principal axes of the tag and the animal. The tag orientation on the animal can change with time and this function provides a way to estimate the orientation at the start and end of each suitable dive. The function critically assumes that the animal makes a sequence of short dives between respirations and that the animal remains upright (i.e., does not roll) during these shallow dives. See prh_predictor1 for a method more suitable to animals that rest horizontally at the surface. The function provides a graphical interface showing the estimated tag-to-animal orientation throughout the deployment. Follow the directions above the top panel of the figure to edit or delete an orientation estimate. The function provides a graphical interface showing the estimated tag-to-animal orientation throughout the deployment. Follow the directions above the top panel of the figure to edit or delete an orientation estimate.

Usage

prh_predictor2(P, A, sampling_rate = NULL, MAXD = 10)

Arguments

P

is a dive depth vector or sensor structure with units of m H2O.

A

is an acceleration matrix or sensor structure with columns ax, ay, and az. Acceleration can be in any consistent unit, e.g., g or m/s^2, and must have the same sampling rate as P.

sampling_rate

is the sampling rate of the sensor data in Hz (samples per second). This is only needed if neither A nor M are sensor structures.

MAXD

is the optional maximum depth of near-surface dives. The default value is 10 m. This is used to find contiguous surface intervals suitable for analysis.

Value

PRH, a data frame with columns cue p0, r0, h0, and q with a row for each dive edge analysed. cue is the time in second-since-tag-start of the dive edge analysed. p0, r0, and h0 are the deduced tag orientation angles in radians. q is the quality indicator with a low value (near 0, e.g., <0.05) indicating that the data fit more consistently with the assumptions of the method.

See Also

prh_predictor1, tag2animal


[Package tagtools version 0.1.0 Index]