kinavis-wmm
World Magnetic Model as a magnetic model port for the KINAVIS crates.
Embeds WMM2025 (valid 2025.0–2030.0) behind the wmm2025 feature and implements
kinavis_kernel::environment::MagneticModel: position, height and time in;
north, east and down field components out, with declination derived. Outside the
validity interval it returns an error instead of extrapolating.
Verified against NOAA's hundred published test values. no_std, no allocation.
use MagneticModel;
use ;
use Wmm;
let point = new;
let when = from_civil?;
let field = WMM2025.field_at?;
println!;
# Ok::
Feature flags
std(default) — standard library maths in the kernel.libm— forno_stdtargets:--no-default-features --features libm.wmm2025(default) — embeds the WMM2025 coefficients.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.