drawIsopycnals {oce} | R Documentation |
Add Isopycnal Curves to a TS Plot
Description
Adds isopycnal lines to an existing temperature-salinity plot. This is
called by plotTS()
, and may be called by the user also, e.g. if
an image plot is used to show TS data density.
Usage
drawIsopycnals(
nlevels = 6,
levels,
rotate = TRUE,
rho1000 = FALSE,
digits = 2,
eos = getOption("oceEOS", default = "gsw"),
longitude = NULL,
latitude = NULL,
trimIsopycnals = TRUE,
gridIsopycnals = c(50, 50),
cex = 0.75 * par("cex"),
col = "darkgray",
lwd = par("lwd"),
lty = par("lty"),
debug = getOption("oceDebug")
)
Arguments
nlevels |
suggested number of density levels (i.e. isopycnal curves);
ignored if |
levels |
optional density levels to draw. If this is |
rotate |
boolean, set to |
rho1000 |
boolean, set to |
digits |
minimum number of decimal digits to use in label (supplied to
|
eos |
equation of state to be used, either |
longitude , latitude |
numerical values giving the location
to be used in density calculations, if |
trimIsopycnals |
logical value ( |
gridIsopycnals |
a parameter that controls how the isopycnals
are computed. This may be NULL, or an integer vector of length 2.
Case 1: if |
cex |
size for labels. |
col |
color for lines and labels. |
lwd |
line width for isopycnal curves |
lty |
line type for isopycnal curves |
debug |
an integer specifying whether debugging information is
to be printed during the processing. This is a general parameter that
is used by many |
Details
The default method of drawing isopycnals was changed in February of 2023,
so that even plots that are zoomed in to have millidegree temperature ranges
will have smooth curves. See the discussion of gridIsopycnals
for
details.
Value
None.
Author(s)
Dan Kelley
References
Fofonoff, N. P., and R. C. Millard. "Algorithms for Computation of Fundamental Properties of Seawater." UNESCO Technical Papers in Marine Research. SCOR working group on Evaluation of CTD data; UNESCO/ICES/SCOR/IAPSO Joint Panel on Oceanographic Tables and Standards, 1983.
https://unesdoc.unesco.org/ark:/48223/pf0000059832
.McDougall, Trevor J., David R. Jackett, Daniel G. Wright, and Rainer Feistel. "Accurate and Computationally Efficient Algorithms for Potential Temperature and Density of Seawater." Journal of Atmospheric and Oceanic Technology 20, no. 5 (May 1, 2003): 730-41.
https://journals.ametsoc.org/jtech/article/20/5/730/2543/Accurate-and-Computationally-Efficient-Algorithms
.
See Also
plotTS()
, which calls this.