astrodynamics-gnss 0.8.0

GNSS domain layer (SP3, broadcast ephemeris, multi-GNSS single-point positioning, ionosphere/troposphere, DOP) built on the astrodynamics core
Documentation
//! # astrodynamics-gnss
//!
//! GNSS domain layer built on top of the [`astrodynamics`] core crate. This is
//! a **sibling crate, not a cargo feature** of `astrodynamics`: a
//! propagation-only consumer must never have to compile the IONEX/SP3 parsers.
//!
//! This crate defines the foundational types (the satellite identifier, the
//! units policy, and the crate error), the SP3 precise-ephemeris parser and
//! arbitrary-epoch interpolation, the ionospheric models (Klobuchar broadcast
//! and IONEX vertical-TEC grids), the Saastamoinen/Niell troposphere, the
//! dilution-of-precision (DOP) geometry, and GPS L1 single-point positioning
//! (SPP).
//!
//! ## Units policy (internal representation)
//!
//! All quantities are stored and computed in **SI base units**, with the frame
//! and datum encoded in the type name (per the spec's frames-in-the-type-system
//! rule), never hidden behind a bare `position_m`:
//!
//! - **Length / position:** meters (`_m`). SP3 positions are ITRF/IGS-frame
//!   ECEF meters; SPP receiver positions are WGS84/ITRF-compatible ECEF meters.
//!   (The core `astrodynamics` state crate works in kilometers; conversions
//!   happen explicitly at the boundary, never implicitly.)
//! - **Time / clock:** seconds (`_s`). Epochs are represented by the core
//!   `astrodynamics` time family (`Instant`/`TimeScale`), always scale-tagged;
//!   there is no bare ambiguous epoch.
//! - **Velocity:** meters per second (`_m_s`).
//! - **Angles:** radians (`_rad`) internally. Degrees appear only at I/O edges
//!   and are named `_deg`.
//! - **Frequency:** hertz (`_hz`).
//!
//! Field and parameter names carry the unit suffix so the unit is visible at
//! every call site. Matrix/vector linear algebra uses `nalgebra`
//! (`DMatrix`/`DVector`) per the spec.

// ---------------------------------------------------------------------------
// Module layout. Additional product modules are added as each lands.
// ---------------------------------------------------------------------------

pub mod broadcast; // broadcast-ephemeris (GPS LNAV / Galileo I/NAV) orbit + clock
pub mod crinex; // Hatanaka (CRINEX) observation-file decoder
pub mod dop; // dilution-of-precision geometry (GDOP/PDOP/HDOP/VDOP/TDOP)
pub mod glonass; // GLONASS PZ-90.11 state-vector RK4 propagation
pub mod ionex; // Klobuchar broadcast model + IONEX ionospheric maps
pub mod reduced_orbit; // compact mean-element orbit approximation (fitted)
pub mod rinex_nav; // RINEX 3 navigation-message parsing (GPS/Galileo broadcast)
pub mod rinex_obs; // RINEX 3 observation parsing + single-frequency pseudoranges
pub mod sp3; // SP3-c / SP3-d parser + arbitrary-epoch interpolation
pub mod spp; // single-point positioning (least-squares PVT)
pub mod tropo; // Saastamoinen zenith + Niell (NMF) mapping troposphere

mod error;
pub mod frame;
mod id;

pub use broadcast::{
    eccentric_anomaly, satellite_clock_offset_s, satellite_position_ecef, satellite_state,
    ClockOffset, ClockPolynomial, ConstellationConstants, EccentricAnomaly, KeplerianElements,
    OrbitState, SatelliteState,
};
pub use crinex::{decode as crinex_decode, decode_to as crinex_decode_to};
pub use dop::{dop, Dop, DopError, LineOfSight};
pub use error::{Error, Result};
pub use frame::{ItrfPositionM, ItrfVelocityMS, Wgs84Geodetic};
pub use id::{GnssSatelliteId, GnssSystem};
pub use ionex::{
    ionex_slant_delay, ionosphere_delay, klobuchar, klobuchar_native, Ionex, IonoModel,
    KlobucharParams,
};
pub use rinex_nav::{
    parse_glonass, parse_iono_corrections, parse_leap_seconds, parse_nav, BroadcastRecord,
    BroadcastStore, GlonassRecord, IonoCorrections, KlobucharAlphaBeta, NavMessage, NavParseError,
};
pub use rinex_obs::{
    pseudoranges as obs_pseudoranges, ObsEpoch, ObsEpochTime, ObsHeader, ObsValue, RinexObs,
    SignalPolicy,
};
pub use sp3::{Sp3, Sp3DataType, Sp3Flags, Sp3Header, Sp3State, Sp3Version};
pub use spp::{
    solve as solve_spp, Corrections, EphemerisSource, KlobucharCoeffs, Observation,
    ReceiverSolution, RejectedSat, RejectionReason, SolutionMetadata, SolveInputs, SppError,
    SurfaceMet, C_M_S, ELEVATION_MASK_RAD, F_L1_HZ, OMEGA_E_DOT_RAD_S, SIGMA0_M,
    TRANSMIT_TIME_ITERATIONS,
};
pub use tropo::{
    tropo_mapping, tropo_slant, tropo_zenith, MappingFactors, MappingModel, Met, TropoModel,
    ZenithDelay,
};