watdepth: watdepth

Description Usage Arguments Value Author(s) References Examples

View source: R/aquaenv_private_auxilaryfunctions.R

Description

PUBLIC function: calculates the depth (in m) from the gauge pressure p (or the total pressure P) and the latitude (in degrees: -90 to 90) and the atmospheric pressure Pa (in bar)

Usage

1
watdepth(P=Pa, p=pmax(0, P-Pa), lat=0, Pa=1.013253)

Arguments

P

total pressure in bar, standard: 1 atm (at the sea surface)

p

gauge pressure in bar (total pressure minus atmospheric pressure), standard: 0 (at the water surface)

lat

latitude in degrees: -90 to 90, standard: 0

Pa

atmospheric pressure in bar, standard: 1 atm (at sea level)

Value

water depth d in meters

Author(s)

Andreas F. Hofmann. Maintained by Karline Soetaert (Karline.Soetaert@nioz.nl).

References

Fofonoff1983

Examples

1
2
watdepth(100)
plot(watdepth(1:100))

Example output

[1] 982.0882

AquaEnv documentation built on May 2, 2019, 4:59 p.m.

Related to watdepth in AquaEnv...