computableWaterProperties | R Documentation |
This determines what things can be derived from the supplied
variables. For example, if salinity
, temperature
,
and pressure
are supplied, then potential temperature, sound
speed, and several other things can be derived. If, in addition,
longitude
and latitude
are supplied, then Absolute Salinity,
Conservative Temperature, and some other things can be derived.
Similarly, nitrate
can be computed from NO2+NO3
together
with nitrate
, and nitrite
can be computed from NO2+NO3
together with nitrate
.
See the “Examples” for a full listing.
computableWaterProperties(x)
x |
a specification of the names of known variables. This
may be (a) an oce object, in which case the names are
determined by calling |
computableWaterProperties()
returns a sorted
character vector holding the names of computable
water properties, or NULL, if there are no computable values.
Dan Kelley
Other functions that calculate seawater properties:
T68fromT90()
,
T90fromT48()
,
T90fromT68()
,
locationForGsw()
,
swAbsoluteSalinity()
,
swAlpha()
,
swAlphaOverBeta()
,
swBeta()
,
swCSTp()
,
swConservativeTemperature()
,
swDepth()
,
swDynamicHeight()
,
swLapseRate()
,
swN2()
,
swPressure()
,
swRho()
,
swRrho()
,
swSCTp()
,
swSR()
,
swSTrho()
,
swSigma()
,
swSigma0()
,
swSigma1()
,
swSigma2()
,
swSigma3()
,
swSigma4()
,
swSigmaT()
,
swSigmaTheta()
,
swSoundAbsorption()
,
swSoundSpeed()
,
swSpecificHeat()
,
swSpice()
,
swSpiciness0()
,
swSpiciness1()
,
swSpiciness2()
,
swSstar()
,
swTFreeze()
,
swTSrho()
,
swThermalConductivity()
,
swTheta()
,
swViscosity()
,
swZ()
library(oce)
# Example 1
data(ctd)
computableWaterProperties(ctd)
# Example 2: nothing an be computed from just salinity
computableWaterProperties("salinity")
# Example 3: quite a lot can be computed from this trio of values
computableWaterProperties(c("salinity", "temperature", "pressure"))
# Example 4: now we can get TEOS-10 values as well
computableWaterProperties(c(
"salinity", "temperature", "pressure",
"longitude", "latitude"
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.