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)
Value
water depth d in meters
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)
Author
Andreas F. Hofmann. Maintained by Karline Soetaert (Karline.Soetaert@nioz.nl).
Examples
Run this codewatdepth(100)
plot(watdepth(1:100))
Run the code above in your browser using DataLab