ts_area: Calculate area between temperature-salinity curves (R...

View source: R/ctm_functions.R

ts_areaR Documentation

Calculate area between temperature-salinity curves (R workflow)

Description

Calculate area between temperature-salinity curves (R workflow)

Usage

ts_area(dc, uc, by = "pressure", return_sf = FALSE, area_method = "ts")

Arguments

dc

downcast oce object

uc

upcast oce object

by

Which Z dimension variable should be used ("depth" or "pressure")?

return_sf

Logical. If TRUE, returns sf object with polygons. Otherwise returns the sum of polygon areas as a 1L numeric vector.

area_method

Area between temperature-salinity ("ts") curves or oxygen-pressure ("op") curves.

Value

When return_sf = TRUE, an sf object (POLYGON) of the area between T-S curves. When return_sf = FALSE, a 1L numeric vector with the sum of polygon areas.

Author(s)

Sean Rohan


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