Skip to main content

align_clock_reference

Function align_clock_reference 

Source
pub fn align_clock_reference(
    reference: &Sp3,
    other: &Sp3,
    min_common: usize,
) -> Sp3
Expand description

Return a copy of other with its clocks shifted onto reference’s clock datum.

This applies the per-epoch reference-clock offset from clock_reference_offset: at each epoch where the offset could be estimated (at least min_common common clocked satellites), every clocked satellite’s offset has the datum subtracted, so the result’s clocks are directly comparable to reference’s. Positions are untouched (already comparable).

Epochs where the offset could not be estimated are left unchanged - they are not on reference’s datum, so a caller mixing aligned and unaligned epochs should consult clock_reference_offset to see which epochs were aligned. The returned product interpolates like any other Sp3.