@neilberkman/sidereon 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/package.json +4 -4
- package/pkg/sidereon.d.ts +2453 -2437
- package/pkg/sidereon.js +44 -33
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +2422 -2422
- package/pkg-node/sidereon.d.ts +31 -15
- package/pkg-node/sidereon.js +44 -33
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +2422 -2422
- package/types/sidereon-extra.d.ts +1 -0
- /package/third_party_source/{sidereon-core-3.0.2 → sidereon-core-3.0.4}/tides/mod.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.2 → sidereon-core-3.0.4}/tides/ocean.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.2 → sidereon-core-3.0.4}/tides/pole.rs +0 -0
package/pkg/sidereon.js
CHANGED
|
@@ -1646,8 +1646,8 @@ export class BroadcastEphemeris {
|
|
|
1646
1646
|
* @param {string} satellite
|
|
1647
1647
|
* @param {ExactEpochQuery} state_epoch
|
|
1648
1648
|
* @param {Float64Array} position_ecef_m
|
|
1649
|
-
* @param {boolean | null}
|
|
1650
|
-
* @param {number | null}
|
|
1649
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
1650
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
1651
1651
|
* @param {string | null} [validity]
|
|
1652
1652
|
* @returns {ClockRelativity}
|
|
1653
1653
|
*/
|
|
@@ -1660,7 +1660,7 @@ export class BroadcastEphemeris {
|
|
|
1660
1660
|
const len1 = WASM_VECTOR_LEN;
|
|
1661
1661
|
var ptr2 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1662
1662
|
var len2 = WASM_VECTOR_LEN;
|
|
1663
|
-
const ret = wasm.broadcastephemeris_ssrClockRelativityAtExactQuery(this.__wbg_ptr, store.__wbg_ptr, ptr0, len0, state_epoch.__wbg_ptr, ptr1, len1, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
1663
|
+
const ret = wasm.broadcastephemeris_ssrClockRelativityAtExactQuery(this.__wbg_ptr, store.__wbg_ptr, ptr0, len0, state_epoch.__wbg_ptr, ptr1, len1, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr2, len2);
|
|
1664
1664
|
if (ret[2]) {
|
|
1665
1665
|
throw takeFromExternrefTable0(ret[1]);
|
|
1666
1666
|
}
|
|
@@ -1673,8 +1673,8 @@ export class BroadcastEphemeris {
|
|
|
1673
1673
|
* @param {string} satellite
|
|
1674
1674
|
* @param {ExactEpochQuery} state_epoch
|
|
1675
1675
|
* @param {ExactEpochQuery} selection_epoch
|
|
1676
|
-
* @param {boolean | null}
|
|
1677
|
-
* @param {number | null}
|
|
1676
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
1677
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
1678
1678
|
* @param {string | null} [validity]
|
|
1679
1679
|
* @returns {number}
|
|
1680
1680
|
*/
|
|
@@ -1686,7 +1686,7 @@ export class BroadcastEphemeris {
|
|
|
1686
1686
|
_assertClass(selection_epoch, ExactEpochQuery);
|
|
1687
1687
|
var ptr1 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1688
1688
|
var len1 = WASM_VECTOR_LEN;
|
|
1689
|
-
const ret = wasm.broadcastephemeris_ssrEphemerisVarianceAtExactQueries(this.__wbg_ptr, store.__wbg_ptr, ptr0, len0, state_epoch.__wbg_ptr, selection_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
1689
|
+
const ret = wasm.broadcastephemeris_ssrEphemerisVarianceAtExactQueries(this.__wbg_ptr, store.__wbg_ptr, ptr0, len0, state_epoch.__wbg_ptr, selection_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr1, len1);
|
|
1690
1690
|
if (ret[2]) {
|
|
1691
1691
|
throw takeFromExternrefTable0(ret[1]);
|
|
1692
1692
|
}
|
|
@@ -5379,7 +5379,9 @@ if (Symbol.dispose) DragForce.prototype[Symbol.dispose] = DragForce.prototype.fr
|
|
|
5379
5379
|
* A DTED terrain tile cache rooted at a directory of DTED Level 2 files.
|
|
5380
5380
|
*
|
|
5381
5381
|
* Heights are ORTHOMETRIC terrain elevations in meters. Point order is always
|
|
5382
|
-
* longitude first, then latitude, both in degrees.
|
|
5382
|
+
* longitude first, then latitude, both in degrees. WebAssembly has no host
|
|
5383
|
+
* filesystem, so construction is rejected explicitly; use
|
|
5384
|
+
* `MmapTerrain.fromBytes` with fetched or Node-read terrain-store bytes.
|
|
5383
5385
|
*/
|
|
5384
5386
|
export class DtedTerrain {
|
|
5385
5387
|
__destroy_into_raw() {
|
|
@@ -5455,15 +5457,19 @@ export class DtedTerrain {
|
|
|
5455
5457
|
/**
|
|
5456
5458
|
* Create a DTED terrain reader rooted at `root`.
|
|
5457
5459
|
*
|
|
5458
|
-
*
|
|
5459
|
-
*
|
|
5460
|
-
*
|
|
5460
|
+
* WebAssembly cannot access a host filesystem root. This constructor
|
|
5461
|
+
* throws a `TypeError` instead of silently treating every tile as missing.
|
|
5462
|
+
* Load a canonical terrain store with `MmapTerrain.fromBytes` instead.
|
|
5463
|
+
* @param {string} _root
|
|
5461
5464
|
*/
|
|
5462
|
-
constructor(
|
|
5463
|
-
const ptr0 = passStringToWasm0(
|
|
5465
|
+
constructor(_root) {
|
|
5466
|
+
const ptr0 = passStringToWasm0(_root, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5464
5467
|
const len0 = WASM_VECTOR_LEN;
|
|
5465
5468
|
const ret = wasm.dtedterrain_new(ptr0, len0);
|
|
5466
|
-
|
|
5469
|
+
if (ret[2]) {
|
|
5470
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5471
|
+
}
|
|
5472
|
+
this.__wbg_ptr = ret[0];
|
|
5467
5473
|
DtedTerrainFinalization.register(this, this.__wbg_ptr, this);
|
|
5468
5474
|
return this;
|
|
5469
5475
|
}
|
|
@@ -25163,7 +25169,7 @@ export class SsrCorrectedEphemeris {
|
|
|
25163
25169
|
* @param {string} satellite
|
|
25164
25170
|
* @param {ExactEpochQuery} state_epoch
|
|
25165
25171
|
* @param {Float64Array} position_ecef_m
|
|
25166
|
-
* @returns {
|
|
25172
|
+
* @returns {ClockRelativity}
|
|
25167
25173
|
*/
|
|
25168
25174
|
clockRelativityAtQuery(satellite, state_epoch, position_ecef_m) {
|
|
25169
25175
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -25302,7 +25308,7 @@ export class SsrCorrectedEphemeris {
|
|
|
25302
25308
|
* staleness, UT1, size, attitude and regional-provider settings.
|
|
25303
25309
|
* @param {BroadcastEphemeris} broadcast
|
|
25304
25310
|
* @param {SsrCorrectionStore} store
|
|
25305
|
-
* @param {
|
|
25311
|
+
* @param {SsrCorrectedEphemerisOptions | null | undefined} options
|
|
25306
25312
|
*/
|
|
25307
25313
|
constructor(broadcast, store, options) {
|
|
25308
25314
|
_assertClass(broadcast, BroadcastEphemeris);
|
|
@@ -25329,7 +25335,7 @@ export class SsrCorrectedEphemeris {
|
|
|
25329
25335
|
* @param {string} satellite
|
|
25330
25336
|
* @param {ExactEpochQuery} state_epoch
|
|
25331
25337
|
* @param {ExactEpochQuery} selection_epoch
|
|
25332
|
-
* @returns {
|
|
25338
|
+
* @returns {Ut1Validated<SelectedPositionClock> | null}
|
|
25333
25339
|
*/
|
|
25334
25340
|
selectedPositionClockAtQueries(satellite, state_epoch, selection_epoch) {
|
|
25335
25341
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -25361,7 +25367,7 @@ export class SsrCorrectedEphemeris {
|
|
|
25361
25367
|
* @param {string} satellite
|
|
25362
25368
|
* @param {ExactEpochQuery} state_epoch
|
|
25363
25369
|
* @param {ExactEpochQuery} selection_epoch
|
|
25364
|
-
* @returns {
|
|
25370
|
+
* @returns {Ut1Validated<number> | null}
|
|
25365
25371
|
*/
|
|
25366
25372
|
transmitEpochClockAtQueries(satellite, state_epoch, selection_epoch) {
|
|
25367
25373
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -27322,7 +27328,7 @@ if (Symbol.dispose) TerrainGeoidModel.prototype[Symbol.dispose] = TerrainGeoidMo
|
|
|
27322
27328
|
|
|
27323
27329
|
/**
|
|
27324
27330
|
* Terrain store conversion, serialization, and parsing error variants.
|
|
27325
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
|
|
27331
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11}
|
|
27326
27332
|
*/
|
|
27327
27333
|
export const TerrainStoreError = Object.freeze({
|
|
27328
27334
|
/**
|
|
@@ -27372,6 +27378,11 @@ export const TerrainStoreError = Object.freeze({
|
|
|
27372
27378
|
* A future core terrain-store error not yet mapped by this binding.
|
|
27373
27379
|
*/
|
|
27374
27380
|
Unknown: 10, "10": "Unknown",
|
|
27381
|
+
/**
|
|
27382
|
+
* A DTED input could not be read as a tile. Appended to preserve all
|
|
27383
|
+
* previously published numeric enum discriminants.
|
|
27384
|
+
*/
|
|
27385
|
+
Tile: 11, "11": "Tile",
|
|
27375
27386
|
});
|
|
27376
27387
|
|
|
27377
27388
|
/**
|
|
@@ -37757,8 +37768,8 @@ export function solvePppFixed(sp3, epochs, float_solution, config) {
|
|
|
37757
37768
|
* @param {any} epochs
|
|
37758
37769
|
* @param {PppFloatSolution} float_solution
|
|
37759
37770
|
* @param {any} config
|
|
37760
|
-
* @param {boolean | null}
|
|
37761
|
-
* @param {number | null}
|
|
37771
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
37772
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
37762
37773
|
* @param {string | null} [validity]
|
|
37763
37774
|
* @returns {PppFixedSolution}
|
|
37764
37775
|
*/
|
|
@@ -37768,7 +37779,7 @@ export function solvePppFixedWithSsr(broadcast, store, epochs, float_solution, c
|
|
|
37768
37779
|
_assertClass(float_solution, PppFloatSolution);
|
|
37769
37780
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37770
37781
|
var len0 = WASM_VECTOR_LEN;
|
|
37771
|
-
const ret = wasm.solvePppFixedWithSsr(broadcast.__wbg_ptr, store.__wbg_ptr, epochs, float_solution.__wbg_ptr, config, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
37782
|
+
const ret = wasm.solvePppFixedWithSsr(broadcast.__wbg_ptr, store.__wbg_ptr, epochs, float_solution.__wbg_ptr, config, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr0, len0);
|
|
37772
37783
|
if (ret[2]) {
|
|
37773
37784
|
throw takeFromExternrefTable0(ret[1]);
|
|
37774
37785
|
}
|
|
@@ -37802,8 +37813,8 @@ export function solvePppFloat(sp3, epochs, initial_state, config) {
|
|
|
37802
37813
|
* @param {any} epochs
|
|
37803
37814
|
* @param {any} initial_state
|
|
37804
37815
|
* @param {any} config
|
|
37805
|
-
* @param {boolean | null}
|
|
37806
|
-
* @param {number | null}
|
|
37816
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
37817
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
37807
37818
|
* @param {string | null} [validity]
|
|
37808
37819
|
* @returns {PppFloatSolution}
|
|
37809
37820
|
*/
|
|
@@ -37812,7 +37823,7 @@ export function solvePppFloatWithSsr(broadcast, store, epochs, initial_state, co
|
|
|
37812
37823
|
_assertClass(store, SsrCorrectionStore);
|
|
37813
37824
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37814
37825
|
var len0 = WASM_VECTOR_LEN;
|
|
37815
|
-
const ret = wasm.solvePppFloatWithSsr(broadcast.__wbg_ptr, store.__wbg_ptr, epochs, initial_state, config, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
37826
|
+
const ret = wasm.solvePppFloatWithSsr(broadcast.__wbg_ptr, store.__wbg_ptr, epochs, initial_state, config, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr0, len0);
|
|
37816
37827
|
if (ret[2]) {
|
|
37817
37828
|
throw takeFromExternrefTable0(ret[1]);
|
|
37818
37829
|
}
|
|
@@ -37928,8 +37939,8 @@ export function solveSppSbas(broadcast, store, geo, request, mode) {
|
|
|
37928
37939
|
* @param {SsrCorrectionStore} store
|
|
37929
37940
|
* @param {any} request
|
|
37930
37941
|
* @param {ExactEpoch} receive_epoch
|
|
37931
|
-
* @param {boolean | null}
|
|
37932
|
-
* @param {number | null}
|
|
37942
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
37943
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
37933
37944
|
* @param {string | null} [validity]
|
|
37934
37945
|
* @returns {SppSolution}
|
|
37935
37946
|
*/
|
|
@@ -37939,7 +37950,7 @@ export function solveSppWithSsrExactEpoch(broadcast, store, request, receive_epo
|
|
|
37939
37950
|
_assertClass(receive_epoch, ExactEpoch);
|
|
37940
37951
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37941
37952
|
var len0 = WASM_VECTOR_LEN;
|
|
37942
|
-
const ret = wasm.solveSppWithSsrExactEpoch(broadcast.__wbg_ptr, store.__wbg_ptr, request, receive_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
37953
|
+
const ret = wasm.solveSppWithSsrExactEpoch(broadcast.__wbg_ptr, store.__wbg_ptr, request, receive_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr0, len0);
|
|
37943
37954
|
if (ret[2]) {
|
|
37944
37955
|
throw takeFromExternrefTable0(ret[1]);
|
|
37945
37956
|
}
|
|
@@ -38422,8 +38433,8 @@ export function sppInputsFromRinexObs(source, obs, options) {
|
|
|
38422
38433
|
* @param {SsrCorrectionStore} store
|
|
38423
38434
|
* @param {string} sat
|
|
38424
38435
|
* @param {number} t_j2000_s
|
|
38425
|
-
* @param {boolean | null}
|
|
38426
|
-
* @param {number | null}
|
|
38436
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
38437
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
38427
38438
|
* @param {string | null} [ut1_validity]
|
|
38428
38439
|
* @returns {SsrCorrectedState | null}
|
|
38429
38440
|
*/
|
|
@@ -38434,7 +38445,7 @@ export function ssrCorrectedState(broadcast, store, sat, t_j2000_s, fallback_to_
|
|
|
38434
38445
|
const len0 = WASM_VECTOR_LEN;
|
|
38435
38446
|
var ptr1 = isLikeNone(ut1_validity) ? 0 : passStringToWasm0(ut1_validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38436
38447
|
var len1 = WASM_VECTOR_LEN;
|
|
38437
|
-
const ret = wasm.ssrCorrectedState(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, t_j2000_s, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
38448
|
+
const ret = wasm.ssrCorrectedState(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, t_j2000_s, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr1, len1);
|
|
38438
38449
|
if (ret[2]) {
|
|
38439
38450
|
throw takeFromExternrefTable0(ret[1]);
|
|
38440
38451
|
}
|
|
@@ -38447,8 +38458,8 @@ export function ssrCorrectedState(broadcast, store, sat, t_j2000_s, fallback_to_
|
|
|
38447
38458
|
* @param {string} sat
|
|
38448
38459
|
* @param {ExactEpochQuery} epoch
|
|
38449
38460
|
* @param {ExactEpochQuery} selection_epoch
|
|
38450
|
-
* @param {boolean | null}
|
|
38451
|
-
* @param {number | null}
|
|
38461
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
38462
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
38452
38463
|
* @param {string | null} [ut1_validity]
|
|
38453
38464
|
* @returns {SsrCorrectedState | null}
|
|
38454
38465
|
*/
|
|
@@ -38461,7 +38472,7 @@ export function ssrCorrectedStateExact(broadcast, store, sat, epoch, selection_e
|
|
|
38461
38472
|
_assertClass(selection_epoch, ExactEpochQuery);
|
|
38462
38473
|
var ptr1 = isLikeNone(ut1_validity) ? 0 : passStringToWasm0(ut1_validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38463
38474
|
var len1 = WASM_VECTOR_LEN;
|
|
38464
|
-
const ret = wasm.ssrCorrectedStateExact(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, epoch.__wbg_ptr, selection_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
38475
|
+
const ret = wasm.ssrCorrectedStateExact(broadcast.__wbg_ptr, store.__wbg_ptr, ptr0, len0, epoch.__wbg_ptr, selection_epoch.__wbg_ptr, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0, allow_regional_provider, ptr1, len1);
|
|
38465
38476
|
if (ret[2]) {
|
|
38466
38477
|
throw takeFromExternrefTable0(ret[1]);
|
|
38467
38478
|
}
|
package/pkg/sidereon_bg.wasm
CHANGED
|
Binary file
|