profile_mld_from_t: Calculate mixed layer depth from temperature using a...

View source: R/profile_calcs.R

profile_mld_from_tR Documentation

Calculate mixed layer depth from temperature using a threshold

Description

Based on the temperature recorded at a specified reference depth, calculates the mixed layer depth using only temperature.

Usage

profile_mld_from_t(
  temperature,
  z,
  reference_depth = 5,
  min_temperature_diff = 0.5,
  temp_threshold = 0.25,
  assign_inversion,
  na_rm = TRUE
)

Arguments

temperature

Numeric vector of temperatures

z

Numeric vector of depths for each of the temperatures

reference_depth

Numeric vector of reference depth, can either be a single depth or multiple depths.

min_temperature_diff

Minimum temperature difference. If the difference in temperatures between the reference depths and other depths is below this threshold. If the difference is below this threshold, the function returns the maximum depth (i.e. column is considered fully mixed).

temp_threshold

Threshold temperature difference

assign_inversion

Substitutes maximum depth when temperature deep in the water column is higher than reference. Rare occurrence that may be an artifact of the survey sampling scheme.

na_rm

Should NA values be omitted?

Author(s)

Sean Rohan


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