slowdown: Flag slowdowns and reversals

View source: R/slowdown.R

slowdownR Documentation

Flag slowdowns and reversals

Description

Flags slowdowns and reversals in profiles based on minimum speed.

Usage

slowdown(
  x,
  min_speed = 0.1,
  window = 5,
  cast_direction = NULL,
  exclude_bottom = 2
)

Arguments

x

ctd object

min_speed

Numeric vector (1L). Threshold below which observations should be flagged.

window

Numeric vector (1L). Number of samples to use to calculate speeds for each observation.

cast_direction

Character vector ("downcast", "upcast") denoting the cast direction.

exclude_bottom

Pressure width to exclude near-bottom. This is used because it can takes awhile for the CTD to start ascending when the net approaches or leaves the seafloor, but the contact between the net and the seafloor generally does not cause influential flow reversals.

Value

ctd object with flags updated to denote scans for which speeds were below the threshold.

Author(s)

Sean Rohan


afsc-gap-products/gapctd documentation built on March 5, 2025, 3:42 a.m.