speedofsound: Computes the speed of sound of the ocean for the given...

View source: R/speedofsound.R

speedofsoundR 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.

Description

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.

Usage

speedofsound(
  T,
  S,
  P,
  Z = NULL,
  P0 = 10.1325,
  rho = 1027,
  g = 9.82,
  Pain = TRUE
)

Arguments

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).


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.