sw.depth {oce} | R Documentation |
Compute depth from pressure and latitude.
sw.depth(p, lat=45, degrees=TRUE) sw.z(p, lat=45, degrees=TRUE)
p |
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. |
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. |
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.
For sw.depth
, depth below the ocean surface, in metres.
For sw.z
, the negative of the depth, i.e. the distance above
the surface.
Dan Kelley
Unesco 1983. Algorithms for computation of fundamental properties of seawater, 1983. Unesco Tech. Pap. in Mar. Sci., No. 44, 53 pp.
d <- sw.depth(10, 45)