@neilberkman/sidereon 3.0.6 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/README.md +73 -4
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/package.json +6 -5
- package/pkg/sidereon.d.ts +3647 -1978
- package/pkg/sidereon.js +4319 -299
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +2413 -2099
- package/pkg-node/sidereon.d.ts +1409 -54
- package/pkg-node/sidereon.js +4410 -296
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +2413 -2099
- /package/third_party_source/{sidereon-core-3.0.6 → sidereon-core-4.0.0}/tides/mod.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.6 → sidereon-core-4.0.0}/tides/ocean.rs +0 -0
- /package/third_party_source/{sidereon-core-3.0.6 → sidereon-core-4.0.0}/tides/pole.rs +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 4.0.0 - 2026-11-16
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Add CelesTrak GP and NAVCEN source metadata, validated URL builders, GP response parsing, and TLE-to-OMM conversion.
|
|
10
|
+
- Add OMM source spans, explicit lenient KVN/XML writers, validated CCSDS headers, and `TleFitConfig.ommHeader`.
|
|
11
|
+
- Add `Tle.elements` and core value equality for OMM, TLE catalog records, checksum warnings, and GP response handles.
|
|
12
|
+
- Add `TdmUnit`, typed unit getters, core-validated range-unit editing, and value equality for TDM handles.
|
|
13
|
+
- Add precise-positioning dual-frequency TEC estimation, thin-shell mapping, ionospheric pierce points, snapshot PPP RAIM/FDE, and VMF site-series limits.
|
|
14
|
+
- Add precise-positioning Melbourne-Wubbena and geometry-free cycle-slip detection, mutable detector state, wide-lane fixed preparation, and ambiguity-arc splitting.
|
|
15
|
+
- Add sequential kinematic PPP configuration, motion and process-noise models, predict/correct state, and epoch solutions.
|
|
16
|
+
- Add explicit PPP auto-init strategy drivers, single-epoch float PPP, solution equality, ambiguity-search metadata, and typed range-rate prediction and velocity solving.
|
|
17
|
+
- Add owned PPP correction lookups, receiver-antenna and satellite-clock values, and correction-aware float and fixed solves.
|
|
18
|
+
- Add `chi2Isf`, checked `tryVisibleMask` and `tryAccessCounts`, the ADD v3.0 ARAIM local-error model, and optional SPP/FDE `maxGdop` validation.
|
|
19
|
+
- Add multi-constellation combined wide-lane/ionosphere-free RTK arc solving, per-epoch reference and elevation-mask reports, and released integer-hold details.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **Breaking:** PPP RAIM protection levels now return Brown snapshot fault protection levels and require positive redundancy. Use `pppRaimFaultFreeAccuracyBounds` for the former fault-free K × sigma × DOP quantity.
|
|
24
|
+
- **Breaking:** PPP FDE reports `untested` when a successful solve has no positive redundancy. RAIM errors distinguish unsupported noncentrality, unsupported degrees of freedom, and numerical protection-level failure.
|
|
25
|
+
- **Breaking:** OMM KVN and XML writers require the mandatory CCSDS fields. Use the explicit lenient writers for partial records.
|
|
26
|
+
- **Breaking:** Non-default UKF options on EKF filters and non-default loose/tight EKF options on UKF filters are refused. Joint-gate probabilities must be finite in `(0, 1)`; joint and per-row gates are mutually exclusive.
|
|
27
|
+
- **Breaking:** Correction reports include separate `jointInnovationGate` diagnostics. Tight EKF updates apply the joint gate and coast without changing state or covariance on rejection.
|
|
28
|
+
- **Breaking:** Invalid SPP pseudoranges report `nonFinitePseudorange` or `nonPositivePseudorange`; GDOP validation and unsupported ARAIM constellations have distinct error details.
|
|
29
|
+
- **Breaking:** RTK reports released holds and mask convergence. Missing ambiguity columns and carried states without required fixed-cycle values are refused explicitly.
|
|
30
|
+
- PPP float and fixed solutions expose `posteriorVarianceFactorEstimated`, distinguishing a residual variance estimate from an a-priori unit scale.
|
|
31
|
+
- Every `NdmErrorDetail` includes `format`, `byteOffset`, and `fields`.
|
|
32
|
+
- Deprecate unchecked coverage mask and access-count helpers in favor of their checked forms.
|
|
33
|
+
- Evaluate elevation-weighted RTK geometry with RTKLIB `ecef2pos`/`satazel` arithmetic.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Preserve tight cross-covariance when a loose update is rejected.
|
|
38
|
+
- Coast when IGG III removes every loose measurement row, reporting all rows rejected for a per-row gate and no joint report for a joint gate.
|
|
39
|
+
- Apply FDE GDOP validation to every candidate; reject unsupported GDOP policy placements and `coarseSearchSeeds` on FDE requests.
|
|
40
|
+
- Correct combined RTK metadata, measurement-model, and update-option TypeScript declarations.
|
|
41
|
+
|
|
3
42
|
## 3.0.6 - 2026-10-30
|
|
4
43
|
|
|
5
44
|
### Added
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ checked against IGS products.
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
npm install @neilberkman/sidereon
|
|
18
|
+
npm install @neilberkman/sidereon@4.0.0
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
The package is dual ESM/CJS and ships prebuilt wasm with bundled TypeScript
|
|
@@ -53,6 +53,20 @@ console.log(look.azimuthDeg[0], look.elevationDeg[0], look.rangeKm[0]);
|
|
|
53
53
|
`BigInt64Array` of unix-microsecond epochs) and `findPasses(station, start, end,
|
|
54
54
|
minElevationDeg)` for visibility windows.
|
|
55
55
|
|
|
56
|
+
CelesTrak GP and NAVCEN source entries, URL builders, and the GP response parser are available without network access. Callers fetch the URL themselves and pass the response bytes to `parseCelestrakGpResponse`. Accepted and rejected records retain their source bytes and typed details. The `records` and `rejected` getters each clone their full collection; retain the returned array when iterating. GP records convert to OMM or SGP4 element sets. Response, record, TLE payload, rejection, rejection reason, checksum warning, OMM, and OMM epoch handles provide `equals` for value comparison; source entries, spans, and element data are plain objects whose fields can be compared structurally. Fitted OMMs can receive their creation date and originator through `fitTle`'s `ommHeader` option.
|
|
57
|
+
|
|
58
|
+
```js
|
|
59
|
+
import { CelestrakGpFormat, celestrakGpUrl, parseCelestrakGpResponse } from "@neilberkman/sidereon";
|
|
60
|
+
|
|
61
|
+
const url = celestrakGpUrl({ kind: "catalogNumber", value: 25544 }, CelestrakGpFormat.Tle);
|
|
62
|
+
const response = await fetch(url);
|
|
63
|
+
const catalog = parseCelestrakGpResponse(new Uint8Array(await response.arrayBuffer()), CelestrakGpFormat.Tle);
|
|
64
|
+
for (const record of catalog.records) console.log(record.objectName, record.toOmm());
|
|
65
|
+
for (const rejected of catalog.rejected) console.log(rejected.lineNumber, rejected.reason.detail);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
OMM KVN and XML writers require the mandatory CCSDS fields. Use `toKvnStringLenient()` or `toXmlStringLenient()` for partial records, and `withCcsdsHeader(version, creationDate, originator)` to set a validated header.
|
|
69
|
+
|
|
56
70
|
An OMM uses the same SGP4 kernel through its canonical mean-element bridge:
|
|
57
71
|
|
|
58
72
|
```js
|
|
@@ -250,8 +264,7 @@ returns successfully. For SP3 observed/predicted timing, use
|
|
|
250
264
|
fields.
|
|
251
265
|
|
|
252
266
|
Browser and Node callers retain control of `fetch`, Earthdata credentials,
|
|
253
|
-
retries, and product-format validation. The browser cache
|
|
254
|
-
commit builder/verifier as the other interfaces:
|
|
267
|
+
retries, and product-format validation. The browser cache validates commit records through WASM:
|
|
255
268
|
|
|
256
269
|
```js
|
|
257
270
|
import { BrowserExactProductCache } from "@neilberkman/sidereon/exact-cache";
|
|
@@ -417,7 +430,7 @@ as `undefined`.
|
|
|
417
430
|
|
|
418
431
|
## Capabilities
|
|
419
432
|
|
|
420
|
-
The
|
|
433
|
+
The package provides these APIs:
|
|
421
434
|
|
|
422
435
|
- **Orbit propagation:** SGP4 from TLE and OMM, numerical propagation with a
|
|
423
436
|
composable force model (spherical-harmonic geopotential to selectable degree
|
|
@@ -503,6 +516,10 @@ The wasm surface mirrors the full breadth of the engine:
|
|
|
503
516
|
RINEX observation/navigation/clock, CRINEX (Hatanaka), SP3, IONEX, ANTEX,
|
|
504
517
|
Bias-SINEX, RTCM.
|
|
505
518
|
|
|
519
|
+
The TDM surface preserves unknown unit labels with `TdmUnit`, supports
|
|
520
|
+
core-validated range-unit editing, and exposes core value equality through
|
|
521
|
+
`equals` on TDM class instances. See [docs/tdm.md](docs/tdm.md).
|
|
522
|
+
|
|
506
523
|
The binding adds no modeling of its own: every result is exactly what the engine
|
|
507
524
|
computes. Failures surface as the JS exception you would expect (`Error` for
|
|
508
525
|
engine rejections such as parse failures, non-converging solves, and SGP4 error
|
|
@@ -538,6 +555,58 @@ checksums cross as JavaScript `bigint` values. Their attested Node path-open
|
|
|
538
555
|
methods require a `bigint` in the unsigned 64-bit range; `digestProvenance`
|
|
539
556
|
reports `"attested"` until `verify()` succeeds, then reports `"verified"`.
|
|
540
557
|
|
|
558
|
+
PPP also exposes `solvePppFloatEpoch`, the explicit-strategy
|
|
559
|
+
`solvePppAutoInitFloatWithStrategy` / `solvePppAutoInitFixedWithStrategy`
|
|
560
|
+
drivers, and `PppFloatSolution.equals` / `PppFixedSolution.equals`. Doppler
|
|
561
|
+
range-rate workflows use `predictRangeRateMS`,
|
|
562
|
+
`stationaryReceiverVelocityState`, and `solveVelocityLeastSquares`; their
|
|
563
|
+
inputs and results are plain structurally comparable TypeScript data.
|
|
564
|
+
`buildPppLookup` and `buildPppLookupWithValidity` create owned correction
|
|
565
|
+
tables for `PppRangeCorrections`; `solvePppFloatWithCorrections` and
|
|
566
|
+
`solvePppFixedWithCorrections` apply those tables together with optional
|
|
567
|
+
receiver-antenna calibration, external satellite clocks, and satellite-clock
|
|
568
|
+
relativity.
|
|
569
|
+
|
|
570
|
+
Dual-frequency ionosphere workflows use `PppTecConfig` with
|
|
571
|
+
`pppEstimateTec`, `pppLevelSlantTecArc`, the code/phase slant-TEC helpers,
|
|
572
|
+
`pppThinShellMappingFunction`, and `pppIonosphericPiercePoint`. Result handles
|
|
573
|
+
provide core value equality and `toJSON()` returns their complete typed value.
|
|
574
|
+
`VMF_SITE_MAX_SAMPLES()` and `VMF_SITE_SINGLE_SAMPLE_CLAMP_DAYS()` report the
|
|
575
|
+
core VMF site-series limits.
|
|
576
|
+
|
|
577
|
+
Snapshot precise-positioning integrity uses `PppRaimConfig` with
|
|
578
|
+
`pppRaimGlobalTest`, `pppRaimGlobalTestWithGeometry`,
|
|
579
|
+
`pppRaimPerSatelliteStatistics`, and `pppRaimProtectionLevels`.
|
|
580
|
+
`pppFdeFloatEpoch` and `solvePppFloatEpochWithRaim` run the core SP3-backed
|
|
581
|
+
float solve and exclusion loop. These names retain the `ppp` prefix to remain
|
|
582
|
+
distinct from the package's range-domain `raim` and `raimFdeDesign` APIs.
|
|
583
|
+
|
|
584
|
+
Precise-positioning cycle-slip processing uses `PppCycleSlipConfig`,
|
|
585
|
+
`PppRunningMeanVariance`, and `PppSatelliteCycleSlipState` with
|
|
586
|
+
`pppUpdateMelbourneWubbena`, `pppUpdateGeometryFree`, and
|
|
587
|
+
`pppDetectCycleSlips`. The `ppp` prefix distinguishes this detector from the
|
|
588
|
+
released observable-domain `detectCycleSlips`. `preparePppWidelaneFixedEpochs`
|
|
589
|
+
delegates wide-lane fixing, ionosphere-free preparation, and slip policy to the
|
|
590
|
+
core; `splitPppFloatCycleSlipEpochs` returns the corresponding float ambiguity
|
|
591
|
+
arc identifiers. Exact gap epochs remain `ExactEpoch` values throughout.
|
|
592
|
+
|
|
593
|
+
Sequential precise positioning uses `PppKinematicConfig`, motion and
|
|
594
|
+
process-noise value classes, and a mutable `PppKinematicState`.
|
|
595
|
+
`predictKinematicState` and `correctKinematicState` drive that owned state
|
|
596
|
+
through the core filter; `solveKinematicPpp` returns per-epoch solutions.
|
|
597
|
+
|
|
598
|
+
### Integrity, RTK and fusion options
|
|
599
|
+
|
|
600
|
+
PPP snapshot RAIM protection levels are Brown fault-mode levels and require positive redundancy. `pppRaimProtectionLevelsWithWeights` accepts inverse-standard-deviation weights; `pppRaimFaultFreeAccuracyBounds` exposes the separate fault-free K × sigma × DOP bounds. `chi2Isf` accepts an upper-tail probability directly. Coverage grids provide checked `tryVisibleMask` and `tryAccessCounts`; the legacy methods are deprecated.
|
|
601
|
+
|
|
602
|
+
`araimSatelliteIsmModelAddV30` constructs the ADD v3.0 local-error model for supported constellations and reports `unsupportedConstellation` in the error detail when Appendix A does not cover a system. Joint innovation gating is available through `jointInnovationGateProbability` in `loose.updateOptions` and `tight.updateOptions` for EKF filters, and in `ukf` for UKF filters; correction reports include `jointInnovationGate`. The probability must be finite and strictly between zero and one, and a joint gate cannot be combined with a per-row `innovationGate`. Options for a different filter kind are refused.
|
|
603
|
+
|
|
604
|
+
`solveWideLaneFixedRtkArc` accepts dual-frequency arc epochs directly and supports one reference per constellation. `solveRtkArc` attaches an `RtkArcErrorDetail` to thrown errors; an update failure carries its specific `RtkUpdateErrorDetail`, including `missingAmbiguityColumn` and the ambiguity ID. RTK epoch results report `referenceSatelliteIds`, `elevationMaskedSatelliteIds`, `elevationMaskConverged`, and `releasedHolds`; hold reasons are `unheldReference` and `incompatibleWavelengths`.
|
|
605
|
+
|
|
606
|
+
PPP FDE status `untested` means a solve succeeded without positive redundancy. PPP RAIM error details distinguish `UNSUPPORTED_NONCENTRALITY` (the bias root exceeds the supported noncentrality), `UNSUPPORTED_DOF` (with `dof` and `max`), and `NUMERICAL_PROTECTION_LEVEL` (failure of the numerical probability calculation). SPP reports invalid measurements as `nonFinitePseudorange` or `nonPositivePseudorange`; GDOP validation failures use `DEGENERATE_GEOMETRY_GDOP`. A PPP posterior variance factor is an estimate only when `posteriorVarianceFactorEstimated` is true.
|
|
607
|
+
|
|
608
|
+
FDE applies `maxGdop` to every candidate solution. Batch SPP accepts it in the shared options; per-epoch values, and values supplied to static, Doppler, broadcast-only, SBAS, or fallback paths without that policy, are rejected. FDE rejects the unsupported `coarseSearchSeeds` option.
|
|
609
|
+
|
|
541
610
|
## Live demo
|
|
542
611
|
|
|
543
612
|
The interactive demo at [sidereon.dev](https://sidereon.dev) runs on this exact
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -76,13 +76,13 @@ source documents how it is based on and differs from the original. The complete
|
|
|
76
76
|
official IERS notice is reproduced in
|
|
77
77
|
`licenses/IERS-Conventions-Software-License.txt`.
|
|
78
78
|
|
|
79
|
-
The exact public non-test tide sources distributed in `sidereon-core`
|
|
80
|
-
at commit
|
|
81
|
-
`third_party_source/sidereon-core-
|
|
79
|
+
The exact public non-test tide sources distributed in `sidereon-core` 4.0.0
|
|
80
|
+
at commit 3132eeac13ebf30f63766fc608aa9aae9258dd3d are included under
|
|
81
|
+
`third_party_source/sidereon-core-4.0.0/tides/`. Their contents match that
|
|
82
82
|
release source. These copies provide the source for every tide routine in the
|
|
83
83
|
compiled WebAssembly artifact; they are not represented as original IERS
|
|
84
84
|
software or as endorsed by the IERS Conventions Center.
|
|
85
|
-
Source: [sidereon-core tides at the pinned commit](https://github.com/neilberkman/sidereon/tree/
|
|
85
|
+
Source: [sidereon-core tides at the pinned commit](https://github.com/neilberkman/sidereon/tree/3132eeac13ebf30f63766fc608aa9aae9258dd3d/crates/sidereon-core/src/tides).
|
|
86
86
|
|
|
87
87
|
--------------------------------------------------------------------------------
|
|
88
88
|
## Reference algorithms (no code copied)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neilberkman/sidereon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "WebAssembly / JavaScript interface over the sidereon GNSS + astrodynamics engine: SP3 loading and multi-product merge, SPP / RTK (float + fixed) / PPP (float + fixed) positioning, IONEX slant delay, SGP4 and numerical orbit propagation, RINEX observation/navigation/clock parsing, CRINEX (Hatanaka) decoding, observable-domain math (carrier combinations, cycle slips, Hatch smoothing, weighting, velocity, GPS C/A signal), and the astro domain (scale-tagged time, frame transforms, Sun/Moon ephemerides, eclipse / body angles, DOP, passes / visibility, conjunction + collision probability, CDM / OMM / ANTEX parsing, RF link budget)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"licenses/IERS-Conventions-Software-License.txt",
|
|
47
47
|
"licenses/SciPy-BSD-3-Clause.txt",
|
|
48
48
|
"licenses/libloading-ISC.txt",
|
|
49
|
-
"third_party_source/sidereon-core-
|
|
50
|
-
"third_party_source/sidereon-core-
|
|
51
|
-
"third_party_source/sidereon-core-
|
|
49
|
+
"third_party_source/sidereon-core-4.0.0/tides/mod.rs",
|
|
50
|
+
"third_party_source/sidereon-core-4.0.0/tides/ocean.rs",
|
|
51
|
+
"third_party_source/sidereon-core-4.0.0/tides/pole.rs",
|
|
52
52
|
"pkg/sidereon.js",
|
|
53
53
|
"pkg/sidereon.d.ts",
|
|
54
54
|
"pkg/sidereon_bg.wasm",
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"typecheck": "tsc --noEmit",
|
|
72
72
|
"check:package": "node scripts/check-package.mjs",
|
|
73
73
|
"lint": "eslint . && prettier --check \"test/**/*.mjs\" \"type-test/**/*.ts\" \"scripts/**/*.mjs\" \"*.json\" \"eslint.config.js\"",
|
|
74
|
-
"format": "prettier --write \"test/**/*.mjs\" \"type-test/**/*.ts\" \"scripts/**/*.mjs\" \"*.json\" \"eslint.config.js\""
|
|
74
|
+
"format": "prettier --write \"test/**/*.mjs\" \"type-test/**/*.ts\" \"scripts/**/*.mjs\" \"*.json\" \"eslint.config.js\"",
|
|
75
|
+
"check:core": "node scripts/check-core-source.mjs"
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"@eslint/js": "^10.0.1",
|