gnss-js 1.55.0 → 1.56.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/dist/{chunk-U32IU7RO.js → chunk-BU6YC6VK.js} +30 -0
- package/dist/index.cjs +30 -0
- package/dist/index.js +1 -1
- package/dist/positioning.cjs +30 -0
- package/dist/positioning.d.cts +20 -0
- package/dist/positioning.d.ts +20 -0
- package/dist/positioning.js +1 -1
- package/package.json +1 -1
|
@@ -1551,6 +1551,36 @@ var SbasProcessor = class {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
return n;
|
|
1553
1553
|
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Correction-coverage census at a GPS week/time — a diagnostic funnel over
|
|
1556
|
+
* the current state, explaining how many masked satellites are actually
|
|
1557
|
+
* correctable. Each stage subsumes the requirement of the previous one for a
|
|
1558
|
+
* full range/clock correction: a satellite is `corrected` only when it has
|
|
1559
|
+
* both a fresh fast correction and (for non-SBAS satellites) a fresh
|
|
1560
|
+
* long-term correction (exactly {@link satCorrection}'s gate). `ionoGrid` is
|
|
1561
|
+
* the total number of valid grid points — the additional requirement for the
|
|
1562
|
+
* *iono*-corrected subset a solver forms per pierce point.
|
|
1563
|
+
*
|
|
1564
|
+
* Use it to tell "no corrections applied" (mask empty / products stale) apart
|
|
1565
|
+
* from "corrections applied but the pierce points aren't grid-covered yet".
|
|
1566
|
+
*/
|
|
1567
|
+
coverage(week, tow) {
|
|
1568
|
+
const now = gpsSeconds(week, tow);
|
|
1569
|
+
let masked = 0;
|
|
1570
|
+
let fast = 0;
|
|
1571
|
+
let long = 0;
|
|
1572
|
+
let corrected = 0;
|
|
1573
|
+
for (const s of this.sats) {
|
|
1574
|
+
if (!s.prn) continue;
|
|
1575
|
+
masked++;
|
|
1576
|
+
if (s.fcorr && s.fcorr.t0s !== 0 && s.fcorr.udre < 15 && Math.abs(now - s.fcorr.t0s + this.tlat) <= MAXSBSAGEF)
|
|
1577
|
+
fast++;
|
|
1578
|
+
if (s.prn[0] === "S" || s.lcorr && s.lcorr.t0s !== 0 && Math.abs(now - s.lcorr.t0s) <= MAXSBSAGEL)
|
|
1579
|
+
long++;
|
|
1580
|
+
if (this.satCorrection(s.prn, week, tow)) corrected++;
|
|
1581
|
+
}
|
|
1582
|
+
return { masked, fast, long, corrected, ionoGrid: this.ionoGridPoints() };
|
|
1583
|
+
}
|
|
1554
1584
|
/**
|
|
1555
1585
|
* Satellite range/clock correction for a PRN at a GPS week/tow, or null if
|
|
1556
1586
|
* no valid (unexpired) long-term + fast correction is available. Add `dPos`
|
package/dist/index.cjs
CHANGED
|
@@ -13637,6 +13637,36 @@ var SbasProcessor = class {
|
|
|
13637
13637
|
}
|
|
13638
13638
|
return n;
|
|
13639
13639
|
}
|
|
13640
|
+
/**
|
|
13641
|
+
* Correction-coverage census at a GPS week/time — a diagnostic funnel over
|
|
13642
|
+
* the current state, explaining how many masked satellites are actually
|
|
13643
|
+
* correctable. Each stage subsumes the requirement of the previous one for a
|
|
13644
|
+
* full range/clock correction: a satellite is `corrected` only when it has
|
|
13645
|
+
* both a fresh fast correction and (for non-SBAS satellites) a fresh
|
|
13646
|
+
* long-term correction (exactly {@link satCorrection}'s gate). `ionoGrid` is
|
|
13647
|
+
* the total number of valid grid points — the additional requirement for the
|
|
13648
|
+
* *iono*-corrected subset a solver forms per pierce point.
|
|
13649
|
+
*
|
|
13650
|
+
* Use it to tell "no corrections applied" (mask empty / products stale) apart
|
|
13651
|
+
* from "corrections applied but the pierce points aren't grid-covered yet".
|
|
13652
|
+
*/
|
|
13653
|
+
coverage(week, tow) {
|
|
13654
|
+
const now = gpsSeconds(week, tow);
|
|
13655
|
+
let masked = 0;
|
|
13656
|
+
let fast = 0;
|
|
13657
|
+
let long = 0;
|
|
13658
|
+
let corrected = 0;
|
|
13659
|
+
for (const s of this.sats) {
|
|
13660
|
+
if (!s.prn) continue;
|
|
13661
|
+
masked++;
|
|
13662
|
+
if (s.fcorr && s.fcorr.t0s !== 0 && s.fcorr.udre < 15 && Math.abs(now - s.fcorr.t0s + this.tlat) <= MAXSBSAGEF)
|
|
13663
|
+
fast++;
|
|
13664
|
+
if (s.prn[0] === "S" || s.lcorr && s.lcorr.t0s !== 0 && Math.abs(now - s.lcorr.t0s) <= MAXSBSAGEL)
|
|
13665
|
+
long++;
|
|
13666
|
+
if (this.satCorrection(s.prn, week, tow)) corrected++;
|
|
13667
|
+
}
|
|
13668
|
+
return { masked, fast, long, corrected, ionoGrid: this.ionoGridPoints() };
|
|
13669
|
+
}
|
|
13640
13670
|
/**
|
|
13641
13671
|
* Satellite range/clock correction for a PRN at a GPS week/tow, or null if
|
|
13642
13672
|
* no valid (unexpired) long-term + fast correction is available. Add `dPos`
|
package/dist/index.js
CHANGED
package/dist/positioning.cjs
CHANGED
|
@@ -2025,6 +2025,36 @@ var SbasProcessor = class {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
return n;
|
|
2027
2027
|
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Correction-coverage census at a GPS week/time — a diagnostic funnel over
|
|
2030
|
+
* the current state, explaining how many masked satellites are actually
|
|
2031
|
+
* correctable. Each stage subsumes the requirement of the previous one for a
|
|
2032
|
+
* full range/clock correction: a satellite is `corrected` only when it has
|
|
2033
|
+
* both a fresh fast correction and (for non-SBAS satellites) a fresh
|
|
2034
|
+
* long-term correction (exactly {@link satCorrection}'s gate). `ionoGrid` is
|
|
2035
|
+
* the total number of valid grid points — the additional requirement for the
|
|
2036
|
+
* *iono*-corrected subset a solver forms per pierce point.
|
|
2037
|
+
*
|
|
2038
|
+
* Use it to tell "no corrections applied" (mask empty / products stale) apart
|
|
2039
|
+
* from "corrections applied but the pierce points aren't grid-covered yet".
|
|
2040
|
+
*/
|
|
2041
|
+
coverage(week, tow) {
|
|
2042
|
+
const now = gpsSeconds(week, tow);
|
|
2043
|
+
let masked = 0;
|
|
2044
|
+
let fast = 0;
|
|
2045
|
+
let long = 0;
|
|
2046
|
+
let corrected = 0;
|
|
2047
|
+
for (const s of this.sats) {
|
|
2048
|
+
if (!s.prn) continue;
|
|
2049
|
+
masked++;
|
|
2050
|
+
if (s.fcorr && s.fcorr.t0s !== 0 && s.fcorr.udre < 15 && Math.abs(now - s.fcorr.t0s + this.tlat) <= MAXSBSAGEF)
|
|
2051
|
+
fast++;
|
|
2052
|
+
if (s.prn[0] === "S" || s.lcorr && s.lcorr.t0s !== 0 && Math.abs(now - s.lcorr.t0s) <= MAXSBSAGEL)
|
|
2053
|
+
long++;
|
|
2054
|
+
if (this.satCorrection(s.prn, week, tow)) corrected++;
|
|
2055
|
+
}
|
|
2056
|
+
return { masked, fast, long, corrected, ionoGrid: this.ionoGridPoints() };
|
|
2057
|
+
}
|
|
2028
2058
|
/**
|
|
2029
2059
|
* Satellite range/clock correction for a PRN at a GPS week/tow, or null if
|
|
2030
2060
|
* no valid (unexpired) long-term + fast correction is available. Add `dPos`
|
package/dist/positioning.d.cts
CHANGED
|
@@ -598,6 +598,26 @@ declare class SbasProcessor {
|
|
|
598
598
|
activeSats(): string[];
|
|
599
599
|
/** Number of ionospheric grid points with a valid delay across all bands. */
|
|
600
600
|
ionoGridPoints(): number;
|
|
601
|
+
/**
|
|
602
|
+
* Correction-coverage census at a GPS week/time — a diagnostic funnel over
|
|
603
|
+
* the current state, explaining how many masked satellites are actually
|
|
604
|
+
* correctable. Each stage subsumes the requirement of the previous one for a
|
|
605
|
+
* full range/clock correction: a satellite is `corrected` only when it has
|
|
606
|
+
* both a fresh fast correction and (for non-SBAS satellites) a fresh
|
|
607
|
+
* long-term correction (exactly {@link satCorrection}'s gate). `ionoGrid` is
|
|
608
|
+
* the total number of valid grid points — the additional requirement for the
|
|
609
|
+
* *iono*-corrected subset a solver forms per pierce point.
|
|
610
|
+
*
|
|
611
|
+
* Use it to tell "no corrections applied" (mask empty / products stale) apart
|
|
612
|
+
* from "corrections applied but the pierce points aren't grid-covered yet".
|
|
613
|
+
*/
|
|
614
|
+
coverage(week: number, tow: number): {
|
|
615
|
+
masked: number;
|
|
616
|
+
fast: number;
|
|
617
|
+
long: number;
|
|
618
|
+
corrected: number;
|
|
619
|
+
ionoGrid: number;
|
|
620
|
+
};
|
|
601
621
|
/**
|
|
602
622
|
* Satellite range/clock correction for a PRN at a GPS week/tow, or null if
|
|
603
623
|
* no valid (unexpired) long-term + fast correction is available. Add `dPos`
|
package/dist/positioning.d.ts
CHANGED
|
@@ -598,6 +598,26 @@ declare class SbasProcessor {
|
|
|
598
598
|
activeSats(): string[];
|
|
599
599
|
/** Number of ionospheric grid points with a valid delay across all bands. */
|
|
600
600
|
ionoGridPoints(): number;
|
|
601
|
+
/**
|
|
602
|
+
* Correction-coverage census at a GPS week/time — a diagnostic funnel over
|
|
603
|
+
* the current state, explaining how many masked satellites are actually
|
|
604
|
+
* correctable. Each stage subsumes the requirement of the previous one for a
|
|
605
|
+
* full range/clock correction: a satellite is `corrected` only when it has
|
|
606
|
+
* both a fresh fast correction and (for non-SBAS satellites) a fresh
|
|
607
|
+
* long-term correction (exactly {@link satCorrection}'s gate). `ionoGrid` is
|
|
608
|
+
* the total number of valid grid points — the additional requirement for the
|
|
609
|
+
* *iono*-corrected subset a solver forms per pierce point.
|
|
610
|
+
*
|
|
611
|
+
* Use it to tell "no corrections applied" (mask empty / products stale) apart
|
|
612
|
+
* from "corrections applied but the pierce points aren't grid-covered yet".
|
|
613
|
+
*/
|
|
614
|
+
coverage(week: number, tow: number): {
|
|
615
|
+
masked: number;
|
|
616
|
+
fast: number;
|
|
617
|
+
long: number;
|
|
618
|
+
corrected: number;
|
|
619
|
+
ionoGrid: number;
|
|
620
|
+
};
|
|
601
621
|
/**
|
|
602
622
|
* Satellite range/clock correction for a PRN at a GPS week/tow, or null if
|
|
603
623
|
* no valid (unexpired) long-term + fast correction is available. Add `dPos`
|
package/dist/positioning.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gnss-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.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,
|