gnss-js 1.45.1 → 1.46.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.
@@ -1810,6 +1810,7 @@ function solvePpp(epochs, sp3, opts) {
1810
1810
  const latRad = latDeg * Math.PI / 180;
1811
1811
  const epochCtx = corrections?.epochContext?.(epoch.timeMs, rcv) ?? null;
1812
1812
  const vis = [];
1813
+ let epochZhd = 0;
1813
1814
  for (const o of epoch.obs) {
1814
1815
  if (o.c1 === 0 || o.c2 === 0 || o.l1 === 0 || o.l2 === 0) continue;
1815
1816
  const slip = detectSlip(o, ei);
@@ -1838,6 +1839,7 @@ function solvePpp(epochs, sp3, opts) {
1838
1839
  if (!Number.isFinite(pIf) || !Number.isFinite(lIf)) continue;
1839
1840
  const trop = opts.troposphere ?? true ? niellMapping(elRad, latRad, heightM, epoch.timeMs) : { zhd: 0, mh: 0, mw: 0 };
1840
1841
  const { zhd, mh, mw } = trop;
1842
+ epochZhd = zhd;
1841
1843
  const geom = {
1842
1844
  prn: o.prn,
1843
1845
  satEcef: [sat.state.x, sat.state.y, sat.state.z],
@@ -2035,6 +2037,7 @@ function solvePpp(epochs, sp3, opts) {
2035
2037
  position: pos,
2036
2038
  nSats,
2037
2039
  ztdWet: x[IDX_ZWD],
2040
+ ztdHydrostatic: epochZhd,
2038
2041
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
2039
2042
  });
2040
2043
  }
@@ -2073,6 +2076,7 @@ function solvePpp(epochs, sp3, opts) {
2073
2076
  llh,
2074
2077
  series,
2075
2078
  ztdWet: x[IDX_ZWD],
2079
+ ztdHydrostatic: series.length ? series[series.length - 1].ztdHydrostatic : 0,
2076
2080
  epochsUsed: epochs.length,
2077
2081
  convergenceSec,
2078
2082
  finalError3d,
package/dist/index.cjs CHANGED
@@ -13743,6 +13743,7 @@ function solvePpp(epochs, sp3, opts) {
13743
13743
  const latRad = latDeg * Math.PI / 180;
13744
13744
  const epochCtx = corrections?.epochContext?.(epoch.timeMs, rcv) ?? null;
13745
13745
  const vis = [];
13746
+ let epochZhd = 0;
13746
13747
  for (const o of epoch.obs) {
13747
13748
  if (o.c1 === 0 || o.c2 === 0 || o.l1 === 0 || o.l2 === 0) continue;
13748
13749
  const slip = detectSlip(o, ei);
@@ -13771,6 +13772,7 @@ function solvePpp(epochs, sp3, opts) {
13771
13772
  if (!Number.isFinite(pIf) || !Number.isFinite(lIf)) continue;
13772
13773
  const trop = opts.troposphere ?? true ? niellMapping(elRad, latRad, heightM, epoch.timeMs) : { zhd: 0, mh: 0, mw: 0 };
13773
13774
  const { zhd, mh, mw } = trop;
13775
+ epochZhd = zhd;
13774
13776
  const geom = {
13775
13777
  prn: o.prn,
13776
13778
  satEcef: [sat.state.x, sat.state.y, sat.state.z],
@@ -13968,6 +13970,7 @@ function solvePpp(epochs, sp3, opts) {
13968
13970
  position: pos,
13969
13971
  nSats,
13970
13972
  ztdWet: x[IDX_ZWD],
13973
+ ztdHydrostatic: epochZhd,
13971
13974
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
13972
13975
  });
13973
13976
  }
@@ -14006,6 +14009,7 @@ function solvePpp(epochs, sp3, opts) {
14006
14009
  llh,
14007
14010
  series,
14008
14011
  ztdWet: x[IDX_ZWD],
14012
+ ztdHydrostatic: series.length ? series[series.length - 1].ztdHydrostatic : 0,
14009
14013
  epochsUsed: epochs.length,
14010
14014
  convergenceSec,
14011
14015
  finalError3d,
package/dist/index.js CHANGED
@@ -164,7 +164,7 @@ import {
164
164
  sunEcef,
165
165
  toRtkEpoch,
166
166
  wlWavelength
167
- } from "./chunk-ST22ULND.js";
167
+ } from "./chunk-VNDMPBKK.js";
168
168
  import {
169
169
  almanacEpochMs,
170
170
  almanacSatPosition,
@@ -2338,6 +2338,7 @@ function solvePpp(epochs, sp3, opts) {
2338
2338
  const latRad = latDeg * Math.PI / 180;
2339
2339
  const epochCtx = corrections?.epochContext?.(epoch.timeMs, rcv) ?? null;
2340
2340
  const vis = [];
2341
+ let epochZhd = 0;
2341
2342
  for (const o of epoch.obs) {
2342
2343
  if (o.c1 === 0 || o.c2 === 0 || o.l1 === 0 || o.l2 === 0) continue;
2343
2344
  const slip = detectSlip(o, ei);
@@ -2366,6 +2367,7 @@ function solvePpp(epochs, sp3, opts) {
2366
2367
  if (!Number.isFinite(pIf) || !Number.isFinite(lIf)) continue;
2367
2368
  const trop = opts.troposphere ?? true ? niellMapping(elRad, latRad, heightM, epoch.timeMs) : { zhd: 0, mh: 0, mw: 0 };
2368
2369
  const { zhd, mh, mw } = trop;
2370
+ epochZhd = zhd;
2369
2371
  const geom = {
2370
2372
  prn: o.prn,
2371
2373
  satEcef: [sat.state.x, sat.state.y, sat.state.z],
@@ -2563,6 +2565,7 @@ function solvePpp(epochs, sp3, opts) {
2563
2565
  position: pos,
2564
2566
  nSats,
2565
2567
  ztdWet: x[IDX_ZWD],
2568
+ ztdHydrostatic: epochZhd,
2566
2569
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
2567
2570
  });
2568
2571
  }
@@ -2601,6 +2604,7 @@ function solvePpp(epochs, sp3, opts) {
2601
2604
  llh,
2602
2605
  series,
2603
2606
  ztdWet: x[IDX_ZWD],
2607
+ ztdHydrostatic: series.length ? series[series.length - 1].ztdHydrostatic : 0,
2604
2608
  epochsUsed: epochs.length,
2605
2609
  convergenceSec,
2606
2610
  finalError3d,
@@ -711,6 +711,8 @@ interface PppEpochResult {
711
711
  nSats: number;
712
712
  /** Estimated zenith wet delay (m). */
713
713
  ztdWet: number;
714
+ /** A priori zenith hydrostatic delay (m, Saastamoinen). ZTD = this + ztdWet. */
715
+ ztdHydrostatic: number;
714
716
  /** RMS of post-fit phase residuals this epoch (m). */
715
717
  phaseResRms: number;
716
718
  }
@@ -723,6 +725,8 @@ interface PppSolution {
723
725
  series: PppEpochResult[];
724
726
  /** Estimated zenith wet delay at the end (m). */
725
727
  ztdWet: number;
728
+ /** A priori zenith hydrostatic delay at the end (m). ZTD = this + ztdWet. */
729
+ ztdHydrostatic: number;
726
730
  /** Epochs processed. */
727
731
  epochsUsed: number;
728
732
  /** Seconds from first epoch until 3D error first stays < 0.1 m
@@ -711,6 +711,8 @@ interface PppEpochResult {
711
711
  nSats: number;
712
712
  /** Estimated zenith wet delay (m). */
713
713
  ztdWet: number;
714
+ /** A priori zenith hydrostatic delay (m, Saastamoinen). ZTD = this + ztdWet. */
715
+ ztdHydrostatic: number;
714
716
  /** RMS of post-fit phase residuals this epoch (m). */
715
717
  phaseResRms: number;
716
718
  }
@@ -723,6 +725,8 @@ interface PppSolution {
723
725
  series: PppEpochResult[];
724
726
  /** Estimated zenith wet delay at the end (m). */
725
727
  ztdWet: number;
728
+ /** A priori zenith hydrostatic delay at the end (m). ZTD = this + ztdWet. */
729
+ ztdHydrostatic: number;
726
730
  /** Epochs processed. */
727
731
  epochsUsed: number;
728
732
  /** Seconds from first epoch until 3D error first stays < 0.1 m
@@ -28,7 +28,7 @@ import {
28
28
  sunEcef,
29
29
  toRtkEpoch,
30
30
  wlWavelength
31
- } from "./chunk-ST22ULND.js";
31
+ } from "./chunk-VNDMPBKK.js";
32
32
  import "./chunk-MHGNKSSH.js";
33
33
  import "./chunk-MIIM4LDY.js";
34
34
  import "./chunk-37QNKGTC.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "1.45.1",
3
+ "version": "1.46.0",
4
4
  "description": "Comprehensive GNSS library for JavaScript — time scales, coordinates, RINEX parsing, RTCM3 decoding, orbit computation, and signal analysis",
5
5
  "type": "module",
6
6
  "sideEffects": false,