You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculate the acceleration due to gravity at a given latitude and altitude above sea level.
Args
----
latitude : float
Latitude in degrees.
h : float
Elevation above sea level in meters. Defaults to 0.
Returns
-------
float
Acceleration due to gravity in meters per second squared.
References
----------
Based on the International Gravity Formula 1980 (IGF80) model, as outlined in https://en.wikipedia.org/wiki/Theoretical_gravity#International_gravity_formula_1980
"""
latitude = np.abs(latitude) # The formula is symmetric about the equator (like the oblate spheroid Earth)
phi = np.deg2rad(latitude)
# Coefficients for the gravity formula for the Earth as an oblate spheroid