@neilberkman/sidereon 0.10.1 → 0.11.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/package.json +1 -1
- package/pkg/sidereon.d.ts +1713 -1109
- package/pkg/sidereon.js +1806 -63
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1234 -1104
- package/pkg-node/sidereon.d.ts +479 -5
- package/pkg-node/sidereon.js +1853 -64
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1234 -1104
- package/types/sidereon-extra.d.ts +578 -11
package/pkg-node/sidereon.js
CHANGED
|
@@ -734,6 +734,25 @@ class BiasSet {
|
|
|
734
734
|
if (Symbol.dispose) BiasSet.prototype[Symbol.dispose] = BiasSet.prototype.free;
|
|
735
735
|
exports.BiasSet = BiasSet;
|
|
736
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Broadcast group-delay term selector.
|
|
739
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
|
|
740
|
+
*/
|
|
741
|
+
const BroadcastDelayTerm = Object.freeze({
|
|
742
|
+
GpsTgd: 0, "0": "GpsTgd",
|
|
743
|
+
GalileoBgdE5aE1: 1, "1": "GalileoBgdE5aE1",
|
|
744
|
+
GalileoBgdE5bE1: 2, "2": "GalileoBgdE5bE1",
|
|
745
|
+
BeidouTgd1: 3, "3": "BeidouTgd1",
|
|
746
|
+
BeidouTgd2: 4, "4": "BeidouTgd2",
|
|
747
|
+
CnavIscL1Ca: 5, "5": "CnavIscL1Ca",
|
|
748
|
+
CnavIscL2C: 6, "6": "CnavIscL2C",
|
|
749
|
+
CnavIscL5I5: 7, "7": "CnavIscL5I5",
|
|
750
|
+
CnavIscL5Q5: 8, "8": "CnavIscL5Q5",
|
|
751
|
+
CnavIscL1Cd: 9, "9": "CnavIscL1Cd",
|
|
752
|
+
CnavIscL1Cp: 10, "10": "CnavIscL1Cp",
|
|
753
|
+
});
|
|
754
|
+
exports.BroadcastDelayTerm = BroadcastDelayTerm;
|
|
755
|
+
|
|
737
756
|
/**
|
|
738
757
|
* A parsed broadcast ephemeris store from a RINEX NAV file. `records` are the
|
|
739
758
|
* usable GPS/Galileo/BeiDou records selected by the core default SPP policy.
|
|
@@ -815,6 +834,22 @@ class BroadcastEphemeris {
|
|
|
815
834
|
}
|
|
816
835
|
return takeFromExternrefTable0(ret[0]);
|
|
817
836
|
}
|
|
837
|
+
/**
|
|
838
|
+
* Evaluate the store-selected broadcast state for `satellite` at GPST-like
|
|
839
|
+
* J2000 seconds. Returns `undefined` when no usable record covers the query.
|
|
840
|
+
* @param {string} satellite
|
|
841
|
+
* @param {number} t_j2000_s
|
|
842
|
+
* @returns {BroadcastStoreEvaluation | undefined}
|
|
843
|
+
*/
|
|
844
|
+
evaluate(satellite, t_j2000_s) {
|
|
845
|
+
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
846
|
+
const len0 = WASM_VECTOR_LEN;
|
|
847
|
+
const ret = wasm.broadcastephemeris_evaluate(this.__wbg_ptr, ptr0, len0, t_j2000_s);
|
|
848
|
+
if (ret[2]) {
|
|
849
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
850
|
+
}
|
|
851
|
+
return ret[0] === 0 ? undefined : BroadcastStoreEvaluation.__wrap(ret[0]);
|
|
852
|
+
}
|
|
818
853
|
/**
|
|
819
854
|
* Number of usable GLONASS records.
|
|
820
855
|
* @returns {number}
|
|
@@ -1015,6 +1050,46 @@ class BroadcastEvaluation {
|
|
|
1015
1050
|
if (Symbol.dispose) BroadcastEvaluation.prototype[Symbol.dispose] = BroadcastEvaluation.prototype.free;
|
|
1016
1051
|
exports.BroadcastEvaluation = BroadcastEvaluation;
|
|
1017
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Per-signal broadcast group-delay terms retained from a NAV record.
|
|
1055
|
+
*/
|
|
1056
|
+
class BroadcastGroupDelaysJs {
|
|
1057
|
+
static __wrap(ptr) {
|
|
1058
|
+
const obj = Object.create(BroadcastGroupDelaysJs.prototype);
|
|
1059
|
+
obj.__wbg_ptr = ptr;
|
|
1060
|
+
BroadcastGroupDelaysJsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1061
|
+
return obj;
|
|
1062
|
+
}
|
|
1063
|
+
__destroy_into_raw() {
|
|
1064
|
+
const ptr = this.__wbg_ptr;
|
|
1065
|
+
this.__wbg_ptr = 0;
|
|
1066
|
+
BroadcastGroupDelaysJsFinalization.unregister(this);
|
|
1067
|
+
return ptr;
|
|
1068
|
+
}
|
|
1069
|
+
free() {
|
|
1070
|
+
const ptr = this.__destroy_into_raw();
|
|
1071
|
+
wasm.__wbg_broadcastgroupdelaysjs_free(ptr, 0);
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* @param {CnavSignal} signal
|
|
1075
|
+
* @returns {number | undefined}
|
|
1076
|
+
*/
|
|
1077
|
+
cnavSingleFrequencyCorrectionS(signal) {
|
|
1078
|
+
const ret = wasm.broadcastgroupdelaysjs_cnavSingleFrequencyCorrectionS(this.__wbg_ptr, signal);
|
|
1079
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* @param {BroadcastDelayTerm} term
|
|
1083
|
+
* @returns {number | undefined}
|
|
1084
|
+
*/
|
|
1085
|
+
get(term) {
|
|
1086
|
+
const ret = wasm.broadcastgroupdelaysjs_get(this.__wbg_ptr, term);
|
|
1087
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (Symbol.dispose) BroadcastGroupDelaysJs.prototype[Symbol.dispose] = BroadcastGroupDelaysJs.prototype.free;
|
|
1091
|
+
exports.BroadcastGroupDelaysJs = BroadcastGroupDelaysJs;
|
|
1092
|
+
|
|
1018
1093
|
/**
|
|
1019
1094
|
* One GPS, Galileo, or BeiDou broadcast ephemeris record from RINEX NAV.
|
|
1020
1095
|
*/
|
|
@@ -1043,6 +1118,14 @@ class BroadcastRecordJs {
|
|
|
1043
1118
|
const ret = wasm.broadcastrecordjs_clock(this.__wbg_ptr);
|
|
1044
1119
|
return ClockPolynomialJs.__wrap(ret);
|
|
1045
1120
|
}
|
|
1121
|
+
/**
|
|
1122
|
+
* CNAV-family extension fields, or `undefined` for legacy records.
|
|
1123
|
+
* @returns {CnavParametersJs | undefined}
|
|
1124
|
+
*/
|
|
1125
|
+
get cnav() {
|
|
1126
|
+
const ret = wasm.broadcastrecordjs_cnav(this.__wbg_ptr);
|
|
1127
|
+
return ret === 0 ? undefined : CnavParametersJs.__wrap(ret);
|
|
1128
|
+
}
|
|
1046
1129
|
/**
|
|
1047
1130
|
* Keplerian orbital elements in SI units.
|
|
1048
1131
|
* @returns {KeplerianElementsJs}
|
|
@@ -1081,6 +1164,30 @@ class BroadcastRecordJs {
|
|
|
1081
1164
|
const ret = wasm.broadcastrecordjs_groupDelayS(this.__wbg_ptr);
|
|
1082
1165
|
return ret;
|
|
1083
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Broadcast group-delay terms carried by this record.
|
|
1169
|
+
* @returns {BroadcastGroupDelaysJs}
|
|
1170
|
+
*/
|
|
1171
|
+
get groupDelays() {
|
|
1172
|
+
const ret = wasm.broadcastrecordjs_groupDelays(this.__wbg_ptr);
|
|
1173
|
+
return BroadcastGroupDelaysJs.__wrap(ret);
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Native issue-of-data value.
|
|
1177
|
+
* @returns {number}
|
|
1178
|
+
*/
|
|
1179
|
+
get issue() {
|
|
1180
|
+
const ret = wasm.broadcastrecordjs_issue(this.__wbg_ptr);
|
|
1181
|
+
return ret >>> 0;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Message family attached to the issue-of-data value.
|
|
1185
|
+
* @returns {NavMessage}
|
|
1186
|
+
*/
|
|
1187
|
+
get issueMessage() {
|
|
1188
|
+
const ret = wasm.broadcastrecordjs_issueMessage(this.__wbg_ptr);
|
|
1189
|
+
return ret;
|
|
1190
|
+
}
|
|
1084
1191
|
/**
|
|
1085
1192
|
* Broadcast message type.
|
|
1086
1193
|
* @returns {NavMessage}
|
|
@@ -1133,6 +1240,68 @@ class BroadcastRecordJs {
|
|
|
1133
1240
|
if (Symbol.dispose) BroadcastRecordJs.prototype[Symbol.dispose] = BroadcastRecordJs.prototype.free;
|
|
1134
1241
|
exports.BroadcastRecordJs = BroadcastRecordJs;
|
|
1135
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* Store-level broadcast ephemeris evaluation at a J2000 query epoch.
|
|
1245
|
+
*/
|
|
1246
|
+
class BroadcastStoreEvaluation {
|
|
1247
|
+
static __wrap(ptr) {
|
|
1248
|
+
const obj = Object.create(BroadcastStoreEvaluation.prototype);
|
|
1249
|
+
obj.__wbg_ptr = ptr;
|
|
1250
|
+
BroadcastStoreEvaluationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1251
|
+
return obj;
|
|
1252
|
+
}
|
|
1253
|
+
__destroy_into_raw() {
|
|
1254
|
+
const ptr = this.__wbg_ptr;
|
|
1255
|
+
this.__wbg_ptr = 0;
|
|
1256
|
+
BroadcastStoreEvaluationFinalization.unregister(this);
|
|
1257
|
+
return ptr;
|
|
1258
|
+
}
|
|
1259
|
+
free() {
|
|
1260
|
+
const ptr = this.__destroy_into_raw();
|
|
1261
|
+
wasm.__wbg_broadcaststoreevaluation_free(ptr, 0);
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* @returns {number}
|
|
1265
|
+
*/
|
|
1266
|
+
get clockS() {
|
|
1267
|
+
const ret = wasm.broadcaststoreevaluation_clockS(this.__wbg_ptr);
|
|
1268
|
+
return ret;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @returns {Float64Array}
|
|
1272
|
+
*/
|
|
1273
|
+
get positionM() {
|
|
1274
|
+
const ret = wasm.broadcaststoreevaluation_positionM(this.__wbg_ptr);
|
|
1275
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
1276
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
1277
|
+
return v1;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* @returns {string}
|
|
1281
|
+
*/
|
|
1282
|
+
get satellite() {
|
|
1283
|
+
let deferred1_0;
|
|
1284
|
+
let deferred1_1;
|
|
1285
|
+
try {
|
|
1286
|
+
const ret = wasm.broadcaststoreevaluation_satellite(this.__wbg_ptr);
|
|
1287
|
+
deferred1_0 = ret[0];
|
|
1288
|
+
deferred1_1 = ret[1];
|
|
1289
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1290
|
+
} finally {
|
|
1291
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* @returns {number}
|
|
1296
|
+
*/
|
|
1297
|
+
get tJ2000S() {
|
|
1298
|
+
const ret = wasm.broadcaststoreevaluation_tJ2000S(this.__wbg_ptr);
|
|
1299
|
+
return ret;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
if (Symbol.dispose) BroadcastStoreEvaluation.prototype[Symbol.dispose] = BroadcastStoreEvaluation.prototype.free;
|
|
1303
|
+
exports.BroadcastStoreEvaluation = BroadcastStoreEvaluation;
|
|
1304
|
+
|
|
1136
1305
|
/**
|
|
1137
1306
|
* A canonical GNSS carrier band. The JS value matches the variant order below.
|
|
1138
1307
|
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15}
|
|
@@ -2279,6 +2448,126 @@ class ClockSeries {
|
|
|
2279
2448
|
if (Symbol.dispose) ClockSeries.prototype[Symbol.dispose] = ClockSeries.prototype.free;
|
|
2280
2449
|
exports.ClockSeries = ClockSeries;
|
|
2281
2450
|
|
|
2451
|
+
/**
|
|
2452
|
+
* CNAV/CNAV-2 fields with no legacy LNAV counterpart.
|
|
2453
|
+
*/
|
|
2454
|
+
class CnavParametersJs {
|
|
2455
|
+
static __wrap(ptr) {
|
|
2456
|
+
const obj = Object.create(CnavParametersJs.prototype);
|
|
2457
|
+
obj.__wbg_ptr = ptr;
|
|
2458
|
+
CnavParametersJsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2459
|
+
return obj;
|
|
2460
|
+
}
|
|
2461
|
+
__destroy_into_raw() {
|
|
2462
|
+
const ptr = this.__wbg_ptr;
|
|
2463
|
+
this.__wbg_ptr = 0;
|
|
2464
|
+
CnavParametersJsFinalization.unregister(this);
|
|
2465
|
+
return ptr;
|
|
2466
|
+
}
|
|
2467
|
+
free() {
|
|
2468
|
+
const ptr = this.__destroy_into_raw();
|
|
2469
|
+
wasm.__wbg_cnavparametersjs_free(ptr, 0);
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* @returns {number}
|
|
2473
|
+
*/
|
|
2474
|
+
get adotMS() {
|
|
2475
|
+
const ret = wasm.cnavparametersjs_adotMS(this.__wbg_ptr);
|
|
2476
|
+
return ret;
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* @returns {number}
|
|
2480
|
+
*/
|
|
2481
|
+
get deltaN0DotRadS2() {
|
|
2482
|
+
const ret = wasm.cnavparametersjs_deltaN0DotRadS2(this.__wbg_ptr);
|
|
2483
|
+
return ret;
|
|
2484
|
+
}
|
|
2485
|
+
/**
|
|
2486
|
+
* @returns {number | undefined}
|
|
2487
|
+
*/
|
|
2488
|
+
get flags() {
|
|
2489
|
+
const ret = wasm.cnavparametersjs_flags(this.__wbg_ptr);
|
|
2490
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2491
|
+
}
|
|
2492
|
+
/**
|
|
2493
|
+
* @returns {number}
|
|
2494
|
+
*/
|
|
2495
|
+
get topTowS() {
|
|
2496
|
+
const ret = wasm.cnavparametersjs_topTowS(this.__wbg_ptr);
|
|
2497
|
+
return ret;
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* @returns {number}
|
|
2501
|
+
*/
|
|
2502
|
+
get topWeek() {
|
|
2503
|
+
const ret = wasm.cnavparametersjs_topWeek(this.__wbg_ptr);
|
|
2504
|
+
return ret >>> 0;
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* @returns {number}
|
|
2508
|
+
*/
|
|
2509
|
+
get transmissionTimeSow() {
|
|
2510
|
+
const ret = wasm.cnavparametersjs_transmissionTimeSow(this.__wbg_ptr);
|
|
2511
|
+
return ret;
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* @returns {number}
|
|
2515
|
+
*/
|
|
2516
|
+
get uraEdIndex() {
|
|
2517
|
+
const ret = wasm.cnavparametersjs_uraEdIndex(this.__wbg_ptr);
|
|
2518
|
+
return ret;
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* @returns {number}
|
|
2522
|
+
*/
|
|
2523
|
+
get uraNed0Index() {
|
|
2524
|
+
const ret = wasm.cnavparametersjs_uraNed0Index(this.__wbg_ptr);
|
|
2525
|
+
return ret;
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* @returns {number}
|
|
2529
|
+
*/
|
|
2530
|
+
get uraNed1Index() {
|
|
2531
|
+
const ret = wasm.cnavparametersjs_uraNed1Index(this.__wbg_ptr);
|
|
2532
|
+
return ret;
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* @returns {number}
|
|
2536
|
+
*/
|
|
2537
|
+
get uraNed2Index() {
|
|
2538
|
+
const ret = wasm.cnavparametersjs_uraNed2Index(this.__wbg_ptr);
|
|
2539
|
+
return ret;
|
|
2540
|
+
}
|
|
2541
|
+
/**
|
|
2542
|
+
* @param {number} week
|
|
2543
|
+
* @param {number} tow_s
|
|
2544
|
+
* @returns {number | undefined}
|
|
2545
|
+
*/
|
|
2546
|
+
uraNedM(week, tow_s) {
|
|
2547
|
+
const ret = wasm.cnavparametersjs_uraNedM(this.__wbg_ptr, week, tow_s);
|
|
2548
|
+
if (ret[3]) {
|
|
2549
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2550
|
+
}
|
|
2551
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
if (Symbol.dispose) CnavParametersJs.prototype[Symbol.dispose] = CnavParametersJs.prototype.free;
|
|
2555
|
+
exports.CnavParametersJs = CnavParametersJs;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* GPS/QZSS signal used for CNAV inter-signal correction accessors.
|
|
2559
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
2560
|
+
*/
|
|
2561
|
+
const CnavSignal = Object.freeze({
|
|
2562
|
+
L1Ca: 0, "0": "L1Ca",
|
|
2563
|
+
L2C: 1, "1": "L2C",
|
|
2564
|
+
L5I5: 2, "2": "L5I5",
|
|
2565
|
+
L5Q5: 3, "3": "L5Q5",
|
|
2566
|
+
L1Cp: 4, "4": "L1Cp",
|
|
2567
|
+
L1Cd: 5, "5": "L1Cd",
|
|
2568
|
+
});
|
|
2569
|
+
exports.CnavSignal = CnavSignal;
|
|
2570
|
+
|
|
2282
2571
|
/**
|
|
2283
2572
|
* Collision-probability result and encounter-plane summary.
|
|
2284
2573
|
*/
|
|
@@ -2631,6 +2920,151 @@ class CorrelationResult {
|
|
|
2631
2920
|
if (Symbol.dispose) CorrelationResult.prototype[Symbol.dispose] = CorrelationResult.prototype.free;
|
|
2632
2921
|
exports.CorrelationResult = CorrelationResult;
|
|
2633
2922
|
|
|
2923
|
+
/**
|
|
2924
|
+
* Propagated state plus covariance nodes.
|
|
2925
|
+
*/
|
|
2926
|
+
class CovarianceEphemeris {
|
|
2927
|
+
static __wrap(ptr) {
|
|
2928
|
+
const obj = Object.create(CovarianceEphemeris.prototype);
|
|
2929
|
+
obj.__wbg_ptr = ptr;
|
|
2930
|
+
CovarianceEphemerisFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2931
|
+
return obj;
|
|
2932
|
+
}
|
|
2933
|
+
__destroy_into_raw() {
|
|
2934
|
+
const ptr = this.__wbg_ptr;
|
|
2935
|
+
this.__wbg_ptr = 0;
|
|
2936
|
+
CovarianceEphemerisFinalization.unregister(this);
|
|
2937
|
+
return ptr;
|
|
2938
|
+
}
|
|
2939
|
+
free() {
|
|
2940
|
+
const ptr = this.__destroy_into_raw();
|
|
2941
|
+
wasm.__wbg_covarianceephemeris_free(ptr, 0);
|
|
2942
|
+
}
|
|
2943
|
+
/**
|
|
2944
|
+
* @returns {Float64Array}
|
|
2945
|
+
*/
|
|
2946
|
+
get covariance() {
|
|
2947
|
+
const ret = wasm.covarianceephemeris_covariance(this.__wbg_ptr);
|
|
2948
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
2949
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
2950
|
+
return v1;
|
|
2951
|
+
}
|
|
2952
|
+
/**
|
|
2953
|
+
* @param {number} epoch_tdb_seconds
|
|
2954
|
+
* @returns {Float64Array}
|
|
2955
|
+
*/
|
|
2956
|
+
covarianceAt(epoch_tdb_seconds) {
|
|
2957
|
+
const ret = wasm.covarianceephemeris_covarianceAt(this.__wbg_ptr, epoch_tdb_seconds);
|
|
2958
|
+
if (ret[3]) {
|
|
2959
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2960
|
+
}
|
|
2961
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
2962
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
2963
|
+
return v1;
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* @returns {number}
|
|
2967
|
+
*/
|
|
2968
|
+
get epochCount() {
|
|
2969
|
+
const ret = wasm.covarianceephemeris_epochCount(this.__wbg_ptr);
|
|
2970
|
+
return ret >>> 0;
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* @returns {string}
|
|
2974
|
+
*/
|
|
2975
|
+
get frame() {
|
|
2976
|
+
let deferred1_0;
|
|
2977
|
+
let deferred1_1;
|
|
2978
|
+
try {
|
|
2979
|
+
const ret = wasm.covarianceephemeris_frame(this.__wbg_ptr);
|
|
2980
|
+
deferred1_0 = ret[0];
|
|
2981
|
+
deferred1_1 = ret[1];
|
|
2982
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2983
|
+
} finally {
|
|
2984
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* @returns {Float64Array}
|
|
2989
|
+
*/
|
|
2990
|
+
get positionKm() {
|
|
2991
|
+
const ret = wasm.covarianceephemeris_positionKm(this.__wbg_ptr);
|
|
2992
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
2993
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
2994
|
+
return v1;
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* @returns {Float64Array}
|
|
2998
|
+
*/
|
|
2999
|
+
get timesS() {
|
|
3000
|
+
const ret = wasm.covarianceephemeris_timesS(this.__wbg_ptr);
|
|
3001
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
3002
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
3003
|
+
return v1;
|
|
3004
|
+
}
|
|
3005
|
+
/**
|
|
3006
|
+
* @returns {Float64Array}
|
|
3007
|
+
*/
|
|
3008
|
+
get velocityKmS() {
|
|
3009
|
+
const ret = wasm.covarianceephemeris_velocityKmS(this.__wbg_ptr);
|
|
3010
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
3011
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
3012
|
+
return v1;
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
if (Symbol.dispose) CovarianceEphemeris.prototype[Symbol.dispose] = CovarianceEphemeris.prototype.free;
|
|
3016
|
+
exports.CovarianceEphemeris = CovarianceEphemeris;
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Frame a 6x6 state covariance is expressed in.
|
|
3020
|
+
* @enum {0 | 1}
|
|
3021
|
+
*/
|
|
3022
|
+
const CovarianceFrame = Object.freeze({
|
|
3023
|
+
Inertial: 0, "0": "Inertial",
|
|
3024
|
+
Rtn: 1, "1": "Rtn",
|
|
3025
|
+
});
|
|
3026
|
+
exports.CovarianceFrame = CovarianceFrame;
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* Covariances returned by explicit STM transport.
|
|
3030
|
+
*/
|
|
3031
|
+
class CovarianceTransportResult {
|
|
3032
|
+
static __wrap(ptr) {
|
|
3033
|
+
const obj = Object.create(CovarianceTransportResult.prototype);
|
|
3034
|
+
obj.__wbg_ptr = ptr;
|
|
3035
|
+
CovarianceTransportResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3036
|
+
return obj;
|
|
3037
|
+
}
|
|
3038
|
+
__destroy_into_raw() {
|
|
3039
|
+
const ptr = this.__wbg_ptr;
|
|
3040
|
+
this.__wbg_ptr = 0;
|
|
3041
|
+
CovarianceTransportResultFinalization.unregister(this);
|
|
3042
|
+
return ptr;
|
|
3043
|
+
}
|
|
3044
|
+
free() {
|
|
3045
|
+
const ptr = this.__destroy_into_raw();
|
|
3046
|
+
wasm.__wbg_covariancetransportresult_free(ptr, 0);
|
|
3047
|
+
}
|
|
3048
|
+
/**
|
|
3049
|
+
* @returns {Float64Array}
|
|
3050
|
+
*/
|
|
3051
|
+
get covariance() {
|
|
3052
|
+
const ret = wasm.covariancetransportresult_covariance(this.__wbg_ptr);
|
|
3053
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
3054
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
3055
|
+
return v1;
|
|
3056
|
+
}
|
|
3057
|
+
/**
|
|
3058
|
+
* @returns {number}
|
|
3059
|
+
*/
|
|
3060
|
+
get nodeCount() {
|
|
3061
|
+
const ret = wasm.covariancetransportresult_nodeCount(this.__wbg_ptr);
|
|
3062
|
+
return ret >>> 0;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
if (Symbol.dispose) CovarianceTransportResult.prototype[Symbol.dispose] = CovarianceTransportResult.prototype.free;
|
|
3066
|
+
exports.CovarianceTransportResult = CovarianceTransportResult;
|
|
3067
|
+
|
|
2634
3068
|
/**
|
|
2635
3069
|
* A computed look-angle grid for a set of satellites and ground stations at one
|
|
2636
3070
|
* epoch. Build with [`coverageLookAngles`].
|
|
@@ -4034,6 +4468,42 @@ class GeoidGrid {
|
|
|
4034
4468
|
const ptr = this.__destroy_into_raw();
|
|
4035
4469
|
wasm.__wbg_geoidgrid_free(ptr, 0);
|
|
4036
4470
|
}
|
|
4471
|
+
/**
|
|
4472
|
+
* Ellipsoidal height from orthometric height and degrees.
|
|
4473
|
+
* @param {number} orthometric_height_m
|
|
4474
|
+
* @param {number} lat_deg
|
|
4475
|
+
* @param {number} lon_deg
|
|
4476
|
+
* @returns {number}
|
|
4477
|
+
*/
|
|
4478
|
+
ellipsoidalHeightDeg(orthometric_height_m, lat_deg, lon_deg) {
|
|
4479
|
+
const ret = wasm.geoidgrid_ellipsoidalHeightDeg(this.__wbg_ptr, orthometric_height_m, lat_deg, lon_deg);
|
|
4480
|
+
return ret;
|
|
4481
|
+
}
|
|
4482
|
+
/**
|
|
4483
|
+
* Ellipsoidal height from orthometric height and radians.
|
|
4484
|
+
* @param {number} orthometric_height_m
|
|
4485
|
+
* @param {number} lat_rad
|
|
4486
|
+
* @param {number} lon_rad
|
|
4487
|
+
* @returns {number}
|
|
4488
|
+
*/
|
|
4489
|
+
ellipsoidalHeightRad(orthometric_height_m, lat_rad, lon_rad) {
|
|
4490
|
+
const ret = wasm.geoidgrid_ellipsoidalHeightRad(this.__wbg_ptr, orthometric_height_m, lat_rad, lon_rad);
|
|
4491
|
+
return ret;
|
|
4492
|
+
}
|
|
4493
|
+
/**
|
|
4494
|
+
* Parse an EGM96 `WW15MGH.DAC` byte buffer into a full-resolution grid.
|
|
4495
|
+
* @param {Uint8Array} bytes
|
|
4496
|
+
* @returns {GeoidGrid}
|
|
4497
|
+
*/
|
|
4498
|
+
static fromEgm96Dac(bytes) {
|
|
4499
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
4500
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4501
|
+
const ret = wasm.geoidgrid_fromEgm96Dac(ptr0, len0);
|
|
4502
|
+
if (ret[2]) {
|
|
4503
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4504
|
+
}
|
|
4505
|
+
return GeoidGrid.__wrap(ret[0]);
|
|
4506
|
+
}
|
|
4037
4507
|
/**
|
|
4038
4508
|
* Parse a grid from the documented whitespace-delimited text format (a
|
|
4039
4509
|
* six-field header `lat_min lon_min dlat dlon n_lat n_lon` followed by
|
|
@@ -4077,6 +4547,28 @@ class GeoidGrid {
|
|
|
4077
4547
|
GeoidGridFinalization.register(this, this.__wbg_ptr, this);
|
|
4078
4548
|
return this;
|
|
4079
4549
|
}
|
|
4550
|
+
/**
|
|
4551
|
+
* Orthometric height from ellipsoidal height and degrees.
|
|
4552
|
+
* @param {number} ellipsoidal_height_m
|
|
4553
|
+
* @param {number} lat_deg
|
|
4554
|
+
* @param {number} lon_deg
|
|
4555
|
+
* @returns {number}
|
|
4556
|
+
*/
|
|
4557
|
+
orthometricHeightDeg(ellipsoidal_height_m, lat_deg, lon_deg) {
|
|
4558
|
+
const ret = wasm.geoidgrid_orthometricHeightDeg(this.__wbg_ptr, ellipsoidal_height_m, lat_deg, lon_deg);
|
|
4559
|
+
return ret;
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Orthometric height from ellipsoidal height and radians.
|
|
4563
|
+
* @param {number} ellipsoidal_height_m
|
|
4564
|
+
* @param {number} lat_rad
|
|
4565
|
+
* @param {number} lon_rad
|
|
4566
|
+
* @returns {number}
|
|
4567
|
+
*/
|
|
4568
|
+
orthometricHeightRad(ellipsoidal_height_m, lat_rad, lon_rad) {
|
|
4569
|
+
const ret = wasm.geoidgrid_orthometricHeightRad(this.__wbg_ptr, ellipsoidal_height_m, lat_rad, lon_rad);
|
|
4570
|
+
return ret;
|
|
4571
|
+
}
|
|
4080
4572
|
/**
|
|
4081
4573
|
* Bilinearly interpolated undulation `N` (metres) at a geodetic position in
|
|
4082
4574
|
* degrees (latitude positive north, longitude positive east).
|
|
@@ -4099,6 +4591,38 @@ class GeoidGrid {
|
|
|
4099
4591
|
const ret = wasm.geoidgrid_undulationRad(this.__wbg_ptr, lat_rad, lon_rad);
|
|
4100
4592
|
return ret;
|
|
4101
4593
|
}
|
|
4594
|
+
/**
|
|
4595
|
+
* Batch undulation lookup for flat `[latDeg, lonDeg, ...]` pairs.
|
|
4596
|
+
* @param {Float64Array} points_deg
|
|
4597
|
+
* @returns {Float64Array}
|
|
4598
|
+
*/
|
|
4599
|
+
undulationsDeg(points_deg) {
|
|
4600
|
+
const ptr0 = passArrayF64ToWasm0(points_deg, wasm.__wbindgen_malloc);
|
|
4601
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4602
|
+
const ret = wasm.geoidgrid_undulationsDeg(this.__wbg_ptr, ptr0, len0);
|
|
4603
|
+
if (ret[3]) {
|
|
4604
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4605
|
+
}
|
|
4606
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
4607
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
4608
|
+
return v2;
|
|
4609
|
+
}
|
|
4610
|
+
/**
|
|
4611
|
+
* Batch undulation lookup for flat `[latRad, lonRad, ...]` pairs.
|
|
4612
|
+
* @param {Float64Array} points_rad
|
|
4613
|
+
* @returns {Float64Array}
|
|
4614
|
+
*/
|
|
4615
|
+
undulationsRad(points_rad) {
|
|
4616
|
+
const ptr0 = passArrayF64ToWasm0(points_rad, wasm.__wbindgen_malloc);
|
|
4617
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4618
|
+
const ret = wasm.geoidgrid_undulationsRad(this.__wbg_ptr, ptr0, len0);
|
|
4619
|
+
if (ret[3]) {
|
|
4620
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4621
|
+
}
|
|
4622
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
4623
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
4624
|
+
return v2;
|
|
4625
|
+
}
|
|
4102
4626
|
}
|
|
4103
4627
|
if (Symbol.dispose) GeoidGrid.prototype[Symbol.dispose] = GeoidGrid.prototype.free;
|
|
4104
4628
|
exports.GeoidGrid = GeoidGrid;
|
|
@@ -6611,11 +7135,295 @@ class NamedTle {
|
|
|
6611
7135
|
* marker stripped. Empty string for a bare 2-line element set.
|
|
6612
7136
|
* @returns {string}
|
|
6613
7137
|
*/
|
|
6614
|
-
get name() {
|
|
7138
|
+
get name() {
|
|
7139
|
+
let deferred1_0;
|
|
7140
|
+
let deferred1_1;
|
|
7141
|
+
try {
|
|
7142
|
+
const ret = wasm.namedtle_name(this.__wbg_ptr);
|
|
7143
|
+
deferred1_0 = ret[0];
|
|
7144
|
+
deferred1_1 = ret[1];
|
|
7145
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
7146
|
+
} finally {
|
|
7147
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
7148
|
+
}
|
|
7149
|
+
}
|
|
7150
|
+
/**
|
|
7151
|
+
* The initialized two-line element set. Call `.propagate()` /
|
|
7152
|
+
* `.lookAngles()` / `.findPasses()` on it directly.
|
|
7153
|
+
* @returns {Tle}
|
|
7154
|
+
*/
|
|
7155
|
+
get tle() {
|
|
7156
|
+
const ret = wasm.namedtle_tle(this.__wbg_ptr);
|
|
7157
|
+
return Tle.__wrap(ret);
|
|
7158
|
+
}
|
|
7159
|
+
}
|
|
7160
|
+
if (Symbol.dispose) NamedTle.prototype[Symbol.dispose] = NamedTle.prototype.free;
|
|
7161
|
+
exports.NamedTle = NamedTle;
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* Which supported RINEX NAV message a broadcast record carries.
|
|
7165
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}
|
|
7166
|
+
*/
|
|
7167
|
+
const NavMessage = Object.freeze({
|
|
7168
|
+
/**
|
|
7169
|
+
* GPS legacy LNAV.
|
|
7170
|
+
*/
|
|
7171
|
+
GpsLnav: 0, "0": "GpsLnav",
|
|
7172
|
+
/**
|
|
7173
|
+
* GPS CNAV.
|
|
7174
|
+
*/
|
|
7175
|
+
GpsCnav: 1, "1": "GpsCnav",
|
|
7176
|
+
/**
|
|
7177
|
+
* GPS CNAV-2.
|
|
7178
|
+
*/
|
|
7179
|
+
GpsCnav2: 2, "2": "GpsCnav2",
|
|
7180
|
+
/**
|
|
7181
|
+
* QZSS CNAV.
|
|
7182
|
+
*/
|
|
7183
|
+
QzssCnav: 3, "3": "QzssCnav",
|
|
7184
|
+
/**
|
|
7185
|
+
* QZSS CNAV-2.
|
|
7186
|
+
*/
|
|
7187
|
+
QzssCnav2: 4, "4": "QzssCnav2",
|
|
7188
|
+
/**
|
|
7189
|
+
* Galileo I/NAV.
|
|
7190
|
+
*/
|
|
7191
|
+
GalileoInav: 5, "5": "GalileoInav",
|
|
7192
|
+
/**
|
|
7193
|
+
* Galileo F/NAV.
|
|
7194
|
+
*/
|
|
7195
|
+
GalileoFnav: 6, "6": "GalileoFnav",
|
|
7196
|
+
/**
|
|
7197
|
+
* BeiDou D1.
|
|
7198
|
+
*/
|
|
7199
|
+
BeidouD1: 7, "7": "BeidouD1",
|
|
7200
|
+
/**
|
|
7201
|
+
* BeiDou D2.
|
|
7202
|
+
*/
|
|
7203
|
+
BeidouD2: 8, "8": "BeidouD2",
|
|
7204
|
+
});
|
|
7205
|
+
exports.NavMessage = NavMessage;
|
|
7206
|
+
|
|
7207
|
+
/**
|
|
7208
|
+
* Streaming NMEA epoch accumulator.
|
|
7209
|
+
*/
|
|
7210
|
+
class NmeaAccumulator {
|
|
7211
|
+
__destroy_into_raw() {
|
|
7212
|
+
const ptr = this.__wbg_ptr;
|
|
7213
|
+
this.__wbg_ptr = 0;
|
|
7214
|
+
NmeaAccumulatorFinalization.unregister(this);
|
|
7215
|
+
return ptr;
|
|
7216
|
+
}
|
|
7217
|
+
free() {
|
|
7218
|
+
const ptr = this.__destroy_into_raw();
|
|
7219
|
+
wasm.__wbg_nmeaaccumulator_free(ptr, 0);
|
|
7220
|
+
}
|
|
7221
|
+
/**
|
|
7222
|
+
* @returns {any}
|
|
7223
|
+
*/
|
|
7224
|
+
finish() {
|
|
7225
|
+
const ret = wasm.nmeaaccumulator_finish(this.__wbg_ptr);
|
|
7226
|
+
if (ret[2]) {
|
|
7227
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7228
|
+
}
|
|
7229
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7230
|
+
}
|
|
7231
|
+
/**
|
|
7232
|
+
* @param {any} options
|
|
7233
|
+
*/
|
|
7234
|
+
constructor(options) {
|
|
7235
|
+
const ret = wasm.nmeaaccumulator_new(options);
|
|
7236
|
+
if (ret[2]) {
|
|
7237
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7238
|
+
}
|
|
7239
|
+
this.__wbg_ptr = ret[0];
|
|
7240
|
+
NmeaAccumulatorFinalization.register(this, this.__wbg_ptr, this);
|
|
7241
|
+
return this;
|
|
7242
|
+
}
|
|
7243
|
+
/**
|
|
7244
|
+
* @param {Uint8Array} bytes
|
|
7245
|
+
* @returns {any}
|
|
7246
|
+
*/
|
|
7247
|
+
push(bytes) {
|
|
7248
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
7249
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7250
|
+
const ret = wasm.nmeaaccumulator_push(this.__wbg_ptr, ptr0, len0);
|
|
7251
|
+
if (ret[2]) {
|
|
7252
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7253
|
+
}
|
|
7254
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7255
|
+
}
|
|
7256
|
+
/**
|
|
7257
|
+
* @returns {number}
|
|
7258
|
+
*/
|
|
7259
|
+
get retainedLength() {
|
|
7260
|
+
const ret = wasm.nmeaaccumulator_retainedLength(this.__wbg_ptr);
|
|
7261
|
+
return ret >>> 0;
|
|
7262
|
+
}
|
|
7263
|
+
}
|
|
7264
|
+
if (Symbol.dispose) NmeaAccumulator.prototype[Symbol.dispose] = NmeaAccumulator.prototype.free;
|
|
7265
|
+
exports.NmeaAccumulator = NmeaAccumulator;
|
|
7266
|
+
|
|
7267
|
+
/**
|
|
7268
|
+
* Parsed NMEA log.
|
|
7269
|
+
*/
|
|
7270
|
+
class NmeaParseResult {
|
|
7271
|
+
static __wrap(ptr) {
|
|
7272
|
+
const obj = Object.create(NmeaParseResult.prototype);
|
|
7273
|
+
obj.__wbg_ptr = ptr;
|
|
7274
|
+
NmeaParseResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
7275
|
+
return obj;
|
|
7276
|
+
}
|
|
7277
|
+
__destroy_into_raw() {
|
|
7278
|
+
const ptr = this.__wbg_ptr;
|
|
7279
|
+
this.__wbg_ptr = 0;
|
|
7280
|
+
NmeaParseResultFinalization.unregister(this);
|
|
7281
|
+
return ptr;
|
|
7282
|
+
}
|
|
7283
|
+
free() {
|
|
7284
|
+
const ptr = this.__destroy_into_raw();
|
|
7285
|
+
wasm.__wbg_nmeaparseresult_free(ptr, 0);
|
|
7286
|
+
}
|
|
7287
|
+
/**
|
|
7288
|
+
* @returns {any}
|
|
7289
|
+
*/
|
|
7290
|
+
get diagnostics() {
|
|
7291
|
+
const ret = wasm.nmeaparseresult_diagnostics(this.__wbg_ptr);
|
|
7292
|
+
if (ret[2]) {
|
|
7293
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7294
|
+
}
|
|
7295
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7296
|
+
}
|
|
7297
|
+
/**
|
|
7298
|
+
* @returns {number}
|
|
7299
|
+
*/
|
|
7300
|
+
get epochCount() {
|
|
7301
|
+
const ret = wasm.nmeaparseresult_epochCount(this.__wbg_ptr);
|
|
7302
|
+
return ret >>> 0;
|
|
7303
|
+
}
|
|
7304
|
+
/**
|
|
7305
|
+
* @returns {any}
|
|
7306
|
+
*/
|
|
7307
|
+
get epochs() {
|
|
7308
|
+
const ret = wasm.nmeaparseresult_epochs(this.__wbg_ptr);
|
|
7309
|
+
if (ret[2]) {
|
|
7310
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7311
|
+
}
|
|
7312
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7313
|
+
}
|
|
7314
|
+
/**
|
|
7315
|
+
* @returns {number}
|
|
7316
|
+
*/
|
|
7317
|
+
get sentenceCount() {
|
|
7318
|
+
const ret = wasm.nmeaparseresult_sentenceCount(this.__wbg_ptr);
|
|
7319
|
+
return ret >>> 0;
|
|
7320
|
+
}
|
|
7321
|
+
/**
|
|
7322
|
+
* @returns {any}
|
|
7323
|
+
*/
|
|
7324
|
+
get sentences() {
|
|
7325
|
+
const ret = wasm.nmeaparseresult_sentences(this.__wbg_ptr);
|
|
7326
|
+
if (ret[2]) {
|
|
7327
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7328
|
+
}
|
|
7329
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
if (Symbol.dispose) NmeaParseResult.prototype[Symbol.dispose] = NmeaParseResult.prototype.free;
|
|
7333
|
+
exports.NmeaParseResult = NmeaParseResult;
|
|
7334
|
+
|
|
7335
|
+
/**
|
|
7336
|
+
* Sans-IO NTRIP client state machine.
|
|
7337
|
+
*/
|
|
7338
|
+
class NtripClientMachine {
|
|
7339
|
+
__destroy_into_raw() {
|
|
7340
|
+
const ptr = this.__wbg_ptr;
|
|
7341
|
+
this.__wbg_ptr = 0;
|
|
7342
|
+
NtripClientMachineFinalization.unregister(this);
|
|
7343
|
+
return ptr;
|
|
7344
|
+
}
|
|
7345
|
+
free() {
|
|
7346
|
+
const ptr = this.__destroy_into_raw();
|
|
7347
|
+
wasm.__wbg_ntripclientmachine_free(ptr, 0);
|
|
7348
|
+
}
|
|
7349
|
+
/**
|
|
7350
|
+
* @returns {Uint8Array}
|
|
7351
|
+
*/
|
|
7352
|
+
connectionRequest() {
|
|
7353
|
+
const ret = wasm.ntripclientmachine_connectionRequest(this.__wbg_ptr);
|
|
7354
|
+
if (ret[3]) {
|
|
7355
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
7356
|
+
}
|
|
7357
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
7358
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
7359
|
+
return v1;
|
|
7360
|
+
}
|
|
7361
|
+
/**
|
|
7362
|
+
* @returns {any}
|
|
7363
|
+
*/
|
|
7364
|
+
finish() {
|
|
7365
|
+
const ret = wasm.ntripclientmachine_finish(this.__wbg_ptr);
|
|
7366
|
+
if (ret[2]) {
|
|
7367
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7368
|
+
}
|
|
7369
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7370
|
+
}
|
|
7371
|
+
/**
|
|
7372
|
+
* @param {number} now_s
|
|
7373
|
+
* @param {any} position
|
|
7374
|
+
* @param {number} utc_seconds_of_day
|
|
7375
|
+
* @returns {any}
|
|
7376
|
+
*/
|
|
7377
|
+
ggaMessage(now_s, position, utc_seconds_of_day) {
|
|
7378
|
+
const ret = wasm.ntripclientmachine_ggaMessage(this.__wbg_ptr, now_s, position, utc_seconds_of_day);
|
|
7379
|
+
if (ret[2]) {
|
|
7380
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7381
|
+
}
|
|
7382
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7383
|
+
}
|
|
7384
|
+
/**
|
|
7385
|
+
* @param {any} config
|
|
7386
|
+
*/
|
|
7387
|
+
constructor(config) {
|
|
7388
|
+
const ret = wasm.ntripclientmachine_new(config);
|
|
7389
|
+
if (ret[2]) {
|
|
7390
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7391
|
+
}
|
|
7392
|
+
this.__wbg_ptr = ret[0];
|
|
7393
|
+
NtripClientMachineFinalization.register(this, this.__wbg_ptr, this);
|
|
7394
|
+
return this;
|
|
7395
|
+
}
|
|
7396
|
+
/**
|
|
7397
|
+
* @param {Uint8Array} bytes
|
|
7398
|
+
* @returns {any}
|
|
7399
|
+
*/
|
|
7400
|
+
push(bytes) {
|
|
7401
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
7402
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7403
|
+
const ret = wasm.ntripclientmachine_push(this.__wbg_ptr, ptr0, len0);
|
|
7404
|
+
if (ret[2]) {
|
|
7405
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7406
|
+
}
|
|
7407
|
+
return takeFromExternrefTable0(ret[0]);
|
|
7408
|
+
}
|
|
7409
|
+
reset() {
|
|
7410
|
+
wasm.ntripclientmachine_reset(this.__wbg_ptr);
|
|
7411
|
+
}
|
|
7412
|
+
/**
|
|
7413
|
+
* @returns {NtripState}
|
|
7414
|
+
*/
|
|
7415
|
+
get state() {
|
|
7416
|
+
const ret = wasm.ntripclientmachine_state(this.__wbg_ptr);
|
|
7417
|
+
return ret;
|
|
7418
|
+
}
|
|
7419
|
+
/**
|
|
7420
|
+
* @returns {string}
|
|
7421
|
+
*/
|
|
7422
|
+
get stateLabel() {
|
|
6615
7423
|
let deferred1_0;
|
|
6616
7424
|
let deferred1_1;
|
|
6617
7425
|
try {
|
|
6618
|
-
const ret = wasm.
|
|
7426
|
+
const ret = wasm.ntripclientmachine_stateLabel(this.__wbg_ptr);
|
|
6619
7427
|
deferred1_0 = ret[0];
|
|
6620
7428
|
deferred1_1 = ret[1];
|
|
6621
7429
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -6623,46 +7431,31 @@ class NamedTle {
|
|
|
6623
7431
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6624
7432
|
}
|
|
6625
7433
|
}
|
|
6626
|
-
/**
|
|
6627
|
-
* The initialized two-line element set. Call `.propagate()` /
|
|
6628
|
-
* `.lookAngles()` / `.findPasses()` on it directly.
|
|
6629
|
-
* @returns {Tle}
|
|
6630
|
-
*/
|
|
6631
|
-
get tle() {
|
|
6632
|
-
const ret = wasm.namedtle_tle(this.__wbg_ptr);
|
|
6633
|
-
return Tle.__wrap(ret);
|
|
6634
|
-
}
|
|
6635
7434
|
}
|
|
6636
|
-
if (Symbol.dispose)
|
|
6637
|
-
exports.
|
|
7435
|
+
if (Symbol.dispose) NtripClientMachine.prototype[Symbol.dispose] = NtripClientMachine.prototype.free;
|
|
7436
|
+
exports.NtripClientMachine = NtripClientMachine;
|
|
6638
7437
|
|
|
6639
7438
|
/**
|
|
6640
|
-
*
|
|
6641
|
-
* @enum {0 | 1 | 2 | 3 | 4}
|
|
7439
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
6642
7440
|
*/
|
|
6643
|
-
const
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
*/
|
|
6651
|
-
GalileoInav: 1, "1": "GalileoInav",
|
|
6652
|
-
/**
|
|
6653
|
-
* Galileo F/NAV.
|
|
6654
|
-
*/
|
|
6655
|
-
GalileoFnav: 2, "2": "GalileoFnav",
|
|
6656
|
-
/**
|
|
6657
|
-
* BeiDou D1.
|
|
6658
|
-
*/
|
|
6659
|
-
BeidouD1: 3, "3": "BeidouD1",
|
|
6660
|
-
/**
|
|
6661
|
-
* BeiDou D2.
|
|
6662
|
-
*/
|
|
6663
|
-
BeidouD2: 4, "4": "BeidouD2",
|
|
7441
|
+
const NtripState = Object.freeze({
|
|
7442
|
+
Idle: 0, "0": "Idle",
|
|
7443
|
+
AwaitingStatus: 1, "1": "AwaitingStatus",
|
|
7444
|
+
AwaitingHeaders: 2, "2": "AwaitingHeaders",
|
|
7445
|
+
Streaming: 3, "3": "Streaming",
|
|
7446
|
+
Sourcetable: 4, "4": "Sourcetable",
|
|
7447
|
+
Closed: 5, "5": "Closed",
|
|
6664
7448
|
});
|
|
6665
|
-
exports.
|
|
7449
|
+
exports.NtripState = NtripState;
|
|
7450
|
+
|
|
7451
|
+
/**
|
|
7452
|
+
* @enum {0 | 1}
|
|
7453
|
+
*/
|
|
7454
|
+
const NtripVersion = Object.freeze({
|
|
7455
|
+
Rev1: 0, "0": "Rev1",
|
|
7456
|
+
Rev2: 1, "1": "Rev2",
|
|
7457
|
+
});
|
|
7458
|
+
exports.NtripVersion = NtripVersion;
|
|
6666
7459
|
|
|
6667
7460
|
/**
|
|
6668
7461
|
* One RINEX OBS epoch. Observation values are read through `RinexObs` methods.
|
|
@@ -8172,6 +8965,14 @@ class OmmEpoch {
|
|
|
8172
8965
|
const ret = wasm.ommepoch_day(this.__wbg_ptr);
|
|
8173
8966
|
return ret >>> 0;
|
|
8174
8967
|
}
|
|
8968
|
+
/**
|
|
8969
|
+
* Femtosecond remainder within the microsecond.
|
|
8970
|
+
* @returns {number}
|
|
8971
|
+
*/
|
|
8972
|
+
get femtosecond() {
|
|
8973
|
+
const ret = wasm.ommepoch_femtosecond(this.__wbg_ptr);
|
|
8974
|
+
return ret >>> 0;
|
|
8975
|
+
}
|
|
8175
8976
|
/**
|
|
8176
8977
|
* Hour of day.
|
|
8177
8978
|
* @returns {number}
|
|
@@ -8230,9 +9031,10 @@ class OmmEpoch {
|
|
|
8230
9031
|
* @param {number} minute
|
|
8231
9032
|
* @param {number} second
|
|
8232
9033
|
* @param {number} microsecond
|
|
9034
|
+
* @param {number | null} [femtosecond]
|
|
8233
9035
|
*/
|
|
8234
|
-
constructor(year, month, day, hour, minute, second, microsecond) {
|
|
8235
|
-
const ret = wasm.ommepoch_new(year, month, day, hour, minute, second, microsecond);
|
|
9036
|
+
constructor(year, month, day, hour, minute, second, microsecond, femtosecond) {
|
|
9037
|
+
const ret = wasm.ommepoch_new(year, month, day, hour, minute, second, microsecond, isLikeNone(femtosecond) ? Number.MAX_SAFE_INTEGER : (femtosecond) >>> 0);
|
|
8236
9038
|
if (ret[2]) {
|
|
8237
9039
|
throw takeFromExternrefTable0(ret[1]);
|
|
8238
9040
|
}
|
|
@@ -10387,6 +11189,88 @@ class RinexClock {
|
|
|
10387
11189
|
if (Symbol.dispose) RinexClock.prototype[Symbol.dispose] = RinexClock.prototype.free;
|
|
10388
11190
|
exports.RinexClock = RinexClock;
|
|
10389
11191
|
|
|
11192
|
+
/**
|
|
11193
|
+
* Navigation repair result.
|
|
11194
|
+
*/
|
|
11195
|
+
class RinexNavRepair {
|
|
11196
|
+
static __wrap(ptr) {
|
|
11197
|
+
const obj = Object.create(RinexNavRepair.prototype);
|
|
11198
|
+
obj.__wbg_ptr = ptr;
|
|
11199
|
+
RinexNavRepairFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11200
|
+
return obj;
|
|
11201
|
+
}
|
|
11202
|
+
__destroy_into_raw() {
|
|
11203
|
+
const ptr = this.__wbg_ptr;
|
|
11204
|
+
this.__wbg_ptr = 0;
|
|
11205
|
+
RinexNavRepairFinalization.unregister(this);
|
|
11206
|
+
return ptr;
|
|
11207
|
+
}
|
|
11208
|
+
free() {
|
|
11209
|
+
const ptr = this.__destroy_into_raw();
|
|
11210
|
+
wasm.__wbg_rinexnavrepair_free(ptr, 0);
|
|
11211
|
+
}
|
|
11212
|
+
/**
|
|
11213
|
+
* @returns {any}
|
|
11214
|
+
*/
|
|
11215
|
+
get actions() {
|
|
11216
|
+
const ret = wasm.rinexnavrepair_actions(this.__wbg_ptr);
|
|
11217
|
+
if (ret[2]) {
|
|
11218
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11219
|
+
}
|
|
11220
|
+
return takeFromExternrefTable0(ret[0]);
|
|
11221
|
+
}
|
|
11222
|
+
/**
|
|
11223
|
+
* @returns {IonoCorrectionsJs | undefined}
|
|
11224
|
+
*/
|
|
11225
|
+
get iono() {
|
|
11226
|
+
const ret = wasm.rinexnavrepair_iono(this.__wbg_ptr);
|
|
11227
|
+
return ret === 0 ? undefined : IonoCorrectionsJs.__wrap(ret);
|
|
11228
|
+
}
|
|
11229
|
+
/**
|
|
11230
|
+
* @returns {number | undefined}
|
|
11231
|
+
*/
|
|
11232
|
+
get leapSeconds() {
|
|
11233
|
+
const ret = wasm.rinexnavrepair_leapSeconds(this.__wbg_ptr);
|
|
11234
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
11235
|
+
}
|
|
11236
|
+
/**
|
|
11237
|
+
* @returns {BroadcastRecordJs[]}
|
|
11238
|
+
*/
|
|
11239
|
+
get records() {
|
|
11240
|
+
const ret = wasm.rinexnavrepair_records(this.__wbg_ptr);
|
|
11241
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
11242
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
11243
|
+
return v1;
|
|
11244
|
+
}
|
|
11245
|
+
/**
|
|
11246
|
+
* @returns {any}
|
|
11247
|
+
*/
|
|
11248
|
+
get remaining() {
|
|
11249
|
+
const ret = wasm.rinexnavrepair_remaining(this.__wbg_ptr);
|
|
11250
|
+
if (ret[2]) {
|
|
11251
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11252
|
+
}
|
|
11253
|
+
return takeFromExternrefTable0(ret[0]);
|
|
11254
|
+
}
|
|
11255
|
+
/**
|
|
11256
|
+
* @returns {string}
|
|
11257
|
+
*/
|
|
11258
|
+
get repairedText() {
|
|
11259
|
+
let deferred1_0;
|
|
11260
|
+
let deferred1_1;
|
|
11261
|
+
try {
|
|
11262
|
+
const ret = wasm.rinexnavrepair_repairedText(this.__wbg_ptr);
|
|
11263
|
+
deferred1_0 = ret[0];
|
|
11264
|
+
deferred1_1 = ret[1];
|
|
11265
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
11266
|
+
} finally {
|
|
11267
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
11268
|
+
}
|
|
11269
|
+
}
|
|
11270
|
+
}
|
|
11271
|
+
if (Symbol.dispose) RinexNavRepair.prototype[Symbol.dispose] = RinexNavRepair.prototype.free;
|
|
11272
|
+
exports.RinexNavRepair = RinexNavRepair;
|
|
11273
|
+
|
|
10390
11274
|
/**
|
|
10391
11275
|
* A parsed RINEX 3/4 observation file.
|
|
10392
11276
|
*/
|
|
@@ -10532,6 +11416,145 @@ class RinexObs {
|
|
|
10532
11416
|
if (Symbol.dispose) RinexObs.prototype[Symbol.dispose] = RinexObs.prototype.free;
|
|
10533
11417
|
exports.RinexObs = RinexObs;
|
|
10534
11418
|
|
|
11419
|
+
/**
|
|
11420
|
+
* Observation repair result.
|
|
11421
|
+
*/
|
|
11422
|
+
class RinexObsRepair {
|
|
11423
|
+
static __wrap(ptr) {
|
|
11424
|
+
const obj = Object.create(RinexObsRepair.prototype);
|
|
11425
|
+
obj.__wbg_ptr = ptr;
|
|
11426
|
+
RinexObsRepairFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11427
|
+
return obj;
|
|
11428
|
+
}
|
|
11429
|
+
__destroy_into_raw() {
|
|
11430
|
+
const ptr = this.__wbg_ptr;
|
|
11431
|
+
this.__wbg_ptr = 0;
|
|
11432
|
+
RinexObsRepairFinalization.unregister(this);
|
|
11433
|
+
return ptr;
|
|
11434
|
+
}
|
|
11435
|
+
free() {
|
|
11436
|
+
const ptr = this.__destroy_into_raw();
|
|
11437
|
+
wasm.__wbg_rinexobsrepair_free(ptr, 0);
|
|
11438
|
+
}
|
|
11439
|
+
/**
|
|
11440
|
+
* @returns {any}
|
|
11441
|
+
*/
|
|
11442
|
+
get actions() {
|
|
11443
|
+
const ret = wasm.rinexobsrepair_actions(this.__wbg_ptr);
|
|
11444
|
+
if (ret[2]) {
|
|
11445
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11446
|
+
}
|
|
11447
|
+
return takeFromExternrefTable0(ret[0]);
|
|
11448
|
+
}
|
|
11449
|
+
/**
|
|
11450
|
+
* @returns {boolean}
|
|
11451
|
+
*/
|
|
11452
|
+
get decodedFromCrinex() {
|
|
11453
|
+
const ret = wasm.rinexobsrepair_decodedFromCrinex(this.__wbg_ptr);
|
|
11454
|
+
return ret !== 0;
|
|
11455
|
+
}
|
|
11456
|
+
/**
|
|
11457
|
+
* @returns {any}
|
|
11458
|
+
*/
|
|
11459
|
+
get remaining() {
|
|
11460
|
+
const ret = wasm.rinexobsrepair_remaining(this.__wbg_ptr);
|
|
11461
|
+
if (ret[2]) {
|
|
11462
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11463
|
+
}
|
|
11464
|
+
return takeFromExternrefTable0(ret[0]);
|
|
11465
|
+
}
|
|
11466
|
+
/**
|
|
11467
|
+
* @returns {RinexObs}
|
|
11468
|
+
*/
|
|
11469
|
+
get repaired() {
|
|
11470
|
+
const ret = wasm.rinexobsrepair_repaired(this.__wbg_ptr);
|
|
11471
|
+
return RinexObs.__wrap(ret);
|
|
11472
|
+
}
|
|
11473
|
+
/**
|
|
11474
|
+
* @returns {string}
|
|
11475
|
+
*/
|
|
11476
|
+
get repairedText() {
|
|
11477
|
+
let deferred1_0;
|
|
11478
|
+
let deferred1_1;
|
|
11479
|
+
try {
|
|
11480
|
+
const ret = wasm.rinexobsrepair_repairedText(this.__wbg_ptr);
|
|
11481
|
+
deferred1_0 = ret[0];
|
|
11482
|
+
deferred1_1 = ret[1];
|
|
11483
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
11484
|
+
} finally {
|
|
11485
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
11486
|
+
}
|
|
11487
|
+
}
|
|
11488
|
+
/**
|
|
11489
|
+
* @returns {string}
|
|
11490
|
+
*/
|
|
11491
|
+
toCrinexString() {
|
|
11492
|
+
let deferred2_0;
|
|
11493
|
+
let deferred2_1;
|
|
11494
|
+
try {
|
|
11495
|
+
const ret = wasm.rinexobsrepair_toCrinexString(this.__wbg_ptr);
|
|
11496
|
+
var ptr1 = ret[0];
|
|
11497
|
+
var len1 = ret[1];
|
|
11498
|
+
if (ret[3]) {
|
|
11499
|
+
ptr1 = 0; len1 = 0;
|
|
11500
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
11501
|
+
}
|
|
11502
|
+
deferred2_0 = ptr1;
|
|
11503
|
+
deferred2_1 = len1;
|
|
11504
|
+
return getStringFromWasm0(ptr1, len1);
|
|
11505
|
+
} finally {
|
|
11506
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
11507
|
+
}
|
|
11508
|
+
}
|
|
11509
|
+
}
|
|
11510
|
+
if (Symbol.dispose) RinexObsRepair.prototype[Symbol.dispose] = RinexObsRepair.prototype.free;
|
|
11511
|
+
exports.RinexObsRepair = RinexObsRepair;
|
|
11512
|
+
|
|
11513
|
+
/**
|
|
11514
|
+
* Stateful MSM lock-time tracker for deriving RINEX LLI continuity bits.
|
|
11515
|
+
*/
|
|
11516
|
+
class RtcmLockTimeTracker {
|
|
11517
|
+
__destroy_into_raw() {
|
|
11518
|
+
const ptr = this.__wbg_ptr;
|
|
11519
|
+
this.__wbg_ptr = 0;
|
|
11520
|
+
RtcmLockTimeTrackerFinalization.unregister(this);
|
|
11521
|
+
return ptr;
|
|
11522
|
+
}
|
|
11523
|
+
free() {
|
|
11524
|
+
const ptr = this.__destroy_into_raw();
|
|
11525
|
+
wasm.__wbg_rtcmlocktimetracker_free(ptr, 0);
|
|
11526
|
+
}
|
|
11527
|
+
/**
|
|
11528
|
+
* Build an empty tracker.
|
|
11529
|
+
*/
|
|
11530
|
+
constructor() {
|
|
11531
|
+
const ret = wasm.rtcmlocktimetracker_new();
|
|
11532
|
+
this.__wbg_ptr = ret;
|
|
11533
|
+
RtcmLockTimeTrackerFinalization.register(this, this.__wbg_ptr, this);
|
|
11534
|
+
return this;
|
|
11535
|
+
}
|
|
11536
|
+
/**
|
|
11537
|
+
* Derive LLI rows for one decoded MSM message object and advance state.
|
|
11538
|
+
* @param {any} message
|
|
11539
|
+
* @returns {any}
|
|
11540
|
+
*/
|
|
11541
|
+
observe(message) {
|
|
11542
|
+
const ret = wasm.rtcmlocktimetracker_observe(this.__wbg_ptr, message);
|
|
11543
|
+
if (ret[2]) {
|
|
11544
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11545
|
+
}
|
|
11546
|
+
return takeFromExternrefTable0(ret[0]);
|
|
11547
|
+
}
|
|
11548
|
+
/**
|
|
11549
|
+
* Drop all per-cell lock history.
|
|
11550
|
+
*/
|
|
11551
|
+
reset() {
|
|
11552
|
+
wasm.rtcmlocktimetracker_reset(this.__wbg_ptr);
|
|
11553
|
+
}
|
|
11554
|
+
}
|
|
11555
|
+
if (Symbol.dispose) RtcmLockTimeTracker.prototype[Symbol.dispose] = RtcmLockTimeTracker.prototype.free;
|
|
11556
|
+
exports.RtcmLockTimeTracker = RtcmLockTimeTracker;
|
|
11557
|
+
|
|
10535
11558
|
/**
|
|
10536
11559
|
* Validated fixed RTK baseline solution.
|
|
10537
11560
|
*/
|
|
@@ -11991,54 +13014,211 @@ if (Symbol.dispose) SpaceWeather.prototype[Symbol.dispose] = SpaceWeather.protot
|
|
|
11991
13014
|
exports.SpaceWeather = SpaceWeather;
|
|
11992
13015
|
|
|
11993
13016
|
/**
|
|
11994
|
-
* Canonical quiet-Sun space-weather indices for NRLMSISE-00, mirrored from the
|
|
11995
|
-
* core so a JS caller can pass moderate-activity defaults to [`atmosphereDensity`]
|
|
11996
|
-
* without re-deriving the magic numbers.
|
|
13017
|
+
* Canonical quiet-Sun space-weather indices for NRLMSISE-00, mirrored from the
|
|
13018
|
+
* core so a JS caller can pass moderate-activity defaults to [`atmosphereDensity`]
|
|
13019
|
+
* without re-deriving the magic numbers.
|
|
13020
|
+
*/
|
|
13021
|
+
class SpaceWeatherDefaults {
|
|
13022
|
+
static __wrap(ptr) {
|
|
13023
|
+
const obj = Object.create(SpaceWeatherDefaults.prototype);
|
|
13024
|
+
obj.__wbg_ptr = ptr;
|
|
13025
|
+
SpaceWeatherDefaultsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
13026
|
+
return obj;
|
|
13027
|
+
}
|
|
13028
|
+
__destroy_into_raw() {
|
|
13029
|
+
const ptr = this.__wbg_ptr;
|
|
13030
|
+
this.__wbg_ptr = 0;
|
|
13031
|
+
SpaceWeatherDefaultsFinalization.unregister(this);
|
|
13032
|
+
return ptr;
|
|
13033
|
+
}
|
|
13034
|
+
free() {
|
|
13035
|
+
const ptr = this.__destroy_into_raw();
|
|
13036
|
+
wasm.__wbg_spaceweatherdefaults_free(ptr, 0);
|
|
13037
|
+
}
|
|
13038
|
+
/**
|
|
13039
|
+
* Daily magnetic Ap index.
|
|
13040
|
+
* @returns {number}
|
|
13041
|
+
*/
|
|
13042
|
+
get ap() {
|
|
13043
|
+
const ret = wasm.spaceweatherdefaults_ap(this.__wbg_ptr);
|
|
13044
|
+
return ret;
|
|
13045
|
+
}
|
|
13046
|
+
/**
|
|
13047
|
+
* Daily F10.7 solar radio flux.
|
|
13048
|
+
* @returns {number}
|
|
13049
|
+
*/
|
|
13050
|
+
get f107() {
|
|
13051
|
+
const ret = wasm.spaceweatherdefaults_f107(this.__wbg_ptr);
|
|
13052
|
+
return ret;
|
|
13053
|
+
}
|
|
13054
|
+
/**
|
|
13055
|
+
* 81-day centred F10.7 average.
|
|
13056
|
+
* @returns {number}
|
|
13057
|
+
*/
|
|
13058
|
+
get f107a() {
|
|
13059
|
+
const ret = wasm.spaceweatherdefaults_f107a(this.__wbg_ptr);
|
|
13060
|
+
return ret;
|
|
13061
|
+
}
|
|
13062
|
+
}
|
|
13063
|
+
if (Symbol.dispose) SpaceWeatherDefaults.prototype[Symbol.dispose] = SpaceWeatherDefaults.prototype.free;
|
|
13064
|
+
exports.SpaceWeatherDefaults = SpaceWeatherDefaults;
|
|
13065
|
+
|
|
13066
|
+
/**
|
|
13067
|
+
* Parsed CelesTrak CSSI space-weather table.
|
|
11997
13068
|
*/
|
|
11998
|
-
class
|
|
13069
|
+
class SpaceWeatherTable {
|
|
11999
13070
|
static __wrap(ptr) {
|
|
12000
|
-
const obj = Object.create(
|
|
13071
|
+
const obj = Object.create(SpaceWeatherTable.prototype);
|
|
12001
13072
|
obj.__wbg_ptr = ptr;
|
|
12002
|
-
|
|
13073
|
+
SpaceWeatherTableFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12003
13074
|
return obj;
|
|
12004
13075
|
}
|
|
12005
13076
|
__destroy_into_raw() {
|
|
12006
13077
|
const ptr = this.__wbg_ptr;
|
|
12007
13078
|
this.__wbg_ptr = 0;
|
|
12008
|
-
|
|
13079
|
+
SpaceWeatherTableFinalization.unregister(this);
|
|
12009
13080
|
return ptr;
|
|
12010
13081
|
}
|
|
12011
13082
|
free() {
|
|
12012
13083
|
const ptr = this.__destroy_into_raw();
|
|
12013
|
-
wasm.
|
|
13084
|
+
wasm.__wbg_spaceweathertable_free(ptr, 0);
|
|
12014
13085
|
}
|
|
12015
13086
|
/**
|
|
12016
|
-
*
|
|
12017
|
-
* @returns {
|
|
13087
|
+
* @param {number} epoch_j2000_s
|
|
13088
|
+
* @returns {Float64Array}
|
|
12018
13089
|
*/
|
|
12019
|
-
|
|
12020
|
-
const ret = wasm.
|
|
12021
|
-
|
|
13090
|
+
apArrayAt(epoch_j2000_s) {
|
|
13091
|
+
const ret = wasm.spaceweathertable_apArrayAt(this.__wbg_ptr, epoch_j2000_s);
|
|
13092
|
+
if (ret[3]) {
|
|
13093
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
13094
|
+
}
|
|
13095
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
13096
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
13097
|
+
return v1;
|
|
13098
|
+
}
|
|
13099
|
+
/**
|
|
13100
|
+
* @returns {any}
|
|
13101
|
+
*/
|
|
13102
|
+
get coverage() {
|
|
13103
|
+
const ret = wasm.spaceweathertable_coverage(this.__wbg_ptr);
|
|
13104
|
+
if (ret[2]) {
|
|
13105
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13106
|
+
}
|
|
13107
|
+
return takeFromExternrefTable0(ret[0]);
|
|
13108
|
+
}
|
|
13109
|
+
/**
|
|
13110
|
+
* @param {number} year
|
|
13111
|
+
* @param {number} month
|
|
13112
|
+
* @param {number} day
|
|
13113
|
+
* @returns {any}
|
|
13114
|
+
*/
|
|
13115
|
+
day(year, month, day) {
|
|
13116
|
+
const ret = wasm.spaceweathertable_day(this.__wbg_ptr, year, month, day);
|
|
13117
|
+
if (ret[2]) {
|
|
13118
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13119
|
+
}
|
|
13120
|
+
return takeFromExternrefTable0(ret[0]);
|
|
12022
13121
|
}
|
|
12023
13122
|
/**
|
|
12024
|
-
* Daily F10.7 solar radio flux.
|
|
12025
13123
|
* @returns {number}
|
|
12026
13124
|
*/
|
|
12027
|
-
get
|
|
12028
|
-
const ret = wasm.
|
|
12029
|
-
return ret;
|
|
13125
|
+
get dayCount() {
|
|
13126
|
+
const ret = wasm.spaceweathertable_dayCount(this.__wbg_ptr);
|
|
13127
|
+
return ret >>> 0;
|
|
13128
|
+
}
|
|
13129
|
+
/**
|
|
13130
|
+
* @returns {any}
|
|
13131
|
+
*/
|
|
13132
|
+
days() {
|
|
13133
|
+
const ret = wasm.spaceweathertable_days(this.__wbg_ptr);
|
|
13134
|
+
if (ret[2]) {
|
|
13135
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13136
|
+
}
|
|
13137
|
+
return takeFromExternrefTable0(ret[0]);
|
|
13138
|
+
}
|
|
13139
|
+
/**
|
|
13140
|
+
* @returns {any}
|
|
13141
|
+
*/
|
|
13142
|
+
get diagnostics() {
|
|
13143
|
+
const ret = wasm.spaceweathertable_diagnostics(this.__wbg_ptr);
|
|
13144
|
+
if (ret[2]) {
|
|
13145
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13146
|
+
}
|
|
13147
|
+
return takeFromExternrefTable0(ret[0]);
|
|
13148
|
+
}
|
|
13149
|
+
/**
|
|
13150
|
+
* @returns {any}
|
|
13151
|
+
*/
|
|
13152
|
+
monthly() {
|
|
13153
|
+
const ret = wasm.spaceweathertable_monthly(this.__wbg_ptr);
|
|
13154
|
+
if (ret[2]) {
|
|
13155
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13156
|
+
}
|
|
13157
|
+
return takeFromExternrefTable0(ret[0]);
|
|
12030
13158
|
}
|
|
12031
13159
|
/**
|
|
12032
|
-
* 81-day centred F10.7 average.
|
|
12033
13160
|
* @returns {number}
|
|
12034
13161
|
*/
|
|
12035
|
-
get
|
|
12036
|
-
const ret = wasm.
|
|
12037
|
-
return ret;
|
|
13162
|
+
get monthlyCount() {
|
|
13163
|
+
const ret = wasm.spaceweathertable_monthlyCount(this.__wbg_ptr);
|
|
13164
|
+
return ret >>> 0;
|
|
13165
|
+
}
|
|
13166
|
+
/**
|
|
13167
|
+
* @param {number} epoch_j2000_s
|
|
13168
|
+
* @param {any} policy
|
|
13169
|
+
* @returns {any}
|
|
13170
|
+
*/
|
|
13171
|
+
sampleAt(epoch_j2000_s, policy) {
|
|
13172
|
+
const ret = wasm.spaceweathertable_sampleAt(this.__wbg_ptr, epoch_j2000_s, policy);
|
|
13173
|
+
if (ret[2]) {
|
|
13174
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13175
|
+
}
|
|
13176
|
+
return takeFromExternrefTable0(ret[0]);
|
|
13177
|
+
}
|
|
13178
|
+
/**
|
|
13179
|
+
* @param {number} epoch_j2000_s
|
|
13180
|
+
* @returns {any}
|
|
13181
|
+
*/
|
|
13182
|
+
spaceWeatherAt(epoch_j2000_s) {
|
|
13183
|
+
const ret = wasm.spaceweathertable_spaceWeatherAt(this.__wbg_ptr, epoch_j2000_s);
|
|
13184
|
+
if (ret[2]) {
|
|
13185
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13186
|
+
}
|
|
13187
|
+
return takeFromExternrefTable0(ret[0]);
|
|
13188
|
+
}
|
|
13189
|
+
/**
|
|
13190
|
+
* @returns {string}
|
|
13191
|
+
*/
|
|
13192
|
+
toCsv() {
|
|
13193
|
+
let deferred1_0;
|
|
13194
|
+
let deferred1_1;
|
|
13195
|
+
try {
|
|
13196
|
+
const ret = wasm.spaceweathertable_toCsv(this.__wbg_ptr);
|
|
13197
|
+
deferred1_0 = ret[0];
|
|
13198
|
+
deferred1_1 = ret[1];
|
|
13199
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13200
|
+
} finally {
|
|
13201
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13202
|
+
}
|
|
13203
|
+
}
|
|
13204
|
+
/**
|
|
13205
|
+
* @returns {string}
|
|
13206
|
+
*/
|
|
13207
|
+
toTxt() {
|
|
13208
|
+
let deferred1_0;
|
|
13209
|
+
let deferred1_1;
|
|
13210
|
+
try {
|
|
13211
|
+
const ret = wasm.spaceweathertable_toTxt(this.__wbg_ptr);
|
|
13212
|
+
deferred1_0 = ret[0];
|
|
13213
|
+
deferred1_1 = ret[1];
|
|
13214
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13215
|
+
} finally {
|
|
13216
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13217
|
+
}
|
|
12038
13218
|
}
|
|
12039
13219
|
}
|
|
12040
|
-
if (Symbol.dispose)
|
|
12041
|
-
exports.
|
|
13220
|
+
if (Symbol.dispose) SpaceWeatherTable.prototype[Symbol.dispose] = SpaceWeatherTable.prototype.free;
|
|
13221
|
+
exports.SpaceWeatherTable = SpaceWeatherTable;
|
|
12042
13222
|
|
|
12043
13223
|
/**
|
|
12044
13224
|
* A parsed in-memory JPL/NAIF SPK kernel.
|
|
@@ -13033,6 +14213,96 @@ class Tle {
|
|
|
13033
14213
|
if (Symbol.dispose) Tle.prototype[Symbol.dispose] = Tle.prototype.free;
|
|
13034
14214
|
exports.Tle = Tle;
|
|
13035
14215
|
|
|
14216
|
+
/**
|
|
14217
|
+
* Result of fitting a TLE to TEME samples.
|
|
14218
|
+
*/
|
|
14219
|
+
class TleFit {
|
|
14220
|
+
static __wrap(ptr) {
|
|
14221
|
+
const obj = Object.create(TleFit.prototype);
|
|
14222
|
+
obj.__wbg_ptr = ptr;
|
|
14223
|
+
TleFitFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
14224
|
+
return obj;
|
|
14225
|
+
}
|
|
14226
|
+
__destroy_into_raw() {
|
|
14227
|
+
const ptr = this.__wbg_ptr;
|
|
14228
|
+
this.__wbg_ptr = 0;
|
|
14229
|
+
TleFitFinalization.unregister(this);
|
|
14230
|
+
return ptr;
|
|
14231
|
+
}
|
|
14232
|
+
free() {
|
|
14233
|
+
const ptr = this.__destroy_into_raw();
|
|
14234
|
+
wasm.__wbg_tlefit_free(ptr, 0);
|
|
14235
|
+
}
|
|
14236
|
+
/**
|
|
14237
|
+
* @returns {any}
|
|
14238
|
+
*/
|
|
14239
|
+
get elements() {
|
|
14240
|
+
const ret = wasm.tlefit_elements(this.__wbg_ptr);
|
|
14241
|
+
if (ret[2]) {
|
|
14242
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14243
|
+
}
|
|
14244
|
+
return takeFromExternrefTable0(ret[0]);
|
|
14245
|
+
}
|
|
14246
|
+
/**
|
|
14247
|
+
* @returns {string}
|
|
14248
|
+
*/
|
|
14249
|
+
get line1() {
|
|
14250
|
+
let deferred1_0;
|
|
14251
|
+
let deferred1_1;
|
|
14252
|
+
try {
|
|
14253
|
+
const ret = wasm.tlefit_line1(this.__wbg_ptr);
|
|
14254
|
+
deferred1_0 = ret[0];
|
|
14255
|
+
deferred1_1 = ret[1];
|
|
14256
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
14257
|
+
} finally {
|
|
14258
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14259
|
+
}
|
|
14260
|
+
}
|
|
14261
|
+
/**
|
|
14262
|
+
* @returns {string}
|
|
14263
|
+
*/
|
|
14264
|
+
get line2() {
|
|
14265
|
+
let deferred1_0;
|
|
14266
|
+
let deferred1_1;
|
|
14267
|
+
try {
|
|
14268
|
+
const ret = wasm.tlefit_line2(this.__wbg_ptr);
|
|
14269
|
+
deferred1_0 = ret[0];
|
|
14270
|
+
deferred1_1 = ret[1];
|
|
14271
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
14272
|
+
} finally {
|
|
14273
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14274
|
+
}
|
|
14275
|
+
}
|
|
14276
|
+
/**
|
|
14277
|
+
* @returns {Omm}
|
|
14278
|
+
*/
|
|
14279
|
+
get omm() {
|
|
14280
|
+
const ret = wasm.tlefit_omm(this.__wbg_ptr);
|
|
14281
|
+
return Omm.__wrap(ret);
|
|
14282
|
+
}
|
|
14283
|
+
/**
|
|
14284
|
+
* @returns {any}
|
|
14285
|
+
*/
|
|
14286
|
+
get stats() {
|
|
14287
|
+
const ret = wasm.tlefit_stats(this.__wbg_ptr);
|
|
14288
|
+
if (ret[2]) {
|
|
14289
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14290
|
+
}
|
|
14291
|
+
return takeFromExternrefTable0(ret[0]);
|
|
14292
|
+
}
|
|
14293
|
+
/**
|
|
14294
|
+
* @returns {string[]}
|
|
14295
|
+
*/
|
|
14296
|
+
toLines() {
|
|
14297
|
+
const ret = wasm.tlefit_toLines(this.__wbg_ptr);
|
|
14298
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
14299
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
14300
|
+
return v1;
|
|
14301
|
+
}
|
|
14302
|
+
}
|
|
14303
|
+
if (Symbol.dispose) TleFit.prototype[Symbol.dispose] = TleFit.prototype.free;
|
|
14304
|
+
exports.TleFit = TleFit;
|
|
14305
|
+
|
|
13036
14306
|
/**
|
|
13037
14307
|
* TEME states from a batched SGP4 propagation. Each array is flat row-major,
|
|
13038
14308
|
* length `3 * epochCount`.
|
|
@@ -13789,6 +15059,17 @@ function cn0(eirp_dbw, fspl_db, receiver_gt_dbk, other_losses_db) {
|
|
|
13789
15059
|
}
|
|
13790
15060
|
exports.cn0 = cn0;
|
|
13791
15061
|
|
|
15062
|
+
/**
|
|
15063
|
+
* Nominal GPS/QZSS CNAV URA meters for an ED/NED0 index.
|
|
15064
|
+
* @param {number} index
|
|
15065
|
+
* @returns {number | undefined}
|
|
15066
|
+
*/
|
|
15067
|
+
function cnavUraNominalM(index) {
|
|
15068
|
+
const ret = wasm.cnavUraNominalM(index);
|
|
15069
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
15070
|
+
}
|
|
15071
|
+
exports.cnavUraNominalM = cnavUraNominalM;
|
|
15072
|
+
|
|
13792
15073
|
/**
|
|
13793
15074
|
* @param {any} coe
|
|
13794
15075
|
* @param {RetrogradeFactor | null} [factor]
|
|
@@ -14140,6 +15421,27 @@ function decodeRtcmMessage(body) {
|
|
|
14140
15421
|
}
|
|
14141
15422
|
exports.decodeRtcmMessage = decodeRtcmMessage;
|
|
14142
15423
|
|
|
15424
|
+
/**
|
|
15425
|
+
* Decode an RTCM 3 byte stream into messages plus stream diagnostics.
|
|
15426
|
+
*
|
|
15427
|
+
* The `messages` array has the same object form as [`decodeRtcm`].
|
|
15428
|
+
* `diagnostics.resyncBytes` counts skipped bytes while finding valid frames,
|
|
15429
|
+
* and `diagnostics.skippedFrames` reports CRC-valid frames whose bodies could
|
|
15430
|
+
* not be decoded.
|
|
15431
|
+
* @param {Uint8Array} bytes
|
|
15432
|
+
* @returns {any}
|
|
15433
|
+
*/
|
|
15434
|
+
function decodeRtcmStream(bytes) {
|
|
15435
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
15436
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15437
|
+
const ret = wasm.decodeRtcmStream(ptr0, len0);
|
|
15438
|
+
if (ret[2]) {
|
|
15439
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
15440
|
+
}
|
|
15441
|
+
return takeFromExternrefTable0(ret[0]);
|
|
15442
|
+
}
|
|
15443
|
+
exports.decodeRtcmStream = decodeRtcmStream;
|
|
15444
|
+
|
|
14143
15445
|
/**
|
|
14144
15446
|
* @param {Uint8Array} bytes
|
|
14145
15447
|
* @param {string | null} [form]
|
|
@@ -14526,6 +15828,42 @@ function egm96Undulation(lat_rad, lon_rad) {
|
|
|
14526
15828
|
}
|
|
14527
15829
|
exports.egm96Undulation = egm96Undulation;
|
|
14528
15830
|
|
|
15831
|
+
/**
|
|
15832
|
+
* Batch EGM96 undulation lookup for flat `[latDeg, lonDeg, ...]` pairs.
|
|
15833
|
+
* @param {Float64Array} points_deg
|
|
15834
|
+
* @returns {Float64Array}
|
|
15835
|
+
*/
|
|
15836
|
+
function egm96UndulationsDeg(points_deg) {
|
|
15837
|
+
const ptr0 = passArrayF64ToWasm0(points_deg, wasm.__wbindgen_malloc);
|
|
15838
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15839
|
+
const ret = wasm.egm96UndulationsDeg(ptr0, len0);
|
|
15840
|
+
if (ret[3]) {
|
|
15841
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
15842
|
+
}
|
|
15843
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
15844
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
15845
|
+
return v2;
|
|
15846
|
+
}
|
|
15847
|
+
exports.egm96UndulationsDeg = egm96UndulationsDeg;
|
|
15848
|
+
|
|
15849
|
+
/**
|
|
15850
|
+
* Batch EGM96 undulation lookup for flat `[latRad, lonRad, ...]` pairs.
|
|
15851
|
+
* @param {Float64Array} points_rad
|
|
15852
|
+
* @returns {Float64Array}
|
|
15853
|
+
*/
|
|
15854
|
+
function egm96UndulationsRad(points_rad) {
|
|
15855
|
+
const ptr0 = passArrayF64ToWasm0(points_rad, wasm.__wbindgen_malloc);
|
|
15856
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15857
|
+
const ret = wasm.egm96UndulationsRad(ptr0, len0);
|
|
15858
|
+
if (ret[3]) {
|
|
15859
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
15860
|
+
}
|
|
15861
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
15862
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
15863
|
+
return v2;
|
|
15864
|
+
}
|
|
15865
|
+
exports.egm96UndulationsRad = egm96UndulationsRad;
|
|
15866
|
+
|
|
14529
15867
|
/**
|
|
14530
15868
|
* Effective isotropic radiated power, dBW.
|
|
14531
15869
|
* @param {number} tx_power_dbm
|
|
@@ -14749,6 +16087,24 @@ function estimateDecay(drag, request) {
|
|
|
14749
16087
|
}
|
|
14750
16088
|
exports.estimateDecay = estimateDecay;
|
|
14751
16089
|
|
|
16090
|
+
/**
|
|
16091
|
+
* Estimate decay using per-epoch values from a parsed space-weather table.
|
|
16092
|
+
* @param {DragForce} drag
|
|
16093
|
+
* @param {SpaceWeatherTable} table
|
|
16094
|
+
* @param {any} request
|
|
16095
|
+
* @returns {any}
|
|
16096
|
+
*/
|
|
16097
|
+
function estimateDecayWithSpaceWeather(drag, table, request) {
|
|
16098
|
+
_assertClass(drag, DragForce);
|
|
16099
|
+
_assertClass(table, SpaceWeatherTable);
|
|
16100
|
+
const ret = wasm.estimateDecayWithSpaceWeather(drag.__wbg_ptr, table.__wbg_ptr, request);
|
|
16101
|
+
if (ret[2]) {
|
|
16102
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
16103
|
+
}
|
|
16104
|
+
return takeFromExternrefTable0(ret[0]);
|
|
16105
|
+
}
|
|
16106
|
+
exports.estimateDecayWithSpaceWeather = estimateDecayWithSpaceWeather;
|
|
16107
|
+
|
|
14752
16108
|
/**
|
|
14753
16109
|
* Find Moon elevation threshold crossings (moonrise / moonset) over a UTC
|
|
14754
16110
|
* window.
|
|
@@ -15004,9 +16360,24 @@ function fitReducedOrbitTle(tle, options) {
|
|
|
15004
16360
|
if (ret[2]) {
|
|
15005
16361
|
throw takeFromExternrefTable0(ret[1]);
|
|
15006
16362
|
}
|
|
15007
|
-
return ReducedOrbitSourceFit.__wrap(ret[0]);
|
|
16363
|
+
return ReducedOrbitSourceFit.__wrap(ret[0]);
|
|
16364
|
+
}
|
|
16365
|
+
exports.fitReducedOrbitTle = fitReducedOrbitTle;
|
|
16366
|
+
|
|
16367
|
+
/**
|
|
16368
|
+
* Fit SGP4 mean elements and optional B* to TEME state samples.
|
|
16369
|
+
* @param {any} samples
|
|
16370
|
+
* @param {any} config
|
|
16371
|
+
* @returns {TleFit}
|
|
16372
|
+
*/
|
|
16373
|
+
function fitTle(samples, config) {
|
|
16374
|
+
const ret = wasm.fitTle(samples, config);
|
|
16375
|
+
if (ret[2]) {
|
|
16376
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
16377
|
+
}
|
|
16378
|
+
return TleFit.__wrap(ret[0]);
|
|
15008
16379
|
}
|
|
15009
|
-
exports.
|
|
16380
|
+
exports.fitTle = fitTle;
|
|
15010
16381
|
|
|
15011
16382
|
/**
|
|
15012
16383
|
* Fix Melbourne-Wubbena wide-lane ambiguities over a dual-frequency RTK arc.
|
|
@@ -15263,6 +16634,44 @@ function geoidUndulation(lat_rad, lon_rad) {
|
|
|
15263
16634
|
}
|
|
15264
16635
|
exports.geoidUndulation = geoidUndulation;
|
|
15265
16636
|
|
|
16637
|
+
/**
|
|
16638
|
+
* Batch coarse built-in undulation lookup for flat `[latDeg, lonDeg, ...]`
|
|
16639
|
+
* pairs.
|
|
16640
|
+
* @param {Float64Array} points_deg
|
|
16641
|
+
* @returns {Float64Array}
|
|
16642
|
+
*/
|
|
16643
|
+
function geoidUndulationsDeg(points_deg) {
|
|
16644
|
+
const ptr0 = passArrayF64ToWasm0(points_deg, wasm.__wbindgen_malloc);
|
|
16645
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16646
|
+
const ret = wasm.geoidUndulationsDeg(ptr0, len0);
|
|
16647
|
+
if (ret[3]) {
|
|
16648
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
16649
|
+
}
|
|
16650
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
16651
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
16652
|
+
return v2;
|
|
16653
|
+
}
|
|
16654
|
+
exports.geoidUndulationsDeg = geoidUndulationsDeg;
|
|
16655
|
+
|
|
16656
|
+
/**
|
|
16657
|
+
* Batch coarse built-in undulation lookup for flat `[latRad, lonRad, ...]`
|
|
16658
|
+
* pairs.
|
|
16659
|
+
* @param {Float64Array} points_rad
|
|
16660
|
+
* @returns {Float64Array}
|
|
16661
|
+
*/
|
|
16662
|
+
function geoidUndulationsRad(points_rad) {
|
|
16663
|
+
const ptr0 = passArrayF64ToWasm0(points_rad, wasm.__wbindgen_malloc);
|
|
16664
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16665
|
+
const ret = wasm.geoidUndulationsRad(ptr0, len0);
|
|
16666
|
+
if (ret[3]) {
|
|
16667
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
16668
|
+
}
|
|
16669
|
+
var v2 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
16670
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
16671
|
+
return v2;
|
|
16672
|
+
}
|
|
16673
|
+
exports.geoidUndulationsRad = geoidUndulationsRad;
|
|
16674
|
+
|
|
15266
16675
|
/**
|
|
15267
16676
|
* Geometry-free phase combination `L_GF = L1 - L2`, metres.
|
|
15268
16677
|
* @param {number} l1_m
|
|
@@ -16025,6 +17434,38 @@ function leastSquaresDropOne(request) {
|
|
|
16025
17434
|
}
|
|
16026
17435
|
exports.leastSquaresDropOne = leastSquaresDropOne;
|
|
16027
17436
|
|
|
17437
|
+
/**
|
|
17438
|
+
* Lint RINEX navigation text.
|
|
17439
|
+
* @param {Uint8Array} bytes
|
|
17440
|
+
* @returns {any}
|
|
17441
|
+
*/
|
|
17442
|
+
function lintRinexNav(bytes) {
|
|
17443
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
17444
|
+
const len0 = WASM_VECTOR_LEN;
|
|
17445
|
+
const ret = wasm.lintRinexNav(ptr0, len0);
|
|
17446
|
+
if (ret[2]) {
|
|
17447
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
17448
|
+
}
|
|
17449
|
+
return takeFromExternrefTable0(ret[0]);
|
|
17450
|
+
}
|
|
17451
|
+
exports.lintRinexNav = lintRinexNav;
|
|
17452
|
+
|
|
17453
|
+
/**
|
|
17454
|
+
* Lint RINEX observation text.
|
|
17455
|
+
* @param {Uint8Array} bytes
|
|
17456
|
+
* @returns {any}
|
|
17457
|
+
*/
|
|
17458
|
+
function lintRinexObs(bytes) {
|
|
17459
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
17460
|
+
const len0 = WASM_VECTOR_LEN;
|
|
17461
|
+
const ret = wasm.lintRinexObs(ptr0, len0);
|
|
17462
|
+
if (ret[2]) {
|
|
17463
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
17464
|
+
}
|
|
17465
|
+
return takeFromExternrefTable0(ret[0]);
|
|
17466
|
+
}
|
|
17467
|
+
exports.lintRinexObs = lintRinexObs;
|
|
17468
|
+
|
|
16028
17469
|
/**
|
|
16029
17470
|
* Decode LNAV subframes 1-3 back into engineering-unit parameters.
|
|
16030
17471
|
*
|
|
@@ -16819,6 +18260,47 @@ function nequickGStecTecu(_eval) {
|
|
|
16819
18260
|
}
|
|
16820
18261
|
exports.nequickGStecTecu = nequickGStecTecu;
|
|
16821
18262
|
|
|
18263
|
+
/**
|
|
18264
|
+
* Parse bytes and return grouped epoch snapshots directly.
|
|
18265
|
+
* @param {Uint8Array} bytes
|
|
18266
|
+
* @returns {any}
|
|
18267
|
+
*/
|
|
18268
|
+
function nmeaEpochs(bytes) {
|
|
18269
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
18270
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18271
|
+
const ret = wasm.nmeaEpochs(ptr0, len0);
|
|
18272
|
+
if (ret[2]) {
|
|
18273
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18274
|
+
}
|
|
18275
|
+
return takeFromExternrefTable0(ret[0]);
|
|
18276
|
+
}
|
|
18277
|
+
exports.nmeaEpochs = nmeaEpochs;
|
|
18278
|
+
|
|
18279
|
+
/**
|
|
18280
|
+
* Write a GGA sentence from a JS object.
|
|
18281
|
+
* @param {any} request
|
|
18282
|
+
* @returns {string}
|
|
18283
|
+
*/
|
|
18284
|
+
function nmeaWriteGga(request) {
|
|
18285
|
+
let deferred2_0;
|
|
18286
|
+
let deferred2_1;
|
|
18287
|
+
try {
|
|
18288
|
+
const ret = wasm.nmeaWriteGga(request);
|
|
18289
|
+
var ptr1 = ret[0];
|
|
18290
|
+
var len1 = ret[1];
|
|
18291
|
+
if (ret[3]) {
|
|
18292
|
+
ptr1 = 0; len1 = 0;
|
|
18293
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
18294
|
+
}
|
|
18295
|
+
deferred2_0 = ptr1;
|
|
18296
|
+
deferred2_1 = len1;
|
|
18297
|
+
return getStringFromWasm0(ptr1, len1);
|
|
18298
|
+
} finally {
|
|
18299
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
18300
|
+
}
|
|
18301
|
+
}
|
|
18302
|
+
exports.nmeaWriteGga = nmeaWriteGga;
|
|
18303
|
+
|
|
16822
18304
|
/**
|
|
16823
18305
|
* Equal-variance noise amplification of the ionosphere-free combination.
|
|
16824
18306
|
* @param {number} f1_hz
|
|
@@ -16865,6 +18347,22 @@ function normalCovariance(jacobian, m, n, variance_scale) {
|
|
|
16865
18347
|
}
|
|
16866
18348
|
exports.normalCovariance = normalCovariance;
|
|
16867
18349
|
|
|
18350
|
+
/**
|
|
18351
|
+
* Build the NTRIP connection request bytes for a config object.
|
|
18352
|
+
* @param {any} config
|
|
18353
|
+
* @returns {Uint8Array}
|
|
18354
|
+
*/
|
|
18355
|
+
function ntripRequestBytes(config) {
|
|
18356
|
+
const ret = wasm.ntripRequestBytes(config);
|
|
18357
|
+
if (ret[3]) {
|
|
18358
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
18359
|
+
}
|
|
18360
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
18361
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
18362
|
+
return v1;
|
|
18363
|
+
}
|
|
18364
|
+
exports.ntripRequestBytes = ntripRequestBytes;
|
|
18365
|
+
|
|
16868
18366
|
/**
|
|
16869
18367
|
* Predict observables for one satellite from a broadcast ephemeris store.
|
|
16870
18368
|
* Delegates to `sidereon_core::observables::predict`.
|
|
@@ -16933,6 +18431,22 @@ function observationKindLabel(kind) {
|
|
|
16933
18431
|
}
|
|
16934
18432
|
exports.observationKindLabel = observationKindLabel;
|
|
16935
18433
|
|
|
18434
|
+
/**
|
|
18435
|
+
* Aggregate observation QC for a parsed RINEX OBS product.
|
|
18436
|
+
* @param {RinexObs} obs
|
|
18437
|
+
* @param {any} options
|
|
18438
|
+
* @returns {any}
|
|
18439
|
+
*/
|
|
18440
|
+
function observationQc(obs, options) {
|
|
18441
|
+
_assertClass(obs, RinexObs);
|
|
18442
|
+
const ret = wasm.observationQc(obs.__wbg_ptr, options);
|
|
18443
|
+
if (ret[2]) {
|
|
18444
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18445
|
+
}
|
|
18446
|
+
return takeFromExternrefTable0(ret[0]);
|
|
18447
|
+
}
|
|
18448
|
+
exports.observationQc = observationQc;
|
|
18449
|
+
|
|
16936
18450
|
/**
|
|
16937
18451
|
* Observe `"sun"` or `"moon"` from a geodetic station at a UTC unix microsecond epoch.
|
|
16938
18452
|
* @param {any} station
|
|
@@ -17117,6 +18631,35 @@ function parseNavcen(html) {
|
|
|
17117
18631
|
}
|
|
17118
18632
|
exports.parseNavcen = parseNavcen;
|
|
17119
18633
|
|
|
18634
|
+
/**
|
|
18635
|
+
* Parse NMEA sentences from bytes.
|
|
18636
|
+
* @param {Uint8Array} bytes
|
|
18637
|
+
* @returns {NmeaParseResult}
|
|
18638
|
+
*/
|
|
18639
|
+
function parseNmea(bytes) {
|
|
18640
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
18641
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18642
|
+
const ret = wasm.parseNmea(ptr0, len0);
|
|
18643
|
+
return NmeaParseResult.__wrap(ret);
|
|
18644
|
+
}
|
|
18645
|
+
exports.parseNmea = parseNmea;
|
|
18646
|
+
|
|
18647
|
+
/**
|
|
18648
|
+
* Parse NTRIP sourcetable text from UTF-8 bytes.
|
|
18649
|
+
* @param {Uint8Array} bytes
|
|
18650
|
+
* @returns {any}
|
|
18651
|
+
*/
|
|
18652
|
+
function parseNtripSourcetable(bytes) {
|
|
18653
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
18654
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18655
|
+
const ret = wasm.parseNtripSourcetable(ptr0, len0);
|
|
18656
|
+
if (ret[2]) {
|
|
18657
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18658
|
+
}
|
|
18659
|
+
return takeFromExternrefTable0(ret[0]);
|
|
18660
|
+
}
|
|
18661
|
+
exports.parseNtripSourcetable = parseNtripSourcetable;
|
|
18662
|
+
|
|
17120
18663
|
/**
|
|
17121
18664
|
* Parse CCSDS OEM KVN text. The KVN reader is forgiving: malformed ephemeris
|
|
17122
18665
|
* lines are skipped and counted in `skippedStates`. Throws an `Error` on a
|
|
@@ -17368,6 +18911,54 @@ function parseRinexObs(bytes) {
|
|
|
17368
18911
|
}
|
|
17369
18912
|
exports.parseRinexObs = parseRinexObs;
|
|
17370
18913
|
|
|
18914
|
+
/**
|
|
18915
|
+
* Parse either CSV or fixed-width TXT space-weather bytes.
|
|
18916
|
+
* @param {Uint8Array} bytes
|
|
18917
|
+
* @returns {SpaceWeatherTable}
|
|
18918
|
+
*/
|
|
18919
|
+
function parseSpaceWeather(bytes) {
|
|
18920
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
18921
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18922
|
+
const ret = wasm.parseSpaceWeather(ptr0, len0);
|
|
18923
|
+
if (ret[2]) {
|
|
18924
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18925
|
+
}
|
|
18926
|
+
return SpaceWeatherTable.__wrap(ret[0]);
|
|
18927
|
+
}
|
|
18928
|
+
exports.parseSpaceWeather = parseSpaceWeather;
|
|
18929
|
+
|
|
18930
|
+
/**
|
|
18931
|
+
* Parse CelesTrak CSSI CSV space-weather text.
|
|
18932
|
+
* @param {string} text
|
|
18933
|
+
* @returns {SpaceWeatherTable}
|
|
18934
|
+
*/
|
|
18935
|
+
function parseSpaceWeatherCsv(text) {
|
|
18936
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
18937
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18938
|
+
const ret = wasm.parseSpaceWeatherCsv(ptr0, len0);
|
|
18939
|
+
if (ret[2]) {
|
|
18940
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18941
|
+
}
|
|
18942
|
+
return SpaceWeatherTable.__wrap(ret[0]);
|
|
18943
|
+
}
|
|
18944
|
+
exports.parseSpaceWeatherCsv = parseSpaceWeatherCsv;
|
|
18945
|
+
|
|
18946
|
+
/**
|
|
18947
|
+
* Parse CelesTrak CSSI fixed-width TXT space-weather text.
|
|
18948
|
+
* @param {string} text
|
|
18949
|
+
* @returns {SpaceWeatherTable}
|
|
18950
|
+
*/
|
|
18951
|
+
function parseSpaceWeatherTxt(text) {
|
|
18952
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
18953
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18954
|
+
const ret = wasm.parseSpaceWeatherTxt(ptr0, len0);
|
|
18955
|
+
if (ret[2]) {
|
|
18956
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18957
|
+
}
|
|
18958
|
+
return SpaceWeatherTable.__wrap(ret[0]);
|
|
18959
|
+
}
|
|
18960
|
+
exports.parseSpaceWeatherTxt = parseSpaceWeatherTxt;
|
|
18961
|
+
|
|
17371
18962
|
/**
|
|
17372
18963
|
* Parse a multi-record TLE file (CelesTrak / Space-Track style) into named,
|
|
17373
18964
|
* initialized [`Tle`] instances. Handles bare 2-line sets, 3-line name+line1+line2
|
|
@@ -17663,6 +19254,20 @@ function propagateBatch(satellites, epochs_unix_us) {
|
|
|
17663
19254
|
}
|
|
17664
19255
|
exports.propagateBatch = propagateBatch;
|
|
17665
19256
|
|
|
19257
|
+
/**
|
|
19258
|
+
* Propagate an ECI Cartesian state and 6x6 covariance to requested epochs.
|
|
19259
|
+
* @param {any} request
|
|
19260
|
+
* @returns {CovarianceEphemeris}
|
|
19261
|
+
*/
|
|
19262
|
+
function propagateCovariance(request) {
|
|
19263
|
+
const ret = wasm.propagateCovariance(request);
|
|
19264
|
+
if (ret[2]) {
|
|
19265
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19266
|
+
}
|
|
19267
|
+
return CovarianceEphemeris.__wrap(ret[0]);
|
|
19268
|
+
}
|
|
19269
|
+
exports.propagateCovariance = propagateCovariance;
|
|
19270
|
+
|
|
17666
19271
|
/**
|
|
17667
19272
|
* @param {any} coe
|
|
17668
19273
|
* @param {number} mu_km3_s2
|
|
@@ -17785,6 +19390,40 @@ function relativeState(chief, deputy) {
|
|
|
17785
19390
|
}
|
|
17786
19391
|
exports.relativeState = relativeState;
|
|
17787
19392
|
|
|
19393
|
+
/**
|
|
19394
|
+
* Repair RINEX navigation text.
|
|
19395
|
+
* @param {Uint8Array} bytes
|
|
19396
|
+
* @param {any} options
|
|
19397
|
+
* @returns {RinexNavRepair}
|
|
19398
|
+
*/
|
|
19399
|
+
function repairRinexNav(bytes, options) {
|
|
19400
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
19401
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19402
|
+
const ret = wasm.repairRinexNav(ptr0, len0, options);
|
|
19403
|
+
if (ret[2]) {
|
|
19404
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19405
|
+
}
|
|
19406
|
+
return RinexNavRepair.__wrap(ret[0]);
|
|
19407
|
+
}
|
|
19408
|
+
exports.repairRinexNav = repairRinexNav;
|
|
19409
|
+
|
|
19410
|
+
/**
|
|
19411
|
+
* Repair RINEX observation text.
|
|
19412
|
+
* @param {Uint8Array} bytes
|
|
19413
|
+
* @param {any} options
|
|
19414
|
+
* @returns {RinexObsRepair}
|
|
19415
|
+
*/
|
|
19416
|
+
function repairRinexObs(bytes, options) {
|
|
19417
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
19418
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19419
|
+
const ret = wasm.repairRinexObs(ptr0, len0, options);
|
|
19420
|
+
if (ret[2]) {
|
|
19421
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19422
|
+
}
|
|
19423
|
+
return RinexObsRepair.__wrap(ret[0]);
|
|
19424
|
+
}
|
|
19425
|
+
exports.repairRinexObs = repairRinexObs;
|
|
19426
|
+
|
|
17788
19427
|
/**
|
|
17789
19428
|
* Build a sampled GPS C/A code replica, an `Int8Array`.
|
|
17790
19429
|
* @param {bigint} prn
|
|
@@ -17878,6 +19517,39 @@ function rswRotation(position_km, velocity_km_s) {
|
|
|
17878
19517
|
}
|
|
17879
19518
|
exports.rswRotation = rswRotation;
|
|
17880
19519
|
|
|
19520
|
+
/**
|
|
19521
|
+
* Derive a RINEX LLI value for one MSM signal cell.
|
|
19522
|
+
*
|
|
19523
|
+
* `previous` is `null`/`undefined` or `{ elapsedMs, minLockTimeMs? }`.
|
|
19524
|
+
* `currentMinLockTimeMs` is a number or `null`/`undefined` for reserved current
|
|
19525
|
+
* indicators.
|
|
19526
|
+
* @param {any} previous
|
|
19527
|
+
* @param {any} current_min_lock_time_ms
|
|
19528
|
+
* @param {boolean} half_cycle_ambiguity
|
|
19529
|
+
* @returns {number}
|
|
19530
|
+
*/
|
|
19531
|
+
function rtcmDeriveLli(previous, current_min_lock_time_ms, half_cycle_ambiguity) {
|
|
19532
|
+
const ret = wasm.rtcmDeriveLli(previous, current_min_lock_time_ms, half_cycle_ambiguity);
|
|
19533
|
+
if (ret[2]) {
|
|
19534
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19535
|
+
}
|
|
19536
|
+
return ret[0];
|
|
19537
|
+
}
|
|
19538
|
+
exports.rtcmDeriveLli = rtcmDeriveLli;
|
|
19539
|
+
|
|
19540
|
+
/**
|
|
19541
|
+
* RINEX LLI bit constants used by the RTCM MSM LLI helpers.
|
|
19542
|
+
* @returns {any}
|
|
19543
|
+
*/
|
|
19544
|
+
function rtcmLliBits() {
|
|
19545
|
+
const ret = wasm.rtcmLliBits();
|
|
19546
|
+
if (ret[2]) {
|
|
19547
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19548
|
+
}
|
|
19549
|
+
return takeFromExternrefTable0(ret[0]);
|
|
19550
|
+
}
|
|
19551
|
+
exports.rtcmLliBits = rtcmLliBits;
|
|
19552
|
+
|
|
17881
19553
|
/**
|
|
17882
19554
|
* Read the 12-bit RTCM message number from a message body.
|
|
17883
19555
|
*
|
|
@@ -17897,6 +19569,62 @@ function rtcmMessageNumber(body) {
|
|
|
17897
19569
|
}
|
|
17898
19570
|
exports.rtcmMessageNumber = rtcmMessageNumber;
|
|
17899
19571
|
|
|
19572
|
+
/**
|
|
19573
|
+
* Minimum continuous-lock time encoded by an MSM4/7 lock-time indicator.
|
|
19574
|
+
*
|
|
19575
|
+
* `kind` is `"msm4"` or `"msm7"`. Reserved or out-of-range indicators return
|
|
19576
|
+
* `undefined`.
|
|
19577
|
+
* @param {string} kind
|
|
19578
|
+
* @param {number} indicator
|
|
19579
|
+
* @returns {any}
|
|
19580
|
+
*/
|
|
19581
|
+
function rtcmMinimumLockTimeMs(kind, indicator) {
|
|
19582
|
+
const ptr0 = passStringToWasm0(kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
19583
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19584
|
+
const ret = wasm.rtcmMinimumLockTimeMs(ptr0, len0, indicator);
|
|
19585
|
+
if (ret[2]) {
|
|
19586
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19587
|
+
}
|
|
19588
|
+
return takeFromExternrefTable0(ret[0]);
|
|
19589
|
+
}
|
|
19590
|
+
exports.rtcmMinimumLockTimeMs = rtcmMinimumLockTimeMs;
|
|
19591
|
+
|
|
19592
|
+
/**
|
|
19593
|
+
* Elapsed milliseconds between two raw MSM epoch-time fields.
|
|
19594
|
+
* @param {string} system
|
|
19595
|
+
* @param {number} previous_epoch_time
|
|
19596
|
+
* @param {number} current_epoch_time
|
|
19597
|
+
* @returns {number}
|
|
19598
|
+
*/
|
|
19599
|
+
function rtcmMsmEpochDtMs(system, previous_epoch_time, current_epoch_time) {
|
|
19600
|
+
const ptr0 = passStringToWasm0(system, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
19601
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19602
|
+
const ret = wasm.rtcmMsmEpochDtMs(ptr0, len0, previous_epoch_time, current_epoch_time);
|
|
19603
|
+
if (ret[2]) {
|
|
19604
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19605
|
+
}
|
|
19606
|
+
return ret[0];
|
|
19607
|
+
}
|
|
19608
|
+
exports.rtcmMsmEpochDtMs = rtcmMsmEpochDtMs;
|
|
19609
|
+
|
|
19610
|
+
/**
|
|
19611
|
+
* RINEX 3 observation-code suffix for an MSM signal id, or `undefined` for
|
|
19612
|
+
* reserved ids.
|
|
19613
|
+
* @param {string} system
|
|
19614
|
+
* @param {number} signal_id
|
|
19615
|
+
* @returns {any}
|
|
19616
|
+
*/
|
|
19617
|
+
function rtcmMsmSignalRinexCode(system, signal_id) {
|
|
19618
|
+
const ptr0 = passStringToWasm0(system, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
19619
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19620
|
+
const ret = wasm.rtcmMsmSignalRinexCode(ptr0, len0, signal_id);
|
|
19621
|
+
if (ret[2]) {
|
|
19622
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19623
|
+
}
|
|
19624
|
+
return takeFromExternrefTable0(ret[0]);
|
|
19625
|
+
}
|
|
19626
|
+
exports.rtcmMsmSignalRinexCode = rtcmMsmSignalRinexCode;
|
|
19627
|
+
|
|
17900
19628
|
/**
|
|
17901
19629
|
* @param {Float64Array} position_km
|
|
17902
19630
|
* @param {Float64Array} velocity_km_s
|
|
@@ -19180,6 +20908,24 @@ function toCsv(records, booleans) {
|
|
|
19180
20908
|
}
|
|
19181
20909
|
exports.toCsv = toCsv;
|
|
19182
20910
|
|
|
20911
|
+
/**
|
|
20912
|
+
* Transport a 6x6 covariance through caller-supplied STM segments.
|
|
20913
|
+
* @param {Float64Array} covariance
|
|
20914
|
+
* @param {any} segments
|
|
20915
|
+
* @param {any} options
|
|
20916
|
+
* @returns {CovarianceTransportResult}
|
|
20917
|
+
*/
|
|
20918
|
+
function transportCovariance(covariance, segments, options) {
|
|
20919
|
+
const ptr0 = passArrayF64ToWasm0(covariance, wasm.__wbindgen_malloc);
|
|
20920
|
+
const len0 = WASM_VECTOR_LEN;
|
|
20921
|
+
const ret = wasm.transportCovariance(ptr0, len0, segments, options);
|
|
20922
|
+
if (ret[2]) {
|
|
20923
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
20924
|
+
}
|
|
20925
|
+
return CovarianceTransportResult.__wrap(ret[0]);
|
|
20926
|
+
}
|
|
20927
|
+
exports.transportCovariance = transportCovariance;
|
|
20928
|
+
|
|
19183
20929
|
/**
|
|
19184
20930
|
* Niell hydrostatic and wet mapping factors at an elevation.
|
|
19185
20931
|
*
|
|
@@ -19557,6 +21303,10 @@ function __wbg_get_imports() {
|
|
|
19557
21303
|
const ret = FleetPass.__wrap(arg0);
|
|
19558
21304
|
return ret;
|
|
19559
21305
|
},
|
|
21306
|
+
__wbg_fromCodePoint_a952b701bbb83fa4: function() { return handleError(function (arg0) {
|
|
21307
|
+
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
21308
|
+
return ret;
|
|
21309
|
+
}, arguments); },
|
|
19560
21310
|
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
19561
21311
|
const ret = arg0[arg1 >>> 0];
|
|
19562
21312
|
return ret;
|
|
@@ -19889,9 +21639,15 @@ const BroadcastEphemerisFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
19889
21639
|
const BroadcastEvaluationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19890
21640
|
? { register: () => {}, unregister: () => {} }
|
|
19891
21641
|
: new FinalizationRegistry(ptr => wasm.__wbg_broadcastevaluation_free(ptr, 1));
|
|
21642
|
+
const BroadcastGroupDelaysJsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21643
|
+
? { register: () => {}, unregister: () => {} }
|
|
21644
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_broadcastgroupdelaysjs_free(ptr, 1));
|
|
19892
21645
|
const BroadcastRecordJsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19893
21646
|
? { register: () => {}, unregister: () => {} }
|
|
19894
21647
|
: new FinalizationRegistry(ptr => wasm.__wbg_broadcastrecordjs_free(ptr, 1));
|
|
21648
|
+
const BroadcastStoreEvaluationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21649
|
+
? { register: () => {}, unregister: () => {} }
|
|
21650
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_broadcaststoreevaluation_free(ptr, 1));
|
|
19895
21651
|
const CarrierPairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19896
21652
|
? { register: () => {}, unregister: () => {} }
|
|
19897
21653
|
: new FinalizationRegistry(ptr => wasm.__wbg_carrierpair_free(ptr, 1));
|
|
@@ -19919,6 +21675,9 @@ const ClockPolynomialJsFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
19919
21675
|
const ClockSeriesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19920
21676
|
? { register: () => {}, unregister: () => {} }
|
|
19921
21677
|
: new FinalizationRegistry(ptr => wasm.__wbg_clockseries_free(ptr, 1));
|
|
21678
|
+
const CnavParametersJsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21679
|
+
? { register: () => {}, unregister: () => {} }
|
|
21680
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cnavparametersjs_free(ptr, 1));
|
|
19922
21681
|
const CollisionProbabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19923
21682
|
? { register: () => {}, unregister: () => {} }
|
|
19924
21683
|
: new FinalizationRegistry(ptr => wasm.__wbg_collisionprobability_free(ptr, 1));
|
|
@@ -19931,6 +21690,12 @@ const ConstellationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
19931
21690
|
const CorrelationResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19932
21691
|
? { register: () => {}, unregister: () => {} }
|
|
19933
21692
|
: new FinalizationRegistry(ptr => wasm.__wbg_correlationresult_free(ptr, 1));
|
|
21693
|
+
const CovarianceEphemerisFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21694
|
+
? { register: () => {}, unregister: () => {} }
|
|
21695
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_covarianceephemeris_free(ptr, 1));
|
|
21696
|
+
const CovarianceTransportResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21697
|
+
? { register: () => {}, unregister: () => {} }
|
|
21698
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_covariancetransportresult_free(ptr, 1));
|
|
19934
21699
|
const CoverageGridFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
19935
21700
|
? { register: () => {}, unregister: () => {} }
|
|
19936
21701
|
: new FinalizationRegistry(ptr => wasm.__wbg_coveragegrid_free(ptr, 1));
|
|
@@ -20078,6 +21843,15 @@ const MovingBaselineSolutionFinalization = (typeof FinalizationRegistry === 'und
|
|
|
20078
21843
|
const NamedTleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20079
21844
|
? { register: () => {}, unregister: () => {} }
|
|
20080
21845
|
: new FinalizationRegistry(ptr => wasm.__wbg_namedtle_free(ptr, 1));
|
|
21846
|
+
const NmeaAccumulatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21847
|
+
? { register: () => {}, unregister: () => {} }
|
|
21848
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nmeaaccumulator_free(ptr, 1));
|
|
21849
|
+
const NmeaParseResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21850
|
+
? { register: () => {}, unregister: () => {} }
|
|
21851
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nmeaparseresult_free(ptr, 1));
|
|
21852
|
+
const NtripClientMachineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21853
|
+
? { register: () => {}, unregister: () => {} }
|
|
21854
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ntripclientmachine_free(ptr, 1));
|
|
20081
21855
|
const ObsEpochFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20082
21856
|
? { register: () => {}, unregister: () => {} }
|
|
20083
21857
|
: new FinalizationRegistry(ptr => wasm.__wbg_obsepoch_free(ptr, 1));
|
|
@@ -20183,9 +21957,18 @@ const ReducedOrbitStateFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
20183
21957
|
const RinexClockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20184
21958
|
? { register: () => {}, unregister: () => {} }
|
|
20185
21959
|
: new FinalizationRegistry(ptr => wasm.__wbg_rinexclock_free(ptr, 1));
|
|
21960
|
+
const RinexNavRepairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21961
|
+
? { register: () => {}, unregister: () => {} }
|
|
21962
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rinexnavrepair_free(ptr, 1));
|
|
20186
21963
|
const RinexObsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20187
21964
|
? { register: () => {}, unregister: () => {} }
|
|
20188
21965
|
: new FinalizationRegistry(ptr => wasm.__wbg_rinexobs_free(ptr, 1));
|
|
21966
|
+
const RinexObsRepairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21967
|
+
? { register: () => {}, unregister: () => {} }
|
|
21968
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rinexobsrepair_free(ptr, 1));
|
|
21969
|
+
const RtcmLockTimeTrackerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
21970
|
+
? { register: () => {}, unregister: () => {} }
|
|
21971
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rtcmlocktimetracker_free(ptr, 1));
|
|
20189
21972
|
const RtkFixedSolutionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20190
21973
|
? { register: () => {}, unregister: () => {} }
|
|
20191
21974
|
: new FinalizationRegistry(ptr => wasm.__wbg_rtkfixedsolution_free(ptr, 1));
|
|
@@ -20246,6 +22029,9 @@ const SpaceWeatherFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
20246
22029
|
const SpaceWeatherDefaultsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20247
22030
|
? { register: () => {}, unregister: () => {} }
|
|
20248
22031
|
: new FinalizationRegistry(ptr => wasm.__wbg_spaceweatherdefaults_free(ptr, 1));
|
|
22032
|
+
const SpaceWeatherTableFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
22033
|
+
? { register: () => {}, unregister: () => {} }
|
|
22034
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spaceweathertable_free(ptr, 1));
|
|
20249
22035
|
const SpkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20250
22036
|
? { register: () => {}, unregister: () => {} }
|
|
20251
22037
|
: new FinalizationRegistry(ptr => wasm.__wbg_spk_free(ptr, 1));
|
|
@@ -20270,6 +22056,9 @@ const SunMoonFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
20270
22056
|
const TleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20271
22057
|
? { register: () => {}, unregister: () => {} }
|
|
20272
22058
|
: new FinalizationRegistry(ptr => wasm.__wbg_tle_free(ptr, 1));
|
|
22059
|
+
const TleFitFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
22060
|
+
? { register: () => {}, unregister: () => {} }
|
|
22061
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tlefit_free(ptr, 1));
|
|
20273
22062
|
const TlePropagationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
20274
22063
|
? { register: () => {}, unregister: () => {} }
|
|
20275
22064
|
: new FinalizationRegistry(ptr => wasm.__wbg_tlepropagation_free(ptr, 1));
|