Learn R Programming

AquaEnv (version 1.0-4)

watdepth: 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

References

Fofonoff1983

Examples

Run this code
watdepth(100)
plot(watdepth(1:100))

Run the code above in your browser using DataLab