profile_bld_from_t: Calculate bottom layer depth from temperature using a...

View source: R/profile_calcs.R

profile_bld_from_tR Documentation

Calculate bottom layer depth from temperature using a threshold

Description

Based on the temperature recorded at a specified difference from the maximum depth for a profile.

Usage

profile_bld_from_t(
  temperature,
  z,
  ref_dist_from_max = 4,
  min_temperature_diff = 0.5,
  temp_threshold = 0.25,
  na_rm = TRUE
)

Arguments

temperature

Numeric vector of temperatures

z

Numeric vector of depths for each of the temperatures

ref_dist_from_max

Numeric vector of distances from the maximum depth to use for the reference temperature.

min_temperature_diff

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

temp_threshold

Threshold temperature difference.

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.