| Crates.io | wgs84-gravity |
| lib.rs | wgs84-gravity |
| version | 0.1.2 |
| created_at | 2025-08-11 19:19:11.59728+00 |
| updated_at | 2025-09-10 20:14:09.995167+00 |
| description | This crate has been included and moved in `strapdown-ins`. Please use that one instead. |
| homepage | https://github.com/andrei-ng/wgs84-gravity |
| repository | https://github.com/andrei-ng/wgs84-gravity |
| max_upload_size | |
| id | 1790708 |
| size | 23,682 |
strapdown-ins. Please use that one.WGS84 gravity model constants and formulas for Earth radii and normal gravity.
All data inputs and outputs are in SI units.
Implementation is based on the following references
[dependencies]
wgs84-gravity = "0.1"
use wgs84_gravity::WGS84;
let lat = 52.0_f64.to_radians();
let alt = 100.0; // meters
// `gravity_normal` is and alias for `gravity_down`
let g = WGS84::gravity_down(lat, alt);
let g = WGS84::gravity_normal(lat, alt);
let g_surface = WGS84::gravity_surface(lat);
let g_ned = WGS84::gravity_ned(lat, alt); // north, east, down [m/s^2]
let r_m = WGS84::radius_meridian(lat);
let r_n = WGS84::radius_normal(lat);
Docs: docs.rs/wgs84-gravity
License: MIT