@neilberkman/sidereon 2.0.0 → 2.1.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/CHANGELOG.md +17 -0
- package/README.md +7 -4
- package/package.json +1 -1
- package/pkg/sidereon.d.ts +2110 -2067
- package/pkg/sidereon.js +108 -19
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +2065 -2058
- package/pkg-node/sidereon.d.ts +45 -9
- package/pkg-node/sidereon.js +108 -19
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +2065 -2058
package/pkg-node/sidereon.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ export type Sp3MergeOptions = Sp3MergeIdentityOptions;
|
|
|
160
160
|
export interface Sp3ContinuityOptions {
|
|
161
161
|
orbitClass?: "meo_gnss" | "geosynchronous" | "leo" | null;
|
|
162
162
|
residualToleranceM?: number | null;
|
|
163
|
+
gapThresholdFactor?: number | null;
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
export interface ContinuityDefect {
|
|
@@ -6049,7 +6050,7 @@ export class PreciseEphemerisInterpolant {
|
|
|
6049
6050
|
/**
|
|
6050
6051
|
* Build a cached interpolant from an existing sample-backed precise source.
|
|
6051
6052
|
*/
|
|
6052
|
-
static fromPreciseEphemerisSamples(source: PreciseEphemerisSampleSource): PreciseEphemerisInterpolant;
|
|
6053
|
+
static fromPreciseEphemerisSamples(source: PreciseEphemerisSampleSource, gapThresholdFactor?: number | null): PreciseEphemerisInterpolant;
|
|
6053
6054
|
/**
|
|
6054
6055
|
* Build a cached interpolant directly from precise samples.
|
|
6055
6056
|
*
|
|
@@ -6059,14 +6060,14 @@ export class PreciseEphemerisInterpolant {
|
|
|
6059
6060
|
* J2000 and positions in ECEF metres. Throws a `TypeError` for malformed
|
|
6060
6061
|
* JS input and a `RangeError` for sample validation failures.
|
|
6061
6062
|
*/
|
|
6062
|
-
static fromSamples(samples: any): PreciseEphemerisInterpolant;
|
|
6063
|
+
static fromSamples(samples: any, gapThresholdFactor?: number | null): PreciseEphemerisInterpolant;
|
|
6063
6064
|
/**
|
|
6064
6065
|
* Build a cached interpolant from a parsed SP3 precise product.
|
|
6065
6066
|
*
|
|
6066
6067
|
* Nodes are copied from the product's native SP3 records. Query epochs are
|
|
6067
6068
|
* seconds since J2000 in the SP3 product time scale.
|
|
6068
6069
|
*/
|
|
6069
|
-
static fromSp3(sp3: Sp3): PreciseEphemerisInterpolant;
|
|
6070
|
+
static fromSp3(sp3: Sp3, gapThresholdFactor?: number | null): PreciseEphemerisInterpolant;
|
|
6070
6071
|
/**
|
|
6071
6072
|
* Query ECEF position and optional clock for parallel satellite and epoch
|
|
6072
6073
|
* arrays using this cached interpolant.
|
|
@@ -6095,6 +6096,14 @@ export class PreciseEphemerisInterpolant {
|
|
|
6095
6096
|
* handle's time scale. The output matches [`Sp3.predictRanges`].
|
|
6096
6097
|
*/
|
|
6097
6098
|
predictRanges(requests: any, options: any): any;
|
|
6099
|
+
/**
|
|
6100
|
+
* Return a copy of this interpolant with an explicit gap threshold factor.
|
|
6101
|
+
*/
|
|
6102
|
+
withInterpolationOptions(gapThresholdFactor: number): PreciseEphemerisInterpolant;
|
|
6103
|
+
/**
|
|
6104
|
+
* SP3 interpolation gap threshold factor carried by this interpolant.
|
|
6105
|
+
*/
|
|
6106
|
+
readonly gapThresholdFactor: number;
|
|
6098
6107
|
/**
|
|
6099
6108
|
* Satellite tokens this handle can interpolate, ascending.
|
|
6100
6109
|
*/
|
|
@@ -6143,6 +6152,14 @@ export class PreciseEphemerisSampleSource {
|
|
|
6143
6152
|
* this is the sample-source entry point.
|
|
6144
6153
|
*/
|
|
6145
6154
|
predictRanges(requests: any, options: any): any;
|
|
6155
|
+
/**
|
|
6156
|
+
* Return a copy of these samples with an explicit gap threshold factor.
|
|
6157
|
+
*/
|
|
6158
|
+
withInterpolationOptions(gapThresholdFactor: number): PreciseEphemerisSampleSource;
|
|
6159
|
+
/**
|
|
6160
|
+
* SP3 interpolation gap threshold factor carried by this source.
|
|
6161
|
+
*/
|
|
6162
|
+
readonly gapThresholdFactor: number;
|
|
6146
6163
|
/**
|
|
6147
6164
|
* The satellites this source can interpolate (e.g. `"G01"`), ascending.
|
|
6148
6165
|
*/
|
|
@@ -6199,6 +6216,10 @@ export class PreciseInterpolantArtifact {
|
|
|
6199
6216
|
* Checksum provenance: `"verified"` or `"attested"`.
|
|
6200
6217
|
*/
|
|
6201
6218
|
readonly digestProvenance: "verified" | "attested";
|
|
6219
|
+
/**
|
|
6220
|
+
* SP3 interpolation gap threshold factor read from the artifact header.
|
|
6221
|
+
*/
|
|
6222
|
+
readonly gapThresholdFactor: number;
|
|
6202
6223
|
/**
|
|
6203
6224
|
* Satellite tokens present in the artifact, ascending.
|
|
6204
6225
|
*/
|
|
@@ -7456,13 +7477,14 @@ export class Sp3 {
|
|
|
7456
7477
|
*
|
|
7457
7478
|
* `orbitClass` is `"meo_gnss"` (default), `"geosynchronous"`, `"leo"`, or
|
|
7458
7479
|
* `null` to disable the speed gate. `residualToleranceM` enables the
|
|
7459
|
-
* residual check; `null` disables it.
|
|
7480
|
+
* residual check; `null` disables it. `gapThresholdFactor` configures the
|
|
7481
|
+
* hold-out interpolation policy; `null` leaves the core default (1.5).
|
|
7460
7482
|
*
|
|
7461
7483
|
* Returns `{ attested, defects, pairsChecked, residualsChecked,
|
|
7462
7484
|
* residualsSkipped }`. Reports rather than refuses: whether a product with
|
|
7463
7485
|
* defects is acceptable is the caller's decision.
|
|
7464
7486
|
*/
|
|
7465
|
-
checkContinuity(orbitClass?: string | null, residualToleranceM?: number | null): ContinuityReport;
|
|
7487
|
+
checkContinuity(orbitClass?: string | null, residualToleranceM?: number | null, gapThresholdFactor?: number | null): ContinuityReport;
|
|
7466
7488
|
/**
|
|
7467
7489
|
* Estimate `other`'s per-epoch common clock offset relative to this product.
|
|
7468
7490
|
*
|
|
@@ -7481,7 +7503,7 @@ export class Sp3 {
|
|
|
7481
7503
|
* Passing `null` disables the corresponding check. The returned object
|
|
7482
7504
|
* retains both the influencing findings and the complete report.
|
|
7483
7505
|
*/
|
|
7484
|
-
continuityVerdict(fromJ2000S: number, throughJ2000S: number, orbitClass?: string | null, residualToleranceM?: number | null): WindowContinuityVerdict;
|
|
7506
|
+
continuityVerdict(fromJ2000S: number, throughJ2000S: number, orbitClass?: string | null, residualToleranceM?: number | null, gapThresholdFactor?: number | null): WindowContinuityVerdict;
|
|
7485
7507
|
/**
|
|
7486
7508
|
* Compute DGNSS pseudorange corrections from a surveyed base station.
|
|
7487
7509
|
*
|
|
@@ -7558,8 +7580,11 @@ export class Sp3 {
|
|
|
7558
7580
|
observableStatesAtSharedJ2000S(satellites: any, epoch_j2000_s: number): any;
|
|
7559
7581
|
/**
|
|
7560
7582
|
* Build deterministic precise-interpolant artifact bytes from this SP3 product.
|
|
7583
|
+
*
|
|
7584
|
+
* `gapThresholdFactor` optionally overrides the product's interpolation policy;
|
|
7585
|
+
* `null` or omitted retains this product's active policy.
|
|
7561
7586
|
*/
|
|
7562
|
-
preciseInterpolantArtifactBytes(): Uint8Array;
|
|
7587
|
+
preciseInterpolantArtifactBytes(gapThresholdFactor?: number | null): Uint8Array;
|
|
7563
7588
|
/**
|
|
7564
7589
|
* Predict geometric ranges for many `(satellite, receiver, epoch)` requests
|
|
7565
7590
|
* against this ephemeris in one call. `requests` is an array of
|
|
@@ -7633,6 +7658,10 @@ export class Sp3 {
|
|
|
7633
7658
|
* `d`). Deterministic: the same product always produces byte-identical text.
|
|
7634
7659
|
*/
|
|
7635
7660
|
toSp3String(): string;
|
|
7661
|
+
/**
|
|
7662
|
+
* Return a copy of this product with an explicit gap threshold factor.
|
|
7663
|
+
*/
|
|
7664
|
+
withInterpolationOptions(gapThresholdFactor: number): Sp3;
|
|
7636
7665
|
/**
|
|
7637
7666
|
* Epoch count declared by SP3 header line 1, independent of the parsed
|
|
7638
7667
|
* body count used by [`Sp3::epochCount`].
|
|
@@ -7647,6 +7676,10 @@ export class Sp3 {
|
|
|
7647
7676
|
* Number of epochs in the product.
|
|
7648
7677
|
*/
|
|
7649
7678
|
readonly epochCount: number;
|
|
7679
|
+
/**
|
|
7680
|
+
* SP3 interpolation gap threshold factor carried by this product.
|
|
7681
|
+
*/
|
|
7682
|
+
readonly gapThresholdFactor: number;
|
|
7650
7683
|
/**
|
|
7651
7684
|
* Satellite tokens present in the product (e.g. `"G01"`), ascending.
|
|
7652
7685
|
*/
|
|
@@ -10977,8 +11010,11 @@ export function loadRinexObs(bytes: Uint8Array): RinexObs;
|
|
|
10977
11010
|
/**
|
|
10978
11011
|
* Parse an SP3-c or SP3-d byte buffer (the full, already-decompressed file)
|
|
10979
11012
|
* into a precise-ephemeris product. Throws an `Error` on malformed input.
|
|
11013
|
+
*
|
|
11014
|
+
* `gapThresholdFactor` optionally configures the product-carried SP3 coverage-gap
|
|
11015
|
+
* interpolation policy; omitted or `null` leaves the core default (1.5).
|
|
10980
11016
|
*/
|
|
10981
|
-
export function loadSp3(bytes: Uint8Array): Sp3;
|
|
11017
|
+
export function loadSp3(bytes: Uint8Array, gapThresholdFactor?: number | null): Sp3;
|
|
10982
11018
|
|
|
10983
11019
|
/**
|
|
10984
11020
|
* Locate a source from sensor arrival times.
|
|
@@ -11621,7 +11657,7 @@ export function pppCorrectionsWithCodeBias(sp3: Sp3, epochs: any, receiver_ecef_
|
|
|
11621
11657
|
* (empty input, a single-sample satellite, non-monotonic epochs, a non-finite
|
|
11622
11658
|
* sample). Delegates to `sidereon_core::sp3::PreciseEphemerisSamples::from_samples`.
|
|
11623
11659
|
*/
|
|
11624
|
-
export function preciseEphemerisSamplesFromSamples(samples: any): PreciseEphemerisSampleSource;
|
|
11660
|
+
export function preciseEphemerisSamplesFromSamples(samples: any, gapThresholdFactor?: number | null): PreciseEphemerisSampleSource;
|
|
11625
11661
|
|
|
11626
11662
|
/**
|
|
11627
11663
|
* Compute the precise-interpolant artifact file-level checksum for byte content.
|
package/pkg-node/sidereon.js
CHANGED
|
@@ -14018,12 +14018,16 @@ class PreciseEphemerisInterpolant {
|
|
|
14018
14018
|
/**
|
|
14019
14019
|
* Build a cached interpolant from an existing sample-backed precise source.
|
|
14020
14020
|
* @param {PreciseEphemerisSampleSource} source
|
|
14021
|
+
* @param {number | null} [gap_threshold_factor]
|
|
14021
14022
|
* @returns {PreciseEphemerisInterpolant}
|
|
14022
14023
|
*/
|
|
14023
|
-
static fromPreciseEphemerisSamples(source) {
|
|
14024
|
+
static fromPreciseEphemerisSamples(source, gap_threshold_factor) {
|
|
14024
14025
|
_assertClass(source, PreciseEphemerisSampleSource);
|
|
14025
|
-
const ret = wasm.preciseephemerisinterpolant_fromPreciseEphemerisSamples(source.__wbg_ptr);
|
|
14026
|
-
|
|
14026
|
+
const ret = wasm.preciseephemerisinterpolant_fromPreciseEphemerisSamples(source.__wbg_ptr, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
14027
|
+
if (ret[2]) {
|
|
14028
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14029
|
+
}
|
|
14030
|
+
return PreciseEphemerisInterpolant.__wrap(ret[0]);
|
|
14027
14031
|
}
|
|
14028
14032
|
/**
|
|
14029
14033
|
* Build a cached interpolant directly from precise samples.
|
|
@@ -14034,10 +14038,11 @@ class PreciseEphemerisInterpolant {
|
|
|
14034
14038
|
* J2000 and positions in ECEF metres. Throws a `TypeError` for malformed
|
|
14035
14039
|
* JS input and a `RangeError` for sample validation failures.
|
|
14036
14040
|
* @param {any} samples
|
|
14041
|
+
* @param {number | null} [gap_threshold_factor]
|
|
14037
14042
|
* @returns {PreciseEphemerisInterpolant}
|
|
14038
14043
|
*/
|
|
14039
|
-
static fromSamples(samples) {
|
|
14040
|
-
const ret = wasm.preciseephemerisinterpolant_fromSamples(samples);
|
|
14044
|
+
static fromSamples(samples, gap_threshold_factor) {
|
|
14045
|
+
const ret = wasm.preciseephemerisinterpolant_fromSamples(samples, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
14041
14046
|
if (ret[2]) {
|
|
14042
14047
|
throw takeFromExternrefTable0(ret[1]);
|
|
14043
14048
|
}
|
|
@@ -14049,12 +14054,24 @@ class PreciseEphemerisInterpolant {
|
|
|
14049
14054
|
* Nodes are copied from the product's native SP3 records. Query epochs are
|
|
14050
14055
|
* seconds since J2000 in the SP3 product time scale.
|
|
14051
14056
|
* @param {Sp3} sp3
|
|
14057
|
+
* @param {number | null} [gap_threshold_factor]
|
|
14052
14058
|
* @returns {PreciseEphemerisInterpolant}
|
|
14053
14059
|
*/
|
|
14054
|
-
static fromSp3(sp3) {
|
|
14060
|
+
static fromSp3(sp3, gap_threshold_factor) {
|
|
14055
14061
|
_assertClass(sp3, Sp3);
|
|
14056
|
-
const ret = wasm.preciseephemerisinterpolant_fromSp3(sp3.__wbg_ptr);
|
|
14057
|
-
|
|
14062
|
+
const ret = wasm.preciseephemerisinterpolant_fromSp3(sp3.__wbg_ptr, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
14063
|
+
if (ret[2]) {
|
|
14064
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14065
|
+
}
|
|
14066
|
+
return PreciseEphemerisInterpolant.__wrap(ret[0]);
|
|
14067
|
+
}
|
|
14068
|
+
/**
|
|
14069
|
+
* SP3 interpolation gap threshold factor carried by this interpolant.
|
|
14070
|
+
* @returns {number}
|
|
14071
|
+
*/
|
|
14072
|
+
get gapThresholdFactor() {
|
|
14073
|
+
const ret = wasm.preciseephemerisinterpolant_gapThresholdFactor(this.__wbg_ptr);
|
|
14074
|
+
return ret;
|
|
14058
14075
|
}
|
|
14059
14076
|
/**
|
|
14060
14077
|
* Query ECEF position and optional clock for parallel satellite and epoch
|
|
@@ -14138,6 +14155,18 @@ class PreciseEphemerisInterpolant {
|
|
|
14138
14155
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14139
14156
|
}
|
|
14140
14157
|
}
|
|
14158
|
+
/**
|
|
14159
|
+
* Return a copy of this interpolant with an explicit gap threshold factor.
|
|
14160
|
+
* @param {number} gap_threshold_factor
|
|
14161
|
+
* @returns {PreciseEphemerisInterpolant}
|
|
14162
|
+
*/
|
|
14163
|
+
withInterpolationOptions(gap_threshold_factor) {
|
|
14164
|
+
const ret = wasm.preciseephemerisinterpolant_withInterpolationOptions(this.__wbg_ptr, gap_threshold_factor);
|
|
14165
|
+
if (ret[2]) {
|
|
14166
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14167
|
+
}
|
|
14168
|
+
return PreciseEphemerisInterpolant.__wrap(ret[0]);
|
|
14169
|
+
}
|
|
14141
14170
|
}
|
|
14142
14171
|
if (Symbol.dispose) PreciseEphemerisInterpolant.prototype[Symbol.dispose] = PreciseEphemerisInterpolant.prototype.free;
|
|
14143
14172
|
exports.PreciseEphemerisInterpolant = PreciseEphemerisInterpolant;
|
|
@@ -14166,6 +14195,14 @@ class PreciseEphemerisSampleSource {
|
|
|
14166
14195
|
const ptr = this.__destroy_into_raw();
|
|
14167
14196
|
wasm.__wbg_preciseephemerissamplesource_free(ptr, 0);
|
|
14168
14197
|
}
|
|
14198
|
+
/**
|
|
14199
|
+
* SP3 interpolation gap threshold factor carried by this source.
|
|
14200
|
+
* @returns {number}
|
|
14201
|
+
*/
|
|
14202
|
+
get gapThresholdFactor() {
|
|
14203
|
+
const ret = wasm.preciseephemerissamplesource_gapThresholdFactor(this.__wbg_ptr);
|
|
14204
|
+
return ret;
|
|
14205
|
+
}
|
|
14169
14206
|
/**
|
|
14170
14207
|
* Query ECEF position and optional clock for parallel satellite and epoch
|
|
14171
14208
|
* arrays against this sample-backed precise source.
|
|
@@ -14229,6 +14266,18 @@ class PreciseEphemerisSampleSource {
|
|
|
14229
14266
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
14230
14267
|
return v1;
|
|
14231
14268
|
}
|
|
14269
|
+
/**
|
|
14270
|
+
* Return a copy of these samples with an explicit gap threshold factor.
|
|
14271
|
+
* @param {number} gap_threshold_factor
|
|
14272
|
+
* @returns {PreciseEphemerisSampleSource}
|
|
14273
|
+
*/
|
|
14274
|
+
withInterpolationOptions(gap_threshold_factor) {
|
|
14275
|
+
const ret = wasm.preciseephemerissamplesource_withInterpolationOptions(this.__wbg_ptr, gap_threshold_factor);
|
|
14276
|
+
if (ret[2]) {
|
|
14277
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14278
|
+
}
|
|
14279
|
+
return PreciseEphemerisSampleSource.__wrap(ret[0]);
|
|
14280
|
+
}
|
|
14232
14281
|
}
|
|
14233
14282
|
if (Symbol.dispose) PreciseEphemerisSampleSource.prototype[Symbol.dispose] = PreciseEphemerisSampleSource.prototype.free;
|
|
14234
14283
|
exports.PreciseEphemerisSampleSource = PreciseEphemerisSampleSource;
|
|
@@ -14352,6 +14401,14 @@ class PreciseInterpolantArtifact {
|
|
|
14352
14401
|
}
|
|
14353
14402
|
return PreciseInterpolantArtifact.__wrap(ret[0]);
|
|
14354
14403
|
}
|
|
14404
|
+
/**
|
|
14405
|
+
* SP3 interpolation gap threshold factor read from the artifact header.
|
|
14406
|
+
* @returns {number}
|
|
14407
|
+
*/
|
|
14408
|
+
get gapThresholdFactor() {
|
|
14409
|
+
const ret = wasm.preciseinterpolantartifact_gapThresholdFactor(this.__wbg_ptr);
|
|
14410
|
+
return ret;
|
|
14411
|
+
}
|
|
14355
14412
|
/**
|
|
14356
14413
|
* Satellite tokens present in the artifact, ascending.
|
|
14357
14414
|
* @returns {string[]}
|
|
@@ -17499,19 +17556,21 @@ class Sp3 {
|
|
|
17499
17556
|
*
|
|
17500
17557
|
* `orbitClass` is `"meo_gnss"` (default), `"geosynchronous"`, `"leo"`, or
|
|
17501
17558
|
* `null` to disable the speed gate. `residualToleranceM` enables the
|
|
17502
|
-
* residual check; `null` disables it.
|
|
17559
|
+
* residual check; `null` disables it. `gapThresholdFactor` configures the
|
|
17560
|
+
* hold-out interpolation policy; `null` leaves the core default (1.5).
|
|
17503
17561
|
*
|
|
17504
17562
|
* Returns `{ attested, defects, pairsChecked, residualsChecked,
|
|
17505
17563
|
* residualsSkipped }`. Reports rather than refuses: whether a product with
|
|
17506
17564
|
* defects is acceptable is the caller's decision.
|
|
17507
17565
|
* @param {string | null} [orbit_class]
|
|
17508
17566
|
* @param {number | null} [residual_tolerance_m]
|
|
17567
|
+
* @param {number | null} [gap_threshold_factor]
|
|
17509
17568
|
* @returns {any}
|
|
17510
17569
|
*/
|
|
17511
|
-
checkContinuity(orbit_class, residual_tolerance_m) {
|
|
17570
|
+
checkContinuity(orbit_class, residual_tolerance_m, gap_threshold_factor) {
|
|
17512
17571
|
var ptr0 = isLikeNone(orbit_class) ? 0 : passStringToWasm0(orbit_class, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
17513
17572
|
var len0 = WASM_VECTOR_LEN;
|
|
17514
|
-
const ret = wasm.sp3_checkContinuity(this.__wbg_ptr, ptr0, len0, !isLikeNone(residual_tolerance_m), isLikeNone(residual_tolerance_m) ? 0 : residual_tolerance_m);
|
|
17573
|
+
const ret = wasm.sp3_checkContinuity(this.__wbg_ptr, ptr0, len0, !isLikeNone(residual_tolerance_m), isLikeNone(residual_tolerance_m) ? 0 : residual_tolerance_m, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
17515
17574
|
if (ret[2]) {
|
|
17516
17575
|
throw takeFromExternrefTable0(ret[1]);
|
|
17517
17576
|
}
|
|
@@ -17550,10 +17609,11 @@ class Sp3 {
|
|
|
17550
17609
|
* @param {number} through_j2000_s
|
|
17551
17610
|
* @param {any} orbit_class
|
|
17552
17611
|
* @param {any} residual_tolerance_m
|
|
17612
|
+
* @param {any} gap_threshold_factor
|
|
17553
17613
|
* @returns {any}
|
|
17554
17614
|
*/
|
|
17555
|
-
continuityVerdict(from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m) {
|
|
17556
|
-
const ret = wasm.sp3_continuityVerdict(this.__wbg_ptr, from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m);
|
|
17615
|
+
continuityVerdict(from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m, gap_threshold_factor) {
|
|
17616
|
+
const ret = wasm.sp3_continuityVerdict(this.__wbg_ptr, from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m, gap_threshold_factor);
|
|
17557
17617
|
if (ret[2]) {
|
|
17558
17618
|
throw takeFromExternrefTable0(ret[1]);
|
|
17559
17619
|
}
|
|
@@ -17696,6 +17756,14 @@ class Sp3 {
|
|
|
17696
17756
|
}
|
|
17697
17757
|
return FdeSolution.__wrap(ret[0]);
|
|
17698
17758
|
}
|
|
17759
|
+
/**
|
|
17760
|
+
* SP3 interpolation gap threshold factor carried by this product.
|
|
17761
|
+
* @returns {number}
|
|
17762
|
+
*/
|
|
17763
|
+
get gapThresholdFactor() {
|
|
17764
|
+
const ret = wasm.sp3_gapThresholdFactor(this.__wbg_ptr);
|
|
17765
|
+
return ret;
|
|
17766
|
+
}
|
|
17699
17767
|
/**
|
|
17700
17768
|
* Interpolate `satellite`'s position and clock at each query epoch.
|
|
17701
17769
|
*
|
|
@@ -17758,10 +17826,14 @@ class Sp3 {
|
|
|
17758
17826
|
}
|
|
17759
17827
|
/**
|
|
17760
17828
|
* Build deterministic precise-interpolant artifact bytes from this SP3 product.
|
|
17829
|
+
*
|
|
17830
|
+
* `gapThresholdFactor` optionally overrides the product's interpolation policy;
|
|
17831
|
+
* `null` or omitted retains this product's active policy.
|
|
17832
|
+
* @param {number | null} [gap_threshold_factor]
|
|
17761
17833
|
* @returns {Uint8Array}
|
|
17762
17834
|
*/
|
|
17763
|
-
preciseInterpolantArtifactBytes() {
|
|
17764
|
-
const ret = wasm.sp3_preciseInterpolantArtifactBytes(this.__wbg_ptr);
|
|
17835
|
+
preciseInterpolantArtifactBytes(gap_threshold_factor) {
|
|
17836
|
+
const ret = wasm.sp3_preciseInterpolantArtifactBytes(this.__wbg_ptr, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
17765
17837
|
if (ret[3]) {
|
|
17766
17838
|
throw takeFromExternrefTable0(ret[2]);
|
|
17767
17839
|
}
|
|
@@ -17941,6 +18013,18 @@ class Sp3 {
|
|
|
17941
18013
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
17942
18014
|
}
|
|
17943
18015
|
}
|
|
18016
|
+
/**
|
|
18017
|
+
* Return a copy of this product with an explicit gap threshold factor.
|
|
18018
|
+
* @param {number} gap_threshold_factor
|
|
18019
|
+
* @returns {Sp3}
|
|
18020
|
+
*/
|
|
18021
|
+
withInterpolationOptions(gap_threshold_factor) {
|
|
18022
|
+
const ret = wasm.sp3_withInterpolationOptions(this.__wbg_ptr, gap_threshold_factor);
|
|
18023
|
+
if (ret[2]) {
|
|
18024
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18025
|
+
}
|
|
18026
|
+
return Sp3.__wrap(ret[0]);
|
|
18027
|
+
}
|
|
17944
18028
|
}
|
|
17945
18029
|
if (Symbol.dispose) Sp3.prototype[Symbol.dispose] = Sp3.prototype.free;
|
|
17946
18030
|
exports.Sp3 = Sp3;
|
|
@@ -26862,13 +26946,17 @@ exports.loadRinexObs = loadRinexObs;
|
|
|
26862
26946
|
/**
|
|
26863
26947
|
* Parse an SP3-c or SP3-d byte buffer (the full, already-decompressed file)
|
|
26864
26948
|
* into a precise-ephemeris product. Throws an `Error` on malformed input.
|
|
26949
|
+
*
|
|
26950
|
+
* `gapThresholdFactor` optionally configures the product-carried SP3 coverage-gap
|
|
26951
|
+
* interpolation policy; omitted or `null` leaves the core default (1.5).
|
|
26865
26952
|
* @param {Uint8Array} bytes
|
|
26953
|
+
* @param {number | null} [gap_threshold_factor]
|
|
26866
26954
|
* @returns {Sp3}
|
|
26867
26955
|
*/
|
|
26868
|
-
function loadSp3(bytes) {
|
|
26956
|
+
function loadSp3(bytes, gap_threshold_factor) {
|
|
26869
26957
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
26870
26958
|
const len0 = WASM_VECTOR_LEN;
|
|
26871
|
-
const ret = wasm.loadSp3(ptr0, len0);
|
|
26959
|
+
const ret = wasm.loadSp3(ptr0, len0, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
26872
26960
|
if (ret[2]) {
|
|
26873
26961
|
throw takeFromExternrefTable0(ret[1]);
|
|
26874
26962
|
}
|
|
@@ -28772,10 +28860,11 @@ exports.pppCorrectionsWithCodeBias = pppCorrectionsWithCodeBias;
|
|
|
28772
28860
|
* (empty input, a single-sample satellite, non-monotonic epochs, a non-finite
|
|
28773
28861
|
* sample). Delegates to `sidereon_core::sp3::PreciseEphemerisSamples::from_samples`.
|
|
28774
28862
|
* @param {any} samples
|
|
28863
|
+
* @param {number | null} [gap_threshold_factor]
|
|
28775
28864
|
* @returns {PreciseEphemerisSampleSource}
|
|
28776
28865
|
*/
|
|
28777
|
-
function preciseEphemerisSamplesFromSamples(samples) {
|
|
28778
|
-
const ret = wasm.preciseEphemerisSamplesFromSamples(samples);
|
|
28866
|
+
function preciseEphemerisSamplesFromSamples(samples, gap_threshold_factor) {
|
|
28867
|
+
const ret = wasm.preciseEphemerisSamplesFromSamples(samples, !isLikeNone(gap_threshold_factor), isLikeNone(gap_threshold_factor) ? 0 : gap_threshold_factor);
|
|
28779
28868
|
if (ret[2]) {
|
|
28780
28869
|
throw takeFromExternrefTable0(ret[1]);
|
|
28781
28870
|
}
|
|
Binary file
|