Skip to main content

SolveInputs

Struct SolveInputs 

Source
pub struct SolveInputs {
    pub observations: Vec<Observation>,
    pub t_rx_j2000_s: f64,
    pub t_rx_second_of_day_s: f64,
    pub day_of_year: f64,
    pub initial_guess: [f64; 4],
    pub corrections: Corrections,
    pub klobuchar: KlobucharCoeffs,
    pub beidou_klobuchar: Option<KlobucharCoeffs>,
    pub galileo_nequick: Option<GalileoNequickCoeffs>,
    pub glonass_channels: BTreeMap<u8, i8>,
    pub met: SurfaceMet,
    pub robust: Option<RobustConfig>,
}
Expand description

Everything one SPP solve needs besides the SP3 product itself.

The receive epoch is carried as seconds-since-J2000 (t_rx_j2000_s), the argument the transmit-time iteration differences against the geometric range to land the satellite ephemeris at transmission, with no Julian-date round-trip inside the loop. The Klobuchar diurnal argument (t_rx_second_of_day_s) and the Niell seasonal argument (day_of_year) are supplied directly so the correction kernels run in their bit-exact native units.

Fields§

§observations: Vec<Observation>

The pseudorange observations (any order; the solve sorts them).

§t_rx_j2000_s: f64

Receive epoch, seconds since J2000 in the SP3 product’s time scale.

§t_rx_second_of_day_s: f64

GPS second-of-day of the receive epoch (Klobuchar diurnal argument).

§day_of_year: f64

Fractional day-of-year of the receive epoch (Niell seasonal argument).

§initial_guess: [f64; 4]

Initial guess [x_m, y_m, z_m, b_m].

§corrections: Corrections

The correction terms to apply.

§klobuchar: KlobucharCoeffs

Broadcast Klobuchar coefficients (used iff corrections.ionosphere). Applied to every system unless beidou_klobuchar overrides BeiDou.

§beidou_klobuchar: Option<KlobucharCoeffs>

Optional BeiDou-specific Klobuchar coefficients (the broadcast BDSA/ BDSB set). When present, BeiDou satellites use these instead of klobuchar; both feed the same model, frequency-scaled to B1I. None falls back to klobuchar for BeiDou too.

§galileo_nequick: Option<GalileoNequickCoeffs>

Optional Galileo-specific NeQuick-G coefficients (the broadcast GAL ai0/ai1/ai2 set). When present, Galileo satellites use these instead of the GPS Klobuchar coefficients. None preserves the historical Klobuchar fallback so existing zero-Galileo goldens stay bit-identical.

§glonass_channels: BTreeMap<u8, i8>

GLONASS FDMA channel numbers keyed by GLONASS slot (PRN), from the broadcast nav freq_channel field or the observation header’s GLONASS SLOT / FRQ # records. Used only to resolve the per-satellite GLONASS carrier for the ionosphere (f_L1 / f_k)^2 scaling; an empty map is correct for any solve with no GLONASS observation and leaves every other constellation bit-identical. A GLONASS observation with the ionosphere correction requested but no channel here is rejected with SppError::IonosphereUnsupported.

§met: SurfaceMet

Surface meteorology (used iff corrections.troposphere).

§robust: Option<RobustConfig>

Opt-in Huber/IRLS robust reweighting. None (the default behavior) runs the static elevation-weighted solve byte-identically; Some(_) adds the outer reweighting loop described on RobustConfig.

Trait Implementations§

Source§

impl Clone for SolveInputs

Source§

fn clone(&self) -> SolveInputs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SolveInputs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.