@neilberkman/sidereon 0.36.2 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/pkg/sidereon.js CHANGED
@@ -16804,6 +16804,41 @@ export class Sp3 {
16804
16804
  }
16805
16805
  return Sp3.__wrap(ret[0]);
16806
16806
  }
16807
+ /**
16808
+ * Attest that this product is physically continuous, or report each
16809
+ * violation.
16810
+ *
16811
+ * A merged product is assembled per satellite and epoch from several
16812
+ * analysis centers, which is exactly the operation that can splice two
16813
+ * physically inconsistent arcs together while every input stays
16814
+ * individually well-formed. Two checks run, with different jobs: a
16815
+ * physical earth-fixed speed gate whose bound is a true upper bound for
16816
+ * the orbit class, so it cannot false-positive and catches gross
16817
+ * corruption; and a hold-out interpolation residual, which supplies the
16818
+ * sensitivity a speed gate structurally cannot - adjacent GNSS MEO epochs
16819
+ * are hundreds of kilometres apart, so a metre-scale splice moves the
16820
+ * implied speed by a fraction of a percent.
16821
+ *
16822
+ * `orbitClass` is `"meo_gnss"` (default), `"geosynchronous"`, `"leo"`, or
16823
+ * `null` to disable the speed gate. `residualToleranceM` enables the
16824
+ * residual check; `null` disables it.
16825
+ *
16826
+ * Returns `{ attested, defects, pairsChecked, residualsChecked,
16827
+ * residualsSkipped }`. Reports rather than refuses: whether a product with
16828
+ * defects is acceptable is the caller's decision.
16829
+ * @param {string | null} [orbit_class]
16830
+ * @param {number | null} [residual_tolerance_m]
16831
+ * @returns {any}
16832
+ */
16833
+ checkContinuity(orbit_class, residual_tolerance_m) {
16834
+ var ptr0 = isLikeNone(orbit_class) ? 0 : passStringToWasm0(orbit_class, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16835
+ var len0 = WASM_VECTOR_LEN;
16836
+ const ret = wasm.sp3_checkContinuity(this.__wbg_ptr, ptr0, len0, !isLikeNone(residual_tolerance_m), isLikeNone(residual_tolerance_m) ? 0 : residual_tolerance_m);
16837
+ if (ret[2]) {
16838
+ throw takeFromExternrefTable0(ret[1]);
16839
+ }
16840
+ return takeFromExternrefTable0(ret[0]);
16841
+ }
16807
16842
  /**
16808
16843
  * Estimate `other`'s per-epoch common clock offset relative to this product.
16809
16844
  *
Binary file