View source: R/ctm_functions.R
ts_area | R Documentation |
Calculate area between temperature-salinity curves (R workflow)
ts_area(dc, uc, by = "pressure", return_sf = FALSE, area_method = "ts")
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. |
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.
Sean Rohan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.