speedofsound | R Documentation |
Computes the speed of sound of the ocean for the given temperature, salinity and pressure values. Method adopted from "sw_svel.m" and based on UNESCO 1983.
speedofsound(
T,
S,
P,
Z = NULL,
P0 = 10.1325,
rho = 1027,
g = 9.82,
Pain = TRUE
)
T |
is the temperature in degrees celcius, or a list of the inputs in the TSD file format. |
S |
are the salinity values in parts per thousand. |
P |
are the pressure values in decibar or Pascal. |
Z |
are the z-positions in meters (negative). Must be given along with 'P0', 'rho' and 'g'. |
P0 |
is the air pressure in decibar or Pascal (see 'Pain'). |
rho |
is the mass density of the sea in kg pr m^3. |
g |
is the gravitational acceleration in meters per s^2. |
Pain |
is TRUE if pressure is given in Pascal and FALSE if given in decibar (10000 Pascal). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.