sw.depth {oce}R Documentation

Water depth

Description

Compute depth from pressure and latitude.

Usage

  d <- sw.depth(p, lat, degrees=TRUE);

Arguments

p Pressure [dbar].
lat Latitude in degN or radians north of the equator.
degrees Flag indicating whether degrees are used for latitude; if set to FALSE, radians are used.

Details

The information given below is adapted from the fortran code at http://sam.ucsd.edu/sio210/propseawater/ppsw_fortran/ppsw.f, which is where this R code came from.

Depth in meters from pressure in decibars using Saunders and Fofonoff's method, with the formula refitted for 1980 equation of state

Checkvalue: depth = 9712.653 m for p=10000 decibars, latitude=30 deg above for standard ocean: t=0 deg. celsuis ; s=35 (ipss-78)

Value

Depth [m].

Author(s)

Dan Kelley Dan.Kelley@Dal.Ca

References

(authors), 1976, (title), Deep-Sea Res., 23, 109-111.

See Also

N/A.

Examples

 d <- sw.depth(10, 45);

[Package oce version 0.1.59 Index]