Learn R Programming

oce (version 0.9-14)

swPressure: Water pressure

Description

Compute seawater pressure from depth by inverting swDepth using uniroot.

Usage

swPressure(depth , latitude=45)

Arguments

depth
distance below the surface in metres.
latitude
Latitude in $^\circ$N or radians north of the equator.

Value

  • Pressure in dbar.

Details

Numerical inversion of swDepth is done using uniroot.

References

Unesco 1983. Algorithms for computation of fundamental properties of seawater, 1983. Unesco Tech. Pap. in Mar. Sci., No. 44, 53 pp.

Examples

Run this code
swPressure(9712.653, 30) # should be 10km (check value in UNESCO 1983).

Run the code above in your browser using DataLab