@neilberkman/sidereon 3.0.1 → 3.0.3
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 +2030 -2014
- package/pkg/sidereon.js +97 -44
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1999 -1999
- package/pkg-node/sidereon.d.ts +31 -15
- package/pkg-node/sidereon.js +97 -44
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1999 -1999
- package/types/sidereon-extra.d.ts +1 -0
- /package/third_party_source/{sidereon-core-3.0.1 → sidereon-core-3.0.3}/tides/mod.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.1 → sidereon-core-3.0.3}/tides/ocean.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.1 → sidereon-core-3.0.3}/tides/pole.rs +0 -0
package/pkg-node/sidereon.d.ts
CHANGED
|
@@ -1743,6 +1743,11 @@ export type RinexClockRecordReading =
|
|
|
1743
1743
|
| "edited"
|
|
1744
1744
|
| (string & {});
|
|
1745
1745
|
|
|
1746
|
+
export type RinexClockRecordReadingDetail = {
|
|
1747
|
+
kind: "columnsTrailingText";
|
|
1748
|
+
layout: "v300" | "v304";
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1746
1751
|
/**
|
|
1747
1752
|
* One data record. `values` are the declared values, bias first;
|
|
1748
1753
|
* `surplusValues` are values beyond the declared count, each at its position
|
|
@@ -1763,7 +1768,9 @@ export interface RinexClockRecord {
|
|
|
1763
1768
|
line: number | null;
|
|
1764
1769
|
lineCount: number;
|
|
1765
1770
|
reading: RinexClockRecordReading;
|
|
1771
|
+
readingDetail: RinexClockRecordReadingDetail | null;
|
|
1766
1772
|
continuationReading: RinexClockRecordReading | null;
|
|
1773
|
+
continuationReadingDetail: RinexClockRecordReadingDetail | null;
|
|
1767
1774
|
sourceLines: string[];
|
|
1768
1775
|
}
|
|
1769
1776
|
|
|
@@ -1809,6 +1816,7 @@ export type RinexClockNotice =
|
|
|
1809
1816
|
| { kind: "SURPLUS_VALUES"; records: number; firstLine: number; message: string }
|
|
1810
1817
|
| { kind: "OTHER_LAYOUT_RECORDS"; records: number; firstLine: number; message: string }
|
|
1811
1818
|
| { kind: "WHITESPACE_RECORDS"; records: number; firstLine: number; message: string }
|
|
1819
|
+
| { kind: "TRAILING_TEXT_RECORDS"; records: number; firstLine: number; message: string }
|
|
1812
1820
|
| { kind: "UNKNOWN"; message: string };
|
|
1813
1821
|
|
|
1814
1822
|
/** A departure the writer emitted under a write policy. */
|
|
@@ -6130,12 +6138,12 @@ export class BroadcastEphemeris {
|
|
|
6130
6138
|
* Evaluate state-dependent SSR clock relativity at the exact state epoch
|
|
6131
6139
|
* and supplied satellite position in ECEF metres.
|
|
6132
6140
|
*/
|
|
6133
|
-
ssrClockRelativityAtExactQuery(store: SsrCorrectionStore, satellite: string, state_epoch: ExactEpochQuery, position_ecef_m: Float64Array, fallback_to_broadcast
|
|
6141
|
+
ssrClockRelativityAtExactQuery(store: SsrCorrectionStore, satellite: string, state_epoch: ExactEpochQuery, position_ecef_m: Float64Array, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, validity?: string | null): ClockRelativity;
|
|
6134
6142
|
/**
|
|
6135
6143
|
* Evaluate SSR source variance in square metres at the exact state epoch,
|
|
6136
6144
|
* selecting the broadcast record at the distinct exact selection epoch.
|
|
6137
6145
|
*/
|
|
6138
|
-
ssrEphemerisVarianceAtExactQueries(store: SsrCorrectionStore, satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery, fallback_to_broadcast
|
|
6146
|
+
ssrEphemerisVarianceAtExactQueries(store: SsrCorrectionStore, satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, validity?: string | null): number;
|
|
6139
6147
|
/**
|
|
6140
6148
|
* Serialize the Keplerian broadcast records to RINEX navigation text,
|
|
6141
6149
|
* with a `PGM / RUN BY / DATE` record. Deterministic: the same record set
|
|
@@ -7635,7 +7643,9 @@ export class DragForce {
|
|
|
7635
7643
|
* A DTED terrain tile cache rooted at a directory of DTED Level 2 files.
|
|
7636
7644
|
*
|
|
7637
7645
|
* Heights are ORTHOMETRIC terrain elevations in meters. Point order is always
|
|
7638
|
-
* longitude first, then latitude, both in degrees.
|
|
7646
|
+
* longitude first, then latitude, both in degrees. WebAssembly has no host
|
|
7647
|
+
* filesystem, so construction is rejected explicitly; use
|
|
7648
|
+
* `MmapTerrain.fromBytes` with fetched or Node-read terrain-store bytes.
|
|
7639
7649
|
*/
|
|
7640
7650
|
export class DtedTerrain {
|
|
7641
7651
|
free(): void;
|
|
@@ -7675,10 +7685,11 @@ export class DtedTerrain {
|
|
|
7675
7685
|
/**
|
|
7676
7686
|
* Create a DTED terrain reader rooted at `root`.
|
|
7677
7687
|
*
|
|
7678
|
-
*
|
|
7679
|
-
*
|
|
7688
|
+
* WebAssembly cannot access a host filesystem root. This constructor
|
|
7689
|
+
* throws a `TypeError` instead of silently treating every tile as missing.
|
|
7690
|
+
* Load a canonical terrain store with `MmapTerrain.fromBytes` instead.
|
|
7680
7691
|
*/
|
|
7681
|
-
constructor(
|
|
7692
|
+
constructor(_root: string);
|
|
7682
7693
|
}
|
|
7683
7694
|
|
|
7684
7695
|
/**
|
|
@@ -15337,7 +15348,7 @@ export class SsrCorrectedEphemeris {
|
|
|
15337
15348
|
* Return the applied SSR solution or the core reason it is unavailable.
|
|
15338
15349
|
*/
|
|
15339
15350
|
appliedOrbitClockStatusAtJ2000(satellite: string, epoch_j2000_s: number): SsrAppliedOrbitClockStatus;
|
|
15340
|
-
clockRelativityAtQuery(satellite: string, state_epoch: ExactEpochQuery, position_ecef_m: Float64Array):
|
|
15351
|
+
clockRelativityAtQuery(satellite: string, state_epoch: ExactEpochQuery, position_ecef_m: Float64Array): ClockRelativity;
|
|
15341
15352
|
correctedStateAtJ2000(satellite: string, epoch_j2000_s: number): SsrCorrectedState | null;
|
|
15342
15353
|
correctedStateAtQueries(satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery): SsrCorrectedState | null;
|
|
15343
15354
|
/**
|
|
@@ -15358,13 +15369,13 @@ export class SsrCorrectedEphemeris {
|
|
|
15358
15369
|
* Input wrappers may be freed after construction. Options include fallback,
|
|
15359
15370
|
* staleness, UT1, size, attitude and regional-provider settings.
|
|
15360
15371
|
*/
|
|
15361
|
-
constructor(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, options
|
|
15362
|
-
selectedPositionClockAtQueries(satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery):
|
|
15372
|
+
constructor(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, options: SsrCorrectedEphemerisOptions | null | undefined);
|
|
15373
|
+
selectedPositionClockAtQueries(satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery): Ut1Validated<SelectedPositionClock> | null;
|
|
15363
15374
|
/**
|
|
15364
15375
|
* Return the single-frequency group delay of the selected broadcast record.
|
|
15365
15376
|
*/
|
|
15366
15377
|
singleFrequencyGroupDelayAtJ2000(satellite: string, epoch_j2000_s: number): number | null;
|
|
15367
|
-
transmitEpochClockAtQueries(satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery):
|
|
15378
|
+
transmitEpochClockAtQueries(satellite: string, state_epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery): Ut1Validated<number> | null;
|
|
15368
15379
|
/**
|
|
15369
15380
|
* Return this source with a cloned ANTEX calibration for CoM-to-APC conversion.
|
|
15370
15381
|
*/
|
|
@@ -16135,6 +16146,11 @@ export enum TerrainStoreError {
|
|
|
16135
16146
|
* A future core terrain-store error not yet mapped by this binding.
|
|
16136
16147
|
*/
|
|
16137
16148
|
Unknown = 10,
|
|
16149
|
+
/**
|
|
16150
|
+
* A DTED input could not be read as a tile. Appended to preserve all
|
|
16151
|
+
* previously published numeric enum discriminants.
|
|
16152
|
+
*/
|
|
16153
|
+
Tile = 11,
|
|
16138
16154
|
}
|
|
16139
16155
|
|
|
16140
16156
|
/**
|
|
@@ -19944,7 +19960,7 @@ export function solvePppAutoInitFloat(sp3: Sp3, epochs: PppEpoch[], options: Ppp
|
|
|
19944
19960
|
*/
|
|
19945
19961
|
export function solvePppFixed(sp3: Sp3, epochs: PppEpoch[], float_solution: PppFloatSolution, config: PppFixedConfig): PppFixedSolution;
|
|
19946
19962
|
|
|
19947
|
-
export function solvePppFixedWithSsr(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, epochs: any, float_solution: PppFloatSolution, config: any, fallback_to_broadcast
|
|
19963
|
+
export function solvePppFixedWithSsr(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, epochs: any, float_solution: PppFloatSolution, config: any, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, validity?: string | null): PppFixedSolution;
|
|
19948
19964
|
|
|
19949
19965
|
/**
|
|
19950
19966
|
* Solve a static multi-epoch float PPP arc against an SP3 product.
|
|
@@ -19955,7 +19971,7 @@ export function solvePppFixedWithSsr(broadcast: BroadcastEphemeris, store: SsrCo
|
|
|
19955
19971
|
*/
|
|
19956
19972
|
export function solvePppFloat(sp3: Sp3, epochs: PppEpoch[], initial_state: PppFloatState, config: PppFloatConfig): PppFloatSolution;
|
|
19957
19973
|
|
|
19958
|
-
export function solvePppFloatWithSsr(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, epochs: any, initial_state: any, config: any, fallback_to_broadcast
|
|
19974
|
+
export function solvePppFloatWithSsr(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, epochs: any, initial_state: any, config: any, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, validity?: string | null): PppFloatSolution;
|
|
19959
19975
|
|
|
19960
19976
|
/**
|
|
19961
19977
|
* Solve a sequential RTK baseline arc from raw rover+base epochs.
|
|
@@ -20005,7 +20021,7 @@ export function solveSppFromRinexObs(source: BroadcastEphemeris, obs: RinexObs,
|
|
|
20005
20021
|
*/
|
|
20006
20022
|
export function solveSppSbas(broadcast: BroadcastEphemeris, store: SbasCorrectionStore, geo: string, request: any, mode?: string | null): SppSolution;
|
|
20007
20023
|
|
|
20008
|
-
export function solveSppWithSsrExactEpoch(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, request: any, receive_epoch: ExactEpoch, fallback_to_broadcast
|
|
20024
|
+
export function solveSppWithSsrExactEpoch(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, request: any, receive_epoch: ExactEpoch, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, validity?: string | null): SppSolution;
|
|
20009
20025
|
|
|
20010
20026
|
/**
|
|
20011
20027
|
* Solve one static receiver position from multiple SPP-shaped epochs over SP3.
|
|
@@ -20197,9 +20213,9 @@ export function splitJdToJ2000Seconds(jd_whole: number, jd_fraction: number): nu
|
|
|
20197
20213
|
*/
|
|
20198
20214
|
export function sppInputsFromRinexObs(source: BroadcastEphemeris, obs: RinexObs, options?: RinexSppOptions | null): RinexSppEpochInputs[];
|
|
20199
20215
|
|
|
20200
|
-
export function ssrCorrectedState(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, sat: string, t_j2000_s: number, fallback_to_broadcast
|
|
20216
|
+
export function ssrCorrectedState(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, sat: string, t_j2000_s: number, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, ut1_validity?: string | null): SsrCorrectedState | null;
|
|
20201
20217
|
|
|
20202
|
-
export function ssrCorrectedStateExact(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, sat: string, epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery, fallback_to_broadcast
|
|
20218
|
+
export function ssrCorrectedStateExact(broadcast: BroadcastEphemeris, store: SsrCorrectionStore, sat: string, epoch: ExactEpochQuery, selection_epoch: ExactEpochQuery, fallback_to_broadcast: boolean | null | undefined, allow_regional_provider: number | null | undefined, ut1_validity?: string | null): SsrCorrectedState | null;
|
|
20203
20219
|
|
|
20204
20220
|
/**
|
|
20205
20221
|
* Stable lower-camel-case SSR source token.
|
package/pkg-node/sidereon.js
CHANGED
|
@@ -1656,8 +1656,8 @@ class BroadcastEphemeris {
|
|
|
1656
1656
|
* @param {string} satellite
|
|
1657
1657
|
* @param {ExactEpochQuery} state_epoch
|
|
1658
1658
|
* @param {Float64Array} position_ecef_m
|
|
1659
|
-
* @param {boolean | null}
|
|
1660
|
-
* @param {number | null}
|
|
1659
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
1660
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
1661
1661
|
* @param {string | null} [validity]
|
|
1662
1662
|
* @returns {ClockRelativity}
|
|
1663
1663
|
*/
|
|
@@ -1670,7 +1670,7 @@ class BroadcastEphemeris {
|
|
|
1670
1670
|
const len1 = WASM_VECTOR_LEN;
|
|
1671
1671
|
var ptr2 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1672
1672
|
var len2 = WASM_VECTOR_LEN;
|
|
1673
|
-
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,
|
|
1673
|
+
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);
|
|
1674
1674
|
if (ret[2]) {
|
|
1675
1675
|
throw takeFromExternrefTable0(ret[1]);
|
|
1676
1676
|
}
|
|
@@ -1683,8 +1683,8 @@ class BroadcastEphemeris {
|
|
|
1683
1683
|
* @param {string} satellite
|
|
1684
1684
|
* @param {ExactEpochQuery} state_epoch
|
|
1685
1685
|
* @param {ExactEpochQuery} selection_epoch
|
|
1686
|
-
* @param {boolean | null}
|
|
1687
|
-
* @param {number | null}
|
|
1686
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
1687
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
1688
1688
|
* @param {string | null} [validity]
|
|
1689
1689
|
* @returns {number}
|
|
1690
1690
|
*/
|
|
@@ -1696,7 +1696,7 @@ class BroadcastEphemeris {
|
|
|
1696
1696
|
_assertClass(selection_epoch, ExactEpochQuery);
|
|
1697
1697
|
var ptr1 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1698
1698
|
var len1 = WASM_VECTOR_LEN;
|
|
1699
|
-
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,
|
|
1699
|
+
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);
|
|
1700
1700
|
if (ret[2]) {
|
|
1701
1701
|
throw takeFromExternrefTable0(ret[1]);
|
|
1702
1702
|
}
|
|
@@ -4081,6 +4081,9 @@ class Constellation {
|
|
|
4081
4081
|
const ptr0 = passArray64ToWasm0(epochs_unix_us, wasm.__wbindgen_malloc);
|
|
4082
4082
|
const len0 = WASM_VECTOR_LEN;
|
|
4083
4083
|
const ret = wasm.constellation_groundTracks(this.__wbg_ptr, ptr0, len0);
|
|
4084
|
+
if (ret[3]) {
|
|
4085
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4086
|
+
}
|
|
4084
4087
|
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4085
4088
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4086
4089
|
return v2;
|
|
@@ -4118,6 +4121,9 @@ class Constellation {
|
|
|
4118
4121
|
const ptr0 = passArray64ToWasm0(epochs_unix_us, wasm.__wbindgen_malloc);
|
|
4119
4122
|
const len0 = WASM_VECTOR_LEN;
|
|
4120
4123
|
const ret = wasm.constellation_lookAngleArcs(this.__wbg_ptr, station.__wbg_ptr, ptr0, len0);
|
|
4124
|
+
if (ret[3]) {
|
|
4125
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
4126
|
+
}
|
|
4121
4127
|
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4122
4128
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4123
4129
|
return v2;
|
|
@@ -5418,7 +5424,9 @@ exports.DragForce = DragForce;
|
|
|
5418
5424
|
* A DTED terrain tile cache rooted at a directory of DTED Level 2 files.
|
|
5419
5425
|
*
|
|
5420
5426
|
* Heights are ORTHOMETRIC terrain elevations in meters. Point order is always
|
|
5421
|
-
* longitude first, then latitude, both in degrees.
|
|
5427
|
+
* longitude first, then latitude, both in degrees. WebAssembly has no host
|
|
5428
|
+
* filesystem, so construction is rejected explicitly; use
|
|
5429
|
+
* `MmapTerrain.fromBytes` with fetched or Node-read terrain-store bytes.
|
|
5422
5430
|
*/
|
|
5423
5431
|
class DtedTerrain {
|
|
5424
5432
|
__destroy_into_raw() {
|
|
@@ -5494,15 +5502,19 @@ class DtedTerrain {
|
|
|
5494
5502
|
/**
|
|
5495
5503
|
* Create a DTED terrain reader rooted at `root`.
|
|
5496
5504
|
*
|
|
5497
|
-
*
|
|
5498
|
-
*
|
|
5499
|
-
*
|
|
5505
|
+
* WebAssembly cannot access a host filesystem root. This constructor
|
|
5506
|
+
* throws a `TypeError` instead of silently treating every tile as missing.
|
|
5507
|
+
* Load a canonical terrain store with `MmapTerrain.fromBytes` instead.
|
|
5508
|
+
* @param {string} _root
|
|
5500
5509
|
*/
|
|
5501
|
-
constructor(
|
|
5502
|
-
const ptr0 = passStringToWasm0(
|
|
5510
|
+
constructor(_root) {
|
|
5511
|
+
const ptr0 = passStringToWasm0(_root, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5503
5512
|
const len0 = WASM_VECTOR_LEN;
|
|
5504
5513
|
const ret = wasm.dtedterrain_new(ptr0, len0);
|
|
5505
|
-
|
|
5514
|
+
if (ret[2]) {
|
|
5515
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5516
|
+
}
|
|
5517
|
+
this.__wbg_ptr = ret[0];
|
|
5506
5518
|
DtedTerrainFinalization.register(this, this.__wbg_ptr, this);
|
|
5507
5519
|
return this;
|
|
5508
5520
|
}
|
|
@@ -9336,7 +9348,10 @@ class Instant {
|
|
|
9336
9348
|
*/
|
|
9337
9349
|
get deltaTSeconds() {
|
|
9338
9350
|
const ret = wasm.instant_deltaTSeconds(this.__wbg_ptr);
|
|
9339
|
-
|
|
9351
|
+
if (ret[2]) {
|
|
9352
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9353
|
+
}
|
|
9354
|
+
return ret[0];
|
|
9340
9355
|
}
|
|
9341
9356
|
/**
|
|
9342
9357
|
* Build an instant from a unix-microsecond UTC stamp.
|
|
@@ -9425,7 +9440,10 @@ class Instant {
|
|
|
9425
9440
|
*/
|
|
9426
9441
|
get jdWhole() {
|
|
9427
9442
|
const ret = wasm.instant_jdWhole(this.__wbg_ptr);
|
|
9428
|
-
|
|
9443
|
+
if (ret[2]) {
|
|
9444
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9445
|
+
}
|
|
9446
|
+
return ret[0];
|
|
9429
9447
|
}
|
|
9430
9448
|
/**
|
|
9431
9449
|
* IAU mean obliquity of the ecliptic, radians.
|
|
@@ -9486,7 +9504,10 @@ class Instant {
|
|
|
9486
9504
|
*/
|
|
9487
9505
|
get tdbFraction() {
|
|
9488
9506
|
const ret = wasm.instant_tdbFraction(this.__wbg_ptr);
|
|
9489
|
-
|
|
9507
|
+
if (ret[2]) {
|
|
9508
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9509
|
+
}
|
|
9510
|
+
return ret[0];
|
|
9490
9511
|
}
|
|
9491
9512
|
/**
|
|
9492
9513
|
* Full Barycentric Dynamical Time (TDB) Julian date.
|
|
@@ -9494,7 +9515,10 @@ class Instant {
|
|
|
9494
9515
|
*/
|
|
9495
9516
|
get tdbJd() {
|
|
9496
9517
|
const ret = wasm.instant_tdbJd(this.__wbg_ptr);
|
|
9497
|
-
|
|
9518
|
+
if (ret[2]) {
|
|
9519
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9520
|
+
}
|
|
9521
|
+
return ret[0];
|
|
9498
9522
|
}
|
|
9499
9523
|
/**
|
|
9500
9524
|
* The two-part TDB Julian date (`jdWhole`, `tdbFraction`).
|
|
@@ -9502,7 +9526,10 @@ class Instant {
|
|
|
9502
9526
|
*/
|
|
9503
9527
|
get tdbJdSplit() {
|
|
9504
9528
|
const ret = wasm.instant_tdbJdSplit(this.__wbg_ptr);
|
|
9505
|
-
|
|
9529
|
+
if (ret[2]) {
|
|
9530
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9531
|
+
}
|
|
9532
|
+
return JulianDate.__wrap(ret[0]);
|
|
9506
9533
|
}
|
|
9507
9534
|
/**
|
|
9508
9535
|
* TT day fraction relative to `jdWhole`.
|
|
@@ -9510,7 +9537,10 @@ class Instant {
|
|
|
9510
9537
|
*/
|
|
9511
9538
|
get ttFraction() {
|
|
9512
9539
|
const ret = wasm.instant_ttFraction(this.__wbg_ptr);
|
|
9513
|
-
|
|
9540
|
+
if (ret[2]) {
|
|
9541
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9542
|
+
}
|
|
9543
|
+
return ret[0];
|
|
9514
9544
|
}
|
|
9515
9545
|
/**
|
|
9516
9546
|
* Full Terrestrial Time (TT) Julian date.
|
|
@@ -9518,7 +9548,10 @@ class Instant {
|
|
|
9518
9548
|
*/
|
|
9519
9549
|
get ttJd() {
|
|
9520
9550
|
const ret = wasm.instant_ttJd(this.__wbg_ptr);
|
|
9521
|
-
|
|
9551
|
+
if (ret[2]) {
|
|
9552
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9553
|
+
}
|
|
9554
|
+
return ret[0];
|
|
9522
9555
|
}
|
|
9523
9556
|
/**
|
|
9524
9557
|
* The two-part TT Julian date (`jdWhole`, `ttFraction`).
|
|
@@ -9526,7 +9559,10 @@ class Instant {
|
|
|
9526
9559
|
*/
|
|
9527
9560
|
get ttJdSplit() {
|
|
9528
9561
|
const ret = wasm.instant_ttJdSplit(this.__wbg_ptr);
|
|
9529
|
-
|
|
9562
|
+
if (ret[2]) {
|
|
9563
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9564
|
+
}
|
|
9565
|
+
return JulianDate.__wrap(ret[0]);
|
|
9530
9566
|
}
|
|
9531
9567
|
/**
|
|
9532
9568
|
* The unix-microsecond UTC stamp backing this instant.
|
|
@@ -9544,6 +9580,9 @@ class Instant {
|
|
|
9544
9580
|
*/
|
|
9545
9581
|
get ut1Degraded() {
|
|
9546
9582
|
const ret = wasm.instant_ut1Degraded(this.__wbg_ptr);
|
|
9583
|
+
if (ret[3]) {
|
|
9584
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
9585
|
+
}
|
|
9547
9586
|
let v1;
|
|
9548
9587
|
if (ret[0] !== 0) {
|
|
9549
9588
|
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -9557,7 +9596,10 @@ class Instant {
|
|
|
9557
9596
|
*/
|
|
9558
9597
|
get ut1Fraction() {
|
|
9559
9598
|
const ret = wasm.instant_ut1Fraction(this.__wbg_ptr);
|
|
9560
|
-
|
|
9599
|
+
if (ret[2]) {
|
|
9600
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9601
|
+
}
|
|
9602
|
+
return ret[0];
|
|
9561
9603
|
}
|
|
9562
9604
|
/**
|
|
9563
9605
|
* Full UT1 Julian date.
|
|
@@ -9565,7 +9607,10 @@ class Instant {
|
|
|
9565
9607
|
*/
|
|
9566
9608
|
get ut1Jd() {
|
|
9567
9609
|
const ret = wasm.instant_ut1Jd(this.__wbg_ptr);
|
|
9568
|
-
|
|
9610
|
+
if (ret[2]) {
|
|
9611
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9612
|
+
}
|
|
9613
|
+
return ret[0];
|
|
9569
9614
|
}
|
|
9570
9615
|
/**
|
|
9571
9616
|
* The two-part UT1 Julian date (`jdWhole`, `ut1Fraction`).
|
|
@@ -9573,7 +9618,10 @@ class Instant {
|
|
|
9573
9618
|
*/
|
|
9574
9619
|
get ut1JdSplit() {
|
|
9575
9620
|
const ret = wasm.instant_ut1JdSplit(this.__wbg_ptr);
|
|
9576
|
-
|
|
9621
|
+
if (ret[2]) {
|
|
9622
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9623
|
+
}
|
|
9624
|
+
return JulianDate.__wrap(ret[0]);
|
|
9577
9625
|
}
|
|
9578
9626
|
}
|
|
9579
9627
|
if (Symbol.dispose) Instant.prototype[Symbol.dispose] = Instant.prototype.free;
|
|
@@ -25354,7 +25402,7 @@ class SsrCorrectedEphemeris {
|
|
|
25354
25402
|
* @param {string} satellite
|
|
25355
25403
|
* @param {ExactEpochQuery} state_epoch
|
|
25356
25404
|
* @param {Float64Array} position_ecef_m
|
|
25357
|
-
* @returns {
|
|
25405
|
+
* @returns {ClockRelativity}
|
|
25358
25406
|
*/
|
|
25359
25407
|
clockRelativityAtQuery(satellite, state_epoch, position_ecef_m) {
|
|
25360
25408
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -25493,7 +25541,7 @@ class SsrCorrectedEphemeris {
|
|
|
25493
25541
|
* staleness, UT1, size, attitude and regional-provider settings.
|
|
25494
25542
|
* @param {BroadcastEphemeris} broadcast
|
|
25495
25543
|
* @param {SsrCorrectionStore} store
|
|
25496
|
-
* @param {
|
|
25544
|
+
* @param {SsrCorrectedEphemerisOptions | null | undefined} options
|
|
25497
25545
|
*/
|
|
25498
25546
|
constructor(broadcast, store, options) {
|
|
25499
25547
|
_assertClass(broadcast, BroadcastEphemeris);
|
|
@@ -25520,7 +25568,7 @@ class SsrCorrectedEphemeris {
|
|
|
25520
25568
|
* @param {string} satellite
|
|
25521
25569
|
* @param {ExactEpochQuery} state_epoch
|
|
25522
25570
|
* @param {ExactEpochQuery} selection_epoch
|
|
25523
|
-
* @returns {
|
|
25571
|
+
* @returns {Ut1Validated<SelectedPositionClock> | null}
|
|
25524
25572
|
*/
|
|
25525
25573
|
selectedPositionClockAtQueries(satellite, state_epoch, selection_epoch) {
|
|
25526
25574
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -25552,7 +25600,7 @@ class SsrCorrectedEphemeris {
|
|
|
25552
25600
|
* @param {string} satellite
|
|
25553
25601
|
* @param {ExactEpochQuery} state_epoch
|
|
25554
25602
|
* @param {ExactEpochQuery} selection_epoch
|
|
25555
|
-
* @returns {
|
|
25603
|
+
* @returns {Ut1Validated<number> | null}
|
|
25556
25604
|
*/
|
|
25557
25605
|
transmitEpochClockAtQueries(satellite, state_epoch, selection_epoch) {
|
|
25558
25606
|
const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -27538,7 +27586,7 @@ exports.TerrainGeoidModel = TerrainGeoidModel;
|
|
|
27538
27586
|
|
|
27539
27587
|
/**
|
|
27540
27588
|
* Terrain store conversion, serialization, and parsing error variants.
|
|
27541
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
|
|
27589
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11}
|
|
27542
27590
|
*/
|
|
27543
27591
|
const TerrainStoreError = Object.freeze({
|
|
27544
27592
|
/**
|
|
@@ -27588,6 +27636,11 @@ const TerrainStoreError = Object.freeze({
|
|
|
27588
27636
|
* A future core terrain-store error not yet mapped by this binding.
|
|
27589
27637
|
*/
|
|
27590
27638
|
Unknown: 10, "10": "Unknown",
|
|
27639
|
+
/**
|
|
27640
|
+
* A DTED input could not be read as a tile. Appended to preserve all
|
|
27641
|
+
* previously published numeric enum discriminants.
|
|
27642
|
+
*/
|
|
27643
|
+
Tile: 11, "11": "Tile",
|
|
27591
27644
|
});
|
|
27592
27645
|
exports.TerrainStoreError = TerrainStoreError;
|
|
27593
27646
|
|
|
@@ -38455,8 +38508,8 @@ exports.solvePppFixed = solvePppFixed;
|
|
|
38455
38508
|
* @param {any} epochs
|
|
38456
38509
|
* @param {PppFloatSolution} float_solution
|
|
38457
38510
|
* @param {any} config
|
|
38458
|
-
* @param {boolean | null}
|
|
38459
|
-
* @param {number | null}
|
|
38511
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
38512
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
38460
38513
|
* @param {string | null} [validity]
|
|
38461
38514
|
* @returns {PppFixedSolution}
|
|
38462
38515
|
*/
|
|
@@ -38466,7 +38519,7 @@ function solvePppFixedWithSsr(broadcast, store, epochs, float_solution, config,
|
|
|
38466
38519
|
_assertClass(float_solution, PppFloatSolution);
|
|
38467
38520
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38468
38521
|
var len0 = WASM_VECTOR_LEN;
|
|
38469
|
-
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,
|
|
38522
|
+
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);
|
|
38470
38523
|
if (ret[2]) {
|
|
38471
38524
|
throw takeFromExternrefTable0(ret[1]);
|
|
38472
38525
|
}
|
|
@@ -38502,8 +38555,8 @@ exports.solvePppFloat = solvePppFloat;
|
|
|
38502
38555
|
* @param {any} epochs
|
|
38503
38556
|
* @param {any} initial_state
|
|
38504
38557
|
* @param {any} config
|
|
38505
|
-
* @param {boolean | null}
|
|
38506
|
-
* @param {number | null}
|
|
38558
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
38559
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
38507
38560
|
* @param {string | null} [validity]
|
|
38508
38561
|
* @returns {PppFloatSolution}
|
|
38509
38562
|
*/
|
|
@@ -38512,7 +38565,7 @@ function solvePppFloatWithSsr(broadcast, store, epochs, initial_state, config, f
|
|
|
38512
38565
|
_assertClass(store, SsrCorrectionStore);
|
|
38513
38566
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38514
38567
|
var len0 = WASM_VECTOR_LEN;
|
|
38515
|
-
const ret = wasm.solvePppFloatWithSsr(broadcast.__wbg_ptr, store.__wbg_ptr, epochs, initial_state, config, isLikeNone(fallback_to_broadcast) ? 0xFFFFFF : fallback_to_broadcast ? 1 : 0,
|
|
38568
|
+
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);
|
|
38516
38569
|
if (ret[2]) {
|
|
38517
38570
|
throw takeFromExternrefTable0(ret[1]);
|
|
38518
38571
|
}
|
|
@@ -38634,8 +38687,8 @@ exports.solveSppSbas = solveSppSbas;
|
|
|
38634
38687
|
* @param {SsrCorrectionStore} store
|
|
38635
38688
|
* @param {any} request
|
|
38636
38689
|
* @param {ExactEpoch} receive_epoch
|
|
38637
|
-
* @param {boolean | null}
|
|
38638
|
-
* @param {number | null}
|
|
38690
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
38691
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
38639
38692
|
* @param {string | null} [validity]
|
|
38640
38693
|
* @returns {SppSolution}
|
|
38641
38694
|
*/
|
|
@@ -38645,7 +38698,7 @@ function solveSppWithSsrExactEpoch(broadcast, store, request, receive_epoch, fal
|
|
|
38645
38698
|
_assertClass(receive_epoch, ExactEpoch);
|
|
38646
38699
|
var ptr0 = isLikeNone(validity) ? 0 : passStringToWasm0(validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38647
38700
|
var len0 = WASM_VECTOR_LEN;
|
|
38648
|
-
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,
|
|
38701
|
+
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);
|
|
38649
38702
|
if (ret[2]) {
|
|
38650
38703
|
throw takeFromExternrefTable0(ret[1]);
|
|
38651
38704
|
}
|
|
@@ -39154,8 +39207,8 @@ exports.sppInputsFromRinexObs = sppInputsFromRinexObs;
|
|
|
39154
39207
|
* @param {SsrCorrectionStore} store
|
|
39155
39208
|
* @param {string} sat
|
|
39156
39209
|
* @param {number} t_j2000_s
|
|
39157
|
-
* @param {boolean | null}
|
|
39158
|
-
* @param {number | null}
|
|
39210
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
39211
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
39159
39212
|
* @param {string | null} [ut1_validity]
|
|
39160
39213
|
* @returns {SsrCorrectedState | null}
|
|
39161
39214
|
*/
|
|
@@ -39166,7 +39219,7 @@ function ssrCorrectedState(broadcast, store, sat, t_j2000_s, fallback_to_broadca
|
|
|
39166
39219
|
const len0 = WASM_VECTOR_LEN;
|
|
39167
39220
|
var ptr1 = isLikeNone(ut1_validity) ? 0 : passStringToWasm0(ut1_validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
39168
39221
|
var len1 = WASM_VECTOR_LEN;
|
|
39169
|
-
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,
|
|
39222
|
+
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);
|
|
39170
39223
|
if (ret[2]) {
|
|
39171
39224
|
throw takeFromExternrefTable0(ret[1]);
|
|
39172
39225
|
}
|
|
@@ -39180,8 +39233,8 @@ exports.ssrCorrectedState = ssrCorrectedState;
|
|
|
39180
39233
|
* @param {string} sat
|
|
39181
39234
|
* @param {ExactEpochQuery} epoch
|
|
39182
39235
|
* @param {ExactEpochQuery} selection_epoch
|
|
39183
|
-
* @param {boolean | null}
|
|
39184
|
-
* @param {number | null}
|
|
39236
|
+
* @param {boolean | null | undefined} fallback_to_broadcast
|
|
39237
|
+
* @param {number | null | undefined} allow_regional_provider
|
|
39185
39238
|
* @param {string | null} [ut1_validity]
|
|
39186
39239
|
* @returns {SsrCorrectedState | null}
|
|
39187
39240
|
*/
|
|
@@ -39194,7 +39247,7 @@ function ssrCorrectedStateExact(broadcast, store, sat, epoch, selection_epoch, f
|
|
|
39194
39247
|
_assertClass(selection_epoch, ExactEpochQuery);
|
|
39195
39248
|
var ptr1 = isLikeNone(ut1_validity) ? 0 : passStringToWasm0(ut1_validity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
39196
39249
|
var len1 = WASM_VECTOR_LEN;
|
|
39197
|
-
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,
|
|
39250
|
+
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);
|
|
39198
39251
|
if (ret[2]) {
|
|
39199
39252
|
throw takeFromExternrefTable0(ret[1]);
|
|
39200
39253
|
}
|
|
Binary file
|