ctm_obj: Objective function for cell thermal mass calculations (R...

View source: R/ctm_functions.R

ctm_objR Documentation

Objective function for cell thermal mass calculations (R workflow)

Description

Calculates area between temperature and salinity curves when upcast and downcast data are provided. Calculates path distance for salinity if only downcast or upcast is provided.

Usage

ctm_obj(dc = NULL, uc = NULL, alpha_C, beta_C, area_method = "ts")

Arguments

dc

Downcast oce object

uc

Upcast oce object

alpha_C

Conductivity cell thermal inertia correction alpha parameter, passed to gapctd::conductivity_correction()

beta_C

Conductivity cell thermal inertia correction beta parameter, passed to gapctd::conductivity_correction()

area_method

Area between temperature-salinity ("ts") curves, depth-salinity curves ("zs"), or pressure-salinity curves ("ps")

Value

Area between T-S curves, Z-S curves, or path distance of salinity curve as a 1L numeric vector

Author(s)

Sean Rohan


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