dive_stats function

Compute summary statistics for dives or flights