gnss-js 1.9.0 → 1.10.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.
@@ -465,6 +465,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
465
465
  const subLat = {};
466
466
  const subLon = {};
467
467
  const visibleCount = new Array(times.length).fill(0);
468
+ const visibleBySystem = {};
468
469
  const pdop = new Array(times.length).fill(null);
469
470
  const gdop = new Array(times.length).fill(null);
470
471
  const hdop = new Array(times.length).fill(null);
@@ -480,6 +481,8 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
480
481
  const p = series[i];
481
482
  if (p && p.el >= maskRadFor(p.az)) {
482
483
  visibleCount[i]++;
484
+ const sys = prn[0];
485
+ (visibleBySystem[sys] ??= new Array(times.length).fill(0))[i]++;
483
486
  visiblePerEpoch[i].push({ az: p.az, el: p.el });
484
487
  }
485
488
  }
@@ -531,6 +534,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
531
534
  subLat,
532
535
  subLon,
533
536
  visibleCount,
537
+ visibleBySystem,
534
538
  pdop,
535
539
  gdop,
536
540
  hdop,
@@ -2,7 +2,7 @@ import {
2
2
  computeDop,
3
3
  computeSatPosition,
4
4
  ecefToAzEl
5
- } from "./chunk-647YMBJV.js";
5
+ } from "./chunk-AK6LNWZX.js";
6
6
  import {
7
7
  C_LIGHT,
8
8
  OMEGA_E
package/dist/index.cjs CHANGED
@@ -4542,6 +4542,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4542
4542
  const subLat = {};
4543
4543
  const subLon = {};
4544
4544
  const visibleCount = new Array(times.length).fill(0);
4545
+ const visibleBySystem = {};
4545
4546
  const pdop = new Array(times.length).fill(null);
4546
4547
  const gdop = new Array(times.length).fill(null);
4547
4548
  const hdop = new Array(times.length).fill(null);
@@ -4557,6 +4558,8 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4557
4558
  const p = series[i];
4558
4559
  if (p && p.el >= maskRadFor(p.az)) {
4559
4560
  visibleCount[i]++;
4561
+ const sys = prn[0];
4562
+ (visibleBySystem[sys] ??= new Array(times.length).fill(0))[i]++;
4560
4563
  visiblePerEpoch[i].push({ az: p.az, el: p.el });
4561
4564
  }
4562
4565
  }
@@ -4608,6 +4611,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
4608
4611
  subLat,
4609
4612
  subLon,
4610
4613
  visibleCount,
4614
+ visibleBySystem,
4611
4615
  pdop,
4612
4616
  gdop,
4613
4617
  hdop,
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ import {
102
102
  ionoFree,
103
103
  satClockCorrection,
104
104
  solveSpp
105
- } from "./chunk-ZRBRVNHK.js";
105
+ } from "./chunk-ZTFKRZMM.js";
106
106
  import {
107
107
  computeAllPositions,
108
108
  computeDop,
@@ -116,7 +116,7 @@ import {
116
116
  maskRadForAzimuth,
117
117
  navTimesFromEph,
118
118
  selectEphemeris
119
- } from "./chunk-647YMBJV.js";
119
+ } from "./chunk-AK6LNWZX.js";
120
120
  import {
121
121
  getBdsTime,
122
122
  getDateFromBdsTime,
package/dist/orbit.cjs CHANGED
@@ -619,6 +619,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
619
619
  const subLat = {};
620
620
  const subLon = {};
621
621
  const visibleCount = new Array(times.length).fill(0);
622
+ const visibleBySystem = {};
622
623
  const pdop = new Array(times.length).fill(null);
623
624
  const gdop = new Array(times.length).fill(null);
624
625
  const hdop = new Array(times.length).fill(null);
@@ -634,6 +635,8 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
634
635
  const p = series[i];
635
636
  if (p && p.el >= maskRadFor(p.az)) {
636
637
  visibleCount[i]++;
638
+ const sys = prn[0];
639
+ (visibleBySystem[sys] ??= new Array(times.length).fill(0))[i]++;
637
640
  visiblePerEpoch[i].push({ az: p.az, el: p.el });
638
641
  }
639
642
  }
@@ -685,6 +688,7 @@ function computeVisibility(ephemerides, rxPos, startMs, endMs, stepSec = 300, el
685
688
  subLat,
686
689
  subLon,
687
690
  visibleCount,
691
+ visibleBySystem,
688
692
  pdop,
689
693
  gdop,
690
694
  hdop,
package/dist/orbit.d.cts CHANGED
@@ -141,6 +141,8 @@ interface VisibilityResult {
141
141
  subLon: Record<string, (number | null)[]>;
142
142
  /** Number of satellites at or above the mask, per epoch. */
143
143
  visibleCount: number[];
144
+ /** Per-system visible counts per epoch (system letter → counts). */
145
+ visibleBySystem: Record<string, number[]>;
144
146
  /** PDOP per epoch (null when < 4 satellites above the mask). */
145
147
  pdop: (number | null)[];
146
148
  /** GDOP per epoch (null when < 4 satellites above the mask). */
package/dist/orbit.d.ts CHANGED
@@ -141,6 +141,8 @@ interface VisibilityResult {
141
141
  subLon: Record<string, (number | null)[]>;
142
142
  /** Number of satellites at or above the mask, per epoch. */
143
143
  visibleCount: number[];
144
+ /** Per-system visible counts per epoch (system letter → counts). */
145
+ visibleBySystem: Record<string, number[]>;
144
146
  /** PDOP per epoch (null when < 4 satellites above the mask). */
145
147
  pdop: (number | null)[];
146
148
  /** GDOP per epoch (null when < 4 satellites above the mask). */
package/dist/orbit.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  maskRadForAzimuth,
12
12
  navTimesFromEph,
13
13
  selectEphemeris
14
- } from "./chunk-647YMBJV.js";
14
+ } from "./chunk-AK6LNWZX.js";
15
15
  import "./chunk-HVXYFUCB.js";
16
16
  import {
17
17
  ecefToGeodetic,
@@ -2,8 +2,8 @@ import {
2
2
  ionoFree,
3
3
  satClockCorrection,
4
4
  solveSpp
5
- } from "./chunk-ZRBRVNHK.js";
6
- import "./chunk-647YMBJV.js";
5
+ } from "./chunk-ZTFKRZMM.js";
6
+ import "./chunk-AK6LNWZX.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.9.0",
3
+ "version": "1.10.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,