pub struct PreciseEphemerisSamples { /* private fields */ }Expand description
A precise-ephemeris source built from samples rather than parsed text.
Implements crate::observables::ObservableEphemerisSource and exposes the
same PreciseEphemerisSamples::position_at_j2000_seconds query as the
SP3-parsed source, sharing its interpolation substrate.
Implementations§
Source§impl PreciseEphemerisSamples
impl PreciseEphemerisSamples
Sourcepub fn from_samples(
samples: impl IntoIterator<Item = PreciseEphemerisSample>,
) -> Result<Self, PreciseSamplesError>
pub fn from_samples( samples: impl IntoIterator<Item = PreciseEphemerisSample>, ) -> Result<Self, PreciseSamplesError>
Build a source from an iterator of samples.
Samples are grouped by satellite, keeping their supplied order. Each satellite’s series is validated to be strictly increasing in epoch and to carry at least two nodes. All samples must share one time scale. The node substrate is prepared exactly as the SP3 gather prepares it (floored J2000-second axis; native km position; native microsecond clock), so the interpolation is byte-identical to the SP3 path for samples that are the faithful image of the fit nodes (the round-trip case); samples carrying lower precision interpolate at that precision. See the module docs for the precise byte-identity contract and the SI-vs-native reconstruction caveat.
Sourcepub fn time_scale(&self) -> TimeScale
pub fn time_scale(&self) -> TimeScale
The time scale every sample epoch is expressed in.
Sourcepub fn satellites(&self) -> impl Iterator<Item = GnssSatelliteId> + '_
pub fn satellites(&self) -> impl Iterator<Item = GnssSatelliteId> + '_
The satellites this source can interpolate, in ascending order.
Sourcepub fn position_at_j2000_seconds(
&self,
sat: GnssSatelliteId,
query: f64,
) -> Result<Sp3State>
pub fn position_at_j2000_seconds( &self, sat: GnssSatelliteId, query: f64, ) -> Result<Sp3State>
Interpolate the state of sat at an arbitrary J2000-second epoch.
Identical recipe, substrate, and error surface as
Sp3::position_at_j2000_seconds: Error::UnknownSatellite for a
satellite with no nodes, Error::EpochOutOfRange for an out-of-coverage
query, Error::InvalidInput for a non-finite query.
Trait Implementations§
Source§impl Clone for PreciseEphemerisSamples
impl Clone for PreciseEphemerisSamples
Source§fn clone(&self) -> PreciseEphemerisSamples
fn clone(&self) -> PreciseEphemerisSamples
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreciseEphemerisSamples
impl Debug for PreciseEphemerisSamples
Source§impl ObservableEphemerisSource for PreciseEphemerisSamples
impl ObservableEphemerisSource for PreciseEphemerisSamples
Source§fn observable_state_at_j2000_s(
&self,
sat: GnssSatelliteId,
t_j2000_s: f64,
) -> Result<ObservableState, ObservablesError>
fn observable_state_at_j2000_s( &self, sat: GnssSatelliteId, t_j2000_s: f64, ) -> Result<ObservableState, ObservablesError>
Source§fn observable_states_at_j2000_s(
&self,
satellites: &[GnssSatelliteId],
epochs_j2000_s: &[f64],
) -> Result<ObservableStateBatch, ObservablesError>
fn observable_states_at_j2000_s( &self, satellites: &[GnssSatelliteId], epochs_j2000_s: &[f64], ) -> Result<ObservableStateBatch, ObservablesError>
Source§impl PartialEq for PreciseEphemerisSamples
impl PartialEq for PreciseEphemerisSamples
Source§fn eq(&self, other: &PreciseEphemerisSamples) -> bool
fn eq(&self, other: &PreciseEphemerisSamples) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreciseEphemerisSamples
Auto Trait Implementations§
impl Freeze for PreciseEphemerisSamples
impl RefUnwindSafe for PreciseEphemerisSamples
impl Send for PreciseEphemerisSamples
impl Sync for PreciseEphemerisSamples
impl Unpin for PreciseEphemerisSamples
impl UnsafeUnpin for PreciseEphemerisSamples
impl UnwindSafe for PreciseEphemerisSamples
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.