check_density_inversion: Check density inversion (R workflow)

View source: R/correct_density_inversion.R

check_density_inversionR Documentation

Check density inversion (R workflow)

Description

Check density inversion (R workflow)

Usage

check_density_inversion(
  x,
  threshold = -1e-05,
  threshold_method = "bv",
  correct_inversion = TRUE
)

Arguments

x

oce object

threshold

Numerical. Threshold for flagging a density inversion. Must be negative. Default (-1e-5) is the buoyancy frequency threshold PMEL uses. GTSPP uses a density threshold of 0.05.

threshold_method

Character. "density" to flag inversions based on density anomalies, "bv" for Brunt-Vaisala buoyancy frequency

correct_inversion

Logical. Should density inversions be removed and interpolated?

Value

oce object with density inversions flaggd and/or interpolated

Author(s)

Sean Rohan


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