gnss-js 1.6.1 → 1.7.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.
@@ -2,7 +2,7 @@ import {
2
2
  computeDop,
3
3
  computeSatPosition,
4
4
  ecefToAzEl
5
- } from "./chunk-JG2HDJGK.js";
5
+ } from "./chunk-TBRZDWDE.js";
6
6
  import {
7
7
  C_LIGHT,
8
8
  OMEGA_E
@@ -446,6 +446,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
446
446
  const elevation = {};
447
447
  const visibleCount = new Array(times.length).fill(0);
448
448
  const pdop = new Array(times.length).fill(null);
449
+ const gdop = new Array(times.length).fill(null);
450
+ const hdop = new Array(times.length).fill(null);
451
+ const vdop = new Array(times.length).fill(null);
449
452
  const visiblePerEpoch = times.map(() => []);
450
453
  for (const prn of all.prns) {
451
454
  const series = all.positions[prn];
@@ -461,6 +464,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
461
464
  for (let i = 0; i < times.length; i++) {
462
465
  const dop = computeDop(visiblePerEpoch[i]);
463
466
  pdop[i] = dop ? dop.pdop : null;
467
+ gdop[i] = dop ? dop.gdop : null;
468
+ hdop[i] = dop ? dop.hdop : null;
469
+ vdop[i] = dop ? dop.vdop : null;
464
470
  }
465
471
  const passes = [];
466
472
  for (const prn of all.prns) {
@@ -494,7 +500,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
494
500
  }
495
501
  }
496
502
  passes.sort((a, b) => a.rise - b.rise);
497
- return { times, elevation, visibleCount, pdop, passes };
503
+ return { times, elevation, visibleCount, pdop, gdop, hdop, vdop, passes };
498
504
  }
499
505
 
500
506
  export {
package/dist/index.cjs CHANGED
@@ -4436,6 +4436,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4436
4436
  const elevation = {};
4437
4437
  const visibleCount = new Array(times.length).fill(0);
4438
4438
  const pdop = new Array(times.length).fill(null);
4439
+ const gdop = new Array(times.length).fill(null);
4440
+ const hdop = new Array(times.length).fill(null);
4441
+ const vdop = new Array(times.length).fill(null);
4439
4442
  const visiblePerEpoch = times.map(() => []);
4440
4443
  for (const prn of all.prns) {
4441
4444
  const series = all.positions[prn];
@@ -4451,6 +4454,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4451
4454
  for (let i = 0; i < times.length; i++) {
4452
4455
  const dop = computeDop(visiblePerEpoch[i]);
4453
4456
  pdop[i] = dop ? dop.pdop : null;
4457
+ gdop[i] = dop ? dop.gdop : null;
4458
+ hdop[i] = dop ? dop.hdop : null;
4459
+ vdop[i] = dop ? dop.vdop : null;
4454
4460
  }
4455
4461
  const passes = [];
4456
4462
  for (const prn of all.prns) {
@@ -4484,7 +4490,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4484
4490
  }
4485
4491
  }
4486
4492
  passes.sort((a, b) => a.rise - b.rise);
4487
- return { times, elevation, visibleCount, pdop, passes };
4493
+ return { times, elevation, visibleCount, pdop, gdop, hdop, vdop, passes };
4488
4494
  }
4489
4495
 
4490
4496
  // src/frames/index.ts
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ import {
102
102
  ionoFree,
103
103
  satClockCorrection,
104
104
  solveSpp
105
- } from "./chunk-4PXLRDK6.js";
105
+ } from "./chunk-7M7UJJIA.js";
106
106
  import {
107
107
  computeAllPositions,
108
108
  computeDop,
@@ -115,7 +115,7 @@ import {
115
115
  keplerPosition,
116
116
  navTimesFromEph,
117
117
  selectEphemeris
118
- } from "./chunk-JG2HDJGK.js";
118
+ } from "./chunk-TBRZDWDE.js";
119
119
  import {
120
120
  getBdsTime,
121
121
  getDateFromBdsTime,
package/dist/orbit.cjs CHANGED
@@ -599,6 +599,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
599
599
  const elevation = {};
600
600
  const visibleCount = new Array(times.length).fill(0);
601
601
  const pdop = new Array(times.length).fill(null);
602
+ const gdop = new Array(times.length).fill(null);
603
+ const hdop = new Array(times.length).fill(null);
604
+ const vdop = new Array(times.length).fill(null);
602
605
  const visiblePerEpoch = times.map(() => []);
603
606
  for (const prn of all.prns) {
604
607
  const series = all.positions[prn];
@@ -614,6 +617,9 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
614
617
  for (let i = 0; i < times.length; i++) {
615
618
  const dop = computeDop(visiblePerEpoch[i]);
616
619
  pdop[i] = dop ? dop.pdop : null;
620
+ gdop[i] = dop ? dop.gdop : null;
621
+ hdop[i] = dop ? dop.hdop : null;
622
+ vdop[i] = dop ? dop.vdop : null;
617
623
  }
618
624
  const passes = [];
619
625
  for (const prn of all.prns) {
@@ -647,7 +653,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
647
653
  }
648
654
  }
649
655
  passes.sort((a, b) => a.rise - b.rise);
650
- return { times, elevation, visibleCount, pdop, passes };
656
+ return { times, elevation, visibleCount, pdop, gdop, hdop, vdop, passes };
651
657
  }
652
658
  // Annotate the CommonJS export names for ESM import in node:
653
659
  0 && (module.exports = {
package/dist/orbit.d.cts CHANGED
@@ -137,6 +137,12 @@ interface VisibilityResult {
137
137
  visibleCount: number[];
138
138
  /** PDOP per epoch (null when < 4 satellites above the mask). */
139
139
  pdop: (number | null)[];
140
+ /** GDOP per epoch (null when < 4 satellites above the mask). */
141
+ gdop: (number | null)[];
142
+ /** HDOP per epoch (null when < 4 satellites above the mask). */
143
+ hdop: (number | null)[];
144
+ /** VDOP per epoch (null when < 4 satellites above the mask). */
145
+ vdop: (number | null)[];
140
146
  /** Discrete above-mask passes, sorted by rise time. */
141
147
  passes: VisibilityPass[];
142
148
  }
package/dist/orbit.d.ts CHANGED
@@ -137,6 +137,12 @@ interface VisibilityResult {
137
137
  visibleCount: number[];
138
138
  /** PDOP per epoch (null when < 4 satellites above the mask). */
139
139
  pdop: (number | null)[];
140
+ /** GDOP per epoch (null when < 4 satellites above the mask). */
141
+ gdop: (number | null)[];
142
+ /** HDOP per epoch (null when < 4 satellites above the mask). */
143
+ hdop: (number | null)[];
144
+ /** VDOP per epoch (null when < 4 satellites above the mask). */
145
+ vdop: (number | null)[];
140
146
  /** Discrete above-mask passes, sorted by rise time. */
141
147
  passes: VisibilityPass[];
142
148
  }
package/dist/orbit.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  keplerPosition,
11
11
  navTimesFromEph,
12
12
  selectEphemeris
13
- } from "./chunk-JG2HDJGK.js";
13
+ } from "./chunk-TBRZDWDE.js";
14
14
  import "./chunk-HVXYFUCB.js";
15
15
  import {
16
16
  ecefToGeodetic,
@@ -2,8 +2,8 @@ import {
2
2
  ionoFree,
3
3
  satClockCorrection,
4
4
  solveSpp
5
- } from "./chunk-4PXLRDK6.js";
6
- import "./chunk-JG2HDJGK.js";
5
+ } from "./chunk-7M7UJJIA.js";
6
+ import "./chunk-TBRZDWDE.js";
7
7
  import "./chunk-HVXYFUCB.js";
8
8
  import "./chunk-37QNKGTC.js";
9
9
  import "./chunk-6FAL6P4G.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "1.6.1",
3
+ "version": "1.7.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,