Learn R Programming

oce (version 0.2-1)

swDepth: Water depth

Description

Compute depth from pressure and latitude.

Usage

swDepth(pressure, latitude=45, degrees=TRUE)
swZ(pressure, latitude=45, degrees=TRUE)

Arguments

pressure
either pressure [dbar], in which case lat must also be given, or a ctd object, in which case lat will be inferred from the object.
latitude
Latitude in $^\circ$N or radians north of the equator.
degrees
Flag indicating whether degrees are used for latitude; if set to FALSE, radians are used.

Value

  • For swDepth, depth below the ocean surface, in metres. For swZ, the negative of the depth, i.e. the distance above the surface.

Details

Depth is calculated from pressure using Saunders and Fofonoff's method, with the formula refitted for 1980 UNESCO equation of state (UNESCO, 1983).

Check value: 9712.653 m for 10,000 dbar at 30 deg latitude.

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
d <- swDepth(10, 45)

Run the code above in your browser using DataLab