Last chance! 50% off unlimited learning
Sale ends in
theta(S=35, T=25, P=0, Pref=0)
Pref
. Typically, the potential temperature is referenced
to the surface ($Pref=0$). The potential teperature depends on
the original salinity S
, in-situ temperature T
and pressure P
.This routine is essentially a wrapper for the swTheta
routine of the 'oce' package. Unlike the latter, pressure units here
are given in bars and method="unesco" is prescribed.
swTheta
.#Calculate the potential temperature for a sample at 1000 db referenced to the surface
theta <- theta(S=35, T=25, P=100, Pref=0)
Run the code above in your browser using DataLab