oce (version 1.2-0)

gravity: Acceleration due to earth gravity

Description

Compute \(g\), the acceleration due to gravity, as a function of latitude.

Usage

gravity(latitude = 45, degrees = TRUE)

Arguments

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

Acceleration due to gravity, in \(m^2/s\).

Details

Value not verified yet, except roughly.

References

Gill, A.E., 1982. Atmosphere-ocean Dynamics, Academic Press, New York, 662 pp.

Caution: Fofonoff and Millard (1983 UNESCO) use a different formula.

Examples

Run this code
# NOT RUN {
g <- gravity(45) # 9.8
# }

Run the code above in your browser using DataCamp Workspace