watdepth {AquaEnv}R Documentation

watdepth

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

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 (a.hofmann@nioo.knaw.nl)

References

Fofonoff1983

Examples

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

[Package AquaEnv version 0.7 Index]