gnss-js 1.35.0 → 1.36.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.
@@ -1959,6 +1959,28 @@ function solvePpp(epochs, sp3, opts) {
1959
1959
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
1960
1960
  });
1961
1961
  }
1962
+ let finalState;
1963
+ if (opts.exposeState) {
1964
+ const ambs = [];
1965
+ for (const [prn, index] of ambIdx) {
1966
+ const s = arcSnap.get(prn);
1967
+ if (!s || s.nEpochs < 10) continue;
1968
+ ambs.push({
1969
+ prn,
1970
+ index,
1971
+ aIF: x[index],
1972
+ mwCyc: mwState.get(prn)?.mean ?? s.mwCyc,
1973
+ f1: s.f1,
1974
+ f2: s.f2,
1975
+ elevDeg: s.elevSum / s.nEpochs
1976
+ });
1977
+ }
1978
+ finalState = {
1979
+ position: [x[IDX_X], x[IDX_Y], x[IDX_Z]],
1980
+ covariance: P.map((row) => row.slice()),
1981
+ ambiguities: ambs
1982
+ };
1983
+ }
1962
1984
  for (const prn of [...arcSnap.keys()]) flushArc(prn);
1963
1985
  const finalPos = [x[IDX_X], x[IDX_Y], x[IDX_Z]];
1964
1986
  const llh = ecefToGeodetic(finalPos[0], finalPos[1], finalPos[2]);
@@ -1975,7 +1997,8 @@ function solvePpp(epochs, sp3, opts) {
1975
1997
  epochsUsed: epochs.length,
1976
1998
  convergenceSec,
1977
1999
  finalError3d,
1978
- arcs
2000
+ arcs,
2001
+ finalState
1979
2002
  };
1980
2003
  }
1981
2004
 
@@ -2068,6 +2091,117 @@ function resolvePppAmbiguities(sats, Qaif, opts = {}) {
2068
2091
  rejectedWl
2069
2092
  };
2070
2093
  }
2094
+ function solveSpd(A, b) {
2095
+ const n = b.length;
2096
+ const L = Array.from({ length: n }, () => new Array(n).fill(0));
2097
+ for (let i = 0; i < n; i++) {
2098
+ for (let j = 0; j <= i; j++) {
2099
+ let s = A[i][j];
2100
+ for (let k = 0; k < j; k++) s -= L[i][k] * L[j][k];
2101
+ if (i === j) {
2102
+ if (s <= 0) return null;
2103
+ L[i][j] = Math.sqrt(s);
2104
+ } else {
2105
+ L[i][j] = s / L[j][j];
2106
+ }
2107
+ }
2108
+ }
2109
+ const y = new Array(n).fill(0);
2110
+ for (let i = 0; i < n; i++) {
2111
+ let s = b[i];
2112
+ for (let k = 0; k < i; k++) s -= L[i][k] * y[k];
2113
+ y[i] = s / L[i][i];
2114
+ }
2115
+ const x = new Array(n).fill(0);
2116
+ for (let i = n - 1; i >= 0; i--) {
2117
+ let s = y[i];
2118
+ for (let k = i + 1; k < n; k++) s -= L[k][i] * x[k];
2119
+ x[i] = s / L[i][i];
2120
+ }
2121
+ return x;
2122
+ }
2123
+ function fixPppPosition(state, fcb, opts = {}) {
2124
+ const floatPos = state.position;
2125
+ const noFix = {
2126
+ fixed: false,
2127
+ position: floatPos,
2128
+ floatPosition: floatPos,
2129
+ shift: [0, 0, 0],
2130
+ nFixed: 0,
2131
+ ratio: 0,
2132
+ refPrn: null
2133
+ };
2134
+ const amb = state.ambiguities;
2135
+ if (amb.length < 3) return noFix;
2136
+ const sats = amb.map((a) => ({
2137
+ prn: a.prn,
2138
+ aIF: a.aIF,
2139
+ mwCyc: a.mwCyc,
2140
+ f1: a.f1,
2141
+ f2: a.f2,
2142
+ wlBiasCyc: fcb.satWlFcb.get(a.prn) ?? 0,
2143
+ nlBiasCyc: fcb.satNlFcb.get(a.prn) ?? 0,
2144
+ elevDeg: a.elevDeg
2145
+ }));
2146
+ const n = sats.length;
2147
+ const Qaif = new Float64Array(n * n);
2148
+ for (let i = 0; i < n; i++)
2149
+ for (let j = 0; j < n; j++)
2150
+ Qaif[i * n + j] = state.covariance[amb[i].index][amb[j].index];
2151
+ const res = resolvePppAmbiguities(sats, Qaif, opts);
2152
+ if (!res.fixed || res.refPrn === null) {
2153
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2154
+ }
2155
+ const idxOfPrn = new Map(amb.map((a) => [a.prn, a.index]));
2156
+ const floatOfPrn = new Map(amb.map((a) => [a.prn, a.aIF]));
2157
+ const kept = res.sats.filter((s) => idxOfPrn.has(s.prn));
2158
+ const refPos = kept.findIndex((s) => s.prn === res.refPrn);
2159
+ if (refPos < 0 || kept.length < 2) {
2160
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2161
+ }
2162
+ const ambIdx = kept.map((s) => idxOfPrn.get(s.prn));
2163
+ const aFloat = kept.map((s) => floatOfPrn.get(s.prn));
2164
+ const aFixed = kept.map((s) => s.aIF);
2165
+ const others = kept.map((_, i) => i).filter((i) => i !== refPos);
2166
+ const m = others.length;
2167
+ const P = state.covariance;
2168
+ const qAA = (i, j) => P[ambIdx[i]][ambIdx[j]];
2169
+ const qXA = (r, i) => P[r][ambIdx[i]];
2170
+ const Qzz = Array.from({ length: m }, () => new Array(m).fill(0));
2171
+ const z = new Array(m).fill(0);
2172
+ for (let a = 0; a < m; a++) {
2173
+ const ia = others[a];
2174
+ z[a] = aFloat[ia] - aFloat[refPos] - (aFixed[ia] - aFixed[refPos]);
2175
+ for (let b = 0; b < m; b++) {
2176
+ const ib = others[b];
2177
+ Qzz[a][b] = qAA(ia, ib) - qAA(ia, refPos) - qAA(refPos, ib) + qAA(refPos, refPos);
2178
+ }
2179
+ }
2180
+ const Qxz = [0, 1, 2].map(
2181
+ (r) => others.map((ia) => qXA(r, ia) - qXA(r, refPos))
2182
+ );
2183
+ const y = solveSpd(Qzz, z);
2184
+ if (!y) return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2185
+ const shift = [0, 0, 0];
2186
+ for (let r = 0; r < 3; r++) {
2187
+ let s = 0;
2188
+ for (let a = 0; a < m; a++) s += Qxz[r][a] * y[a];
2189
+ shift[r] = -s;
2190
+ }
2191
+ return {
2192
+ fixed: true,
2193
+ position: [
2194
+ floatPos[0] + shift[0],
2195
+ floatPos[1] + shift[1],
2196
+ floatPos[2] + shift[2]
2197
+ ],
2198
+ floatPosition: floatPos,
2199
+ shift,
2200
+ nFixed: m,
2201
+ ratio: res.ratio,
2202
+ refPrn: res.refPrn
2203
+ };
2204
+ }
2071
2205
 
2072
2206
  // src/positioning/ppp-fcb.ts
2073
2207
  function extractWidelaneArcs(station, epochs, opts = {}) {
@@ -2504,6 +2638,7 @@ export {
2504
2638
  wlWavelength,
2505
2639
  nlWavelength,
2506
2640
  resolvePppAmbiguities,
2641
+ fixPppPosition,
2507
2642
  extractWidelaneArcs,
2508
2643
  estimateWidelaneFcb,
2509
2644
  estimateNarrowlaneFcb,
package/dist/index.cjs CHANGED
@@ -156,6 +156,7 @@ __export(src_exports, {
156
156
  extractWidelaneArcs: () => extractWidelaneArcs,
157
157
  fetchSourcetable: () => fetchSourcetable,
158
158
  findSatBias: () => findSatBias,
159
+ fixPppPosition: () => fixPppPosition,
159
160
  fmtD: () => fmtD,
160
161
  fmtF: () => fmtF,
161
162
  formatUTCTime: () => formatUTCTime,
@@ -13357,6 +13358,28 @@ function solvePpp(epochs, sp3, opts) {
13357
13358
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
13358
13359
  });
13359
13360
  }
13361
+ let finalState;
13362
+ if (opts.exposeState) {
13363
+ const ambs = [];
13364
+ for (const [prn, index] of ambIdx) {
13365
+ const s = arcSnap.get(prn);
13366
+ if (!s || s.nEpochs < 10) continue;
13367
+ ambs.push({
13368
+ prn,
13369
+ index,
13370
+ aIF: x[index],
13371
+ mwCyc: mwState.get(prn)?.mean ?? s.mwCyc,
13372
+ f1: s.f1,
13373
+ f2: s.f2,
13374
+ elevDeg: s.elevSum / s.nEpochs
13375
+ });
13376
+ }
13377
+ finalState = {
13378
+ position: [x[IDX_X], x[IDX_Y], x[IDX_Z]],
13379
+ covariance: P.map((row) => row.slice()),
13380
+ ambiguities: ambs
13381
+ };
13382
+ }
13360
13383
  for (const prn of [...arcSnap.keys()]) flushArc(prn);
13361
13384
  const finalPos = [x[IDX_X], x[IDX_Y], x[IDX_Z]];
13362
13385
  const llh = ecefToGeodetic(finalPos[0], finalPos[1], finalPos[2]);
@@ -13373,7 +13396,8 @@ function solvePpp(epochs, sp3, opts) {
13373
13396
  epochsUsed: epochs.length,
13374
13397
  convergenceSec,
13375
13398
  finalError3d,
13376
- arcs
13399
+ arcs,
13400
+ finalState
13377
13401
  };
13378
13402
  }
13379
13403
 
@@ -13466,6 +13490,117 @@ function resolvePppAmbiguities(sats, Qaif, opts = {}) {
13466
13490
  rejectedWl
13467
13491
  };
13468
13492
  }
13493
+ function solveSpd(A, b) {
13494
+ const n = b.length;
13495
+ const L = Array.from({ length: n }, () => new Array(n).fill(0));
13496
+ for (let i = 0; i < n; i++) {
13497
+ for (let j = 0; j <= i; j++) {
13498
+ let s = A[i][j];
13499
+ for (let k = 0; k < j; k++) s -= L[i][k] * L[j][k];
13500
+ if (i === j) {
13501
+ if (s <= 0) return null;
13502
+ L[i][j] = Math.sqrt(s);
13503
+ } else {
13504
+ L[i][j] = s / L[j][j];
13505
+ }
13506
+ }
13507
+ }
13508
+ const y = new Array(n).fill(0);
13509
+ for (let i = 0; i < n; i++) {
13510
+ let s = b[i];
13511
+ for (let k = 0; k < i; k++) s -= L[i][k] * y[k];
13512
+ y[i] = s / L[i][i];
13513
+ }
13514
+ const x = new Array(n).fill(0);
13515
+ for (let i = n - 1; i >= 0; i--) {
13516
+ let s = y[i];
13517
+ for (let k = i + 1; k < n; k++) s -= L[k][i] * x[k];
13518
+ x[i] = s / L[i][i];
13519
+ }
13520
+ return x;
13521
+ }
13522
+ function fixPppPosition(state, fcb, opts = {}) {
13523
+ const floatPos = state.position;
13524
+ const noFix = {
13525
+ fixed: false,
13526
+ position: floatPos,
13527
+ floatPosition: floatPos,
13528
+ shift: [0, 0, 0],
13529
+ nFixed: 0,
13530
+ ratio: 0,
13531
+ refPrn: null
13532
+ };
13533
+ const amb = state.ambiguities;
13534
+ if (amb.length < 3) return noFix;
13535
+ const sats = amb.map((a) => ({
13536
+ prn: a.prn,
13537
+ aIF: a.aIF,
13538
+ mwCyc: a.mwCyc,
13539
+ f1: a.f1,
13540
+ f2: a.f2,
13541
+ wlBiasCyc: fcb.satWlFcb.get(a.prn) ?? 0,
13542
+ nlBiasCyc: fcb.satNlFcb.get(a.prn) ?? 0,
13543
+ elevDeg: a.elevDeg
13544
+ }));
13545
+ const n = sats.length;
13546
+ const Qaif = new Float64Array(n * n);
13547
+ for (let i = 0; i < n; i++)
13548
+ for (let j = 0; j < n; j++)
13549
+ Qaif[i * n + j] = state.covariance[amb[i].index][amb[j].index];
13550
+ const res = resolvePppAmbiguities(sats, Qaif, opts);
13551
+ if (!res.fixed || res.refPrn === null) {
13552
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
13553
+ }
13554
+ const idxOfPrn = new Map(amb.map((a) => [a.prn, a.index]));
13555
+ const floatOfPrn = new Map(amb.map((a) => [a.prn, a.aIF]));
13556
+ const kept = res.sats.filter((s) => idxOfPrn.has(s.prn));
13557
+ const refPos = kept.findIndex((s) => s.prn === res.refPrn);
13558
+ if (refPos < 0 || kept.length < 2) {
13559
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
13560
+ }
13561
+ const ambIdx = kept.map((s) => idxOfPrn.get(s.prn));
13562
+ const aFloat = kept.map((s) => floatOfPrn.get(s.prn));
13563
+ const aFixed = kept.map((s) => s.aIF);
13564
+ const others = kept.map((_, i) => i).filter((i) => i !== refPos);
13565
+ const m = others.length;
13566
+ const P = state.covariance;
13567
+ const qAA = (i, j) => P[ambIdx[i]][ambIdx[j]];
13568
+ const qXA = (r, i) => P[r][ambIdx[i]];
13569
+ const Qzz = Array.from({ length: m }, () => new Array(m).fill(0));
13570
+ const z = new Array(m).fill(0);
13571
+ for (let a = 0; a < m; a++) {
13572
+ const ia = others[a];
13573
+ z[a] = aFloat[ia] - aFloat[refPos] - (aFixed[ia] - aFixed[refPos]);
13574
+ for (let b = 0; b < m; b++) {
13575
+ const ib = others[b];
13576
+ Qzz[a][b] = qAA(ia, ib) - qAA(ia, refPos) - qAA(refPos, ib) + qAA(refPos, refPos);
13577
+ }
13578
+ }
13579
+ const Qxz = [0, 1, 2].map(
13580
+ (r) => others.map((ia) => qXA(r, ia) - qXA(r, refPos))
13581
+ );
13582
+ const y = solveSpd(Qzz, z);
13583
+ if (!y) return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
13584
+ const shift = [0, 0, 0];
13585
+ for (let r = 0; r < 3; r++) {
13586
+ let s = 0;
13587
+ for (let a = 0; a < m; a++) s += Qxz[r][a] * y[a];
13588
+ shift[r] = -s;
13589
+ }
13590
+ return {
13591
+ fixed: true,
13592
+ position: [
13593
+ floatPos[0] + shift[0],
13594
+ floatPos[1] + shift[1],
13595
+ floatPos[2] + shift[2]
13596
+ ],
13597
+ floatPosition: floatPos,
13598
+ shift,
13599
+ nFixed: m,
13600
+ ratio: res.ratio,
13601
+ refPrn: res.refPrn
13602
+ };
13603
+ }
13469
13604
 
13470
13605
  // src/positioning/ppp-fcb.ts
13471
13606
  function extractWidelaneArcs(station, epochs, opts = {}) {
@@ -16277,6 +16412,7 @@ function computePsdDb(centerMHz, halfSpanChips, numPoints, psdFn, f0 = 1023e3, f
16277
16412
  extractWidelaneArcs,
16278
16413
  fetchSourcetable,
16279
16414
  findSatBias,
16415
+ fixPppPosition,
16280
16416
  fmtD,
16281
16417
  fmtF,
16282
16418
  formatUTCTime,
package/dist/index.d.cts CHANGED
@@ -17,7 +17,7 @@ export { TrimbleEpoch, TrimbleFrame, TrimbleMeasurement, TrimbleNavResult, Trimb
17
17
  export { BinexEpoch, BinexMeasurement, BinexParseResult, BinexRecord, binexCrc16, binexCrc32, binexCsum8, binexRecords, decodeBinexEph, getBnxi, parseBinex } from './binex.cjs';
18
18
  export { AllPositionsData, AlmanacPosition, DopValues, EpochSkyData, SatAzEl, SatPoint, SatPosition, VisibilityPass, VisibilityResult, almanacEpochMs, almanacSatPosition, computeAllPositions, computeDop, computeLiveSkyPositions, computeSatPosition, computeVisibility, computeVisibilityFromPositions, dopplerHz, ecefToAzEl, ephInfoToEphemeris, glonassAlmanacEpochMs, glonassAlmanacPosition, glonassPosition, keplerPosition, maskRadForAzimuth, navTimesFromEph, rangeRate, selectEphemeris } from './orbit.cjs';
19
19
  export { Helmert14, REFERENCE_FRAMES, ReferenceFrame, applyHelmert, dateToEpoch, transformFrame } from './frames.cjs';
20
- export { AntennaOffset, ArFixedSat, ArOptions, ArResult, ArSat, CorrectionResult, DgnssOptions, DgnssSolution, EphemerisSource, IONO_L1_M_PER_TECU, KlobucharCoeffs, LambdaResult, NetworkFcbResult, NetworkFcbSummary, NlArc, NlFcbResult, PppAntennaModel, PppArc, PppCorrectionConfig, PppCorrections, PppEpoch, PppEpochContext, PppEpochResult, PppOptions, PppSatObs, PppSolution, RawObservation, RtkEpochMeasurements, RtkFloatEngine, RtkFloatOptions, RtkFloatSolution, RtkMeasurement, SatGeom, SppOptions, SppSolution, TropoMapping, WlArc, WlFcbOptions, WlFcbResult, WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength } from './positioning.cjs';
20
+ export { AntennaOffset, ArFixedSat, ArOptions, ArResult, ArSat, CorrectionResult, DgnssOptions, DgnssSolution, EphemerisSource, FixedPositionResult, IONO_L1_M_PER_TECU, KlobucharCoeffs, LambdaResult, NetworkFcbResult, NetworkFcbSummary, NlArc, NlFcbResult, PppAntennaModel, PppArc, PppCorrectionConfig, PppCorrections, PppEpoch, PppEpochContext, PppEpochResult, PppFixState, PppOptions, PppSatObs, PppSolution, RawObservation, RtkEpochMeasurements, RtkFloatEngine, RtkFloatOptions, RtkFloatSolution, RtkMeasurement, SatGeom, SppOptions, SppSolution, TropoMapping, WlArc, WlFcbOptions, WlFcbResult, WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength } from './positioning.cjs';
21
21
  export { NtripCaster, NtripConnectionInfo, NtripNetwork, NtripStream, NtripStreamConnection, NtripVersion, Sourcetable, SourcetableEntry, connectToMountpoint, fetchSourcetable, parseSourcetable } from './ntrip.cjs';
22
22
  export { CompleteSatSignal, CompleteSignalStats, CompletenessAccumulator, CompletenessResult, CycleSlipAccumulator, CycleSlipEvent, CycleSlipResult, CycleSlipSignalStats, IonoAccumulator, IonoDcbResult, IonoPoint, IonoRatePoint, IonoRateSeries, IonoResult, IonoSeries, MultipathAccumulator, MultipathPoint, MultipathResult, MultipathSeries, MultipathSignalStat, QualityResult, SatDcbMap, analyzeQuality, applyIonoDcb, computeIonoRate, detrendIonoArcs, parseSinexBiasDcb } from './analysis.cjs';
23
23
  export { AntennaEntry, AntexFile, FrequencyData, frequencyLabel, parseAntex } from './antex.cjs';
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export { TrimbleEpoch, TrimbleFrame, TrimbleMeasurement, TrimbleNavResult, Trimb
17
17
  export { BinexEpoch, BinexMeasurement, BinexParseResult, BinexRecord, binexCrc16, binexCrc32, binexCsum8, binexRecords, decodeBinexEph, getBnxi, parseBinex } from './binex.js';
18
18
  export { AllPositionsData, AlmanacPosition, DopValues, EpochSkyData, SatAzEl, SatPoint, SatPosition, VisibilityPass, VisibilityResult, almanacEpochMs, almanacSatPosition, computeAllPositions, computeDop, computeLiveSkyPositions, computeSatPosition, computeVisibility, computeVisibilityFromPositions, dopplerHz, ecefToAzEl, ephInfoToEphemeris, glonassAlmanacEpochMs, glonassAlmanacPosition, glonassPosition, keplerPosition, maskRadForAzimuth, navTimesFromEph, rangeRate, selectEphemeris } from './orbit.js';
19
19
  export { Helmert14, REFERENCE_FRAMES, ReferenceFrame, applyHelmert, dateToEpoch, transformFrame } from './frames.js';
20
- export { AntennaOffset, ArFixedSat, ArOptions, ArResult, ArSat, CorrectionResult, DgnssOptions, DgnssSolution, EphemerisSource, IONO_L1_M_PER_TECU, KlobucharCoeffs, LambdaResult, NetworkFcbResult, NetworkFcbSummary, NlArc, NlFcbResult, PppAntennaModel, PppArc, PppCorrectionConfig, PppCorrections, PppEpoch, PppEpochContext, PppEpochResult, PppOptions, PppSatObs, PppSolution, RawObservation, RtkEpochMeasurements, RtkFloatEngine, RtkFloatOptions, RtkFloatSolution, RtkMeasurement, SatGeom, SppOptions, SppSolution, TropoMapping, WlArc, WlFcbOptions, WlFcbResult, WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength } from './positioning.js';
20
+ export { AntennaOffset, ArFixedSat, ArOptions, ArResult, ArSat, CorrectionResult, DgnssOptions, DgnssSolution, EphemerisSource, FixedPositionResult, IONO_L1_M_PER_TECU, KlobucharCoeffs, LambdaResult, NetworkFcbResult, NetworkFcbSummary, NlArc, NlFcbResult, PppAntennaModel, PppArc, PppCorrectionConfig, PppCorrections, PppEpoch, PppEpochContext, PppEpochResult, PppFixState, PppOptions, PppSatObs, PppSolution, RawObservation, RtkEpochMeasurements, RtkFloatEngine, RtkFloatOptions, RtkFloatSolution, RtkMeasurement, SatGeom, SppOptions, SppSolution, TropoMapping, WlArc, WlFcbOptions, WlFcbResult, WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength } from './positioning.js';
21
21
  export { NtripCaster, NtripConnectionInfo, NtripNetwork, NtripStream, NtripStreamConnection, NtripVersion, Sourcetable, SourcetableEntry, connectToMountpoint, fetchSourcetable, parseSourcetable } from './ntrip.js';
22
22
  export { CompleteSatSignal, CompleteSignalStats, CompletenessAccumulator, CompletenessResult, CycleSlipAccumulator, CycleSlipEvent, CycleSlipResult, CycleSlipSignalStats, IonoAccumulator, IonoDcbResult, IonoPoint, IonoRatePoint, IonoRateSeries, IonoResult, IonoSeries, MultipathAccumulator, MultipathPoint, MultipathResult, MultipathSeries, MultipathSignalStat, QualityResult, SatDcbMap, analyzeQuality, applyIonoDcb, computeIonoRate, detrendIonoArcs, parseSinexBiasDcb } from './analysis.js';
23
23
  export { AntennaEntry, AntexFile, FrequencyData, frequencyLabel, parseAntex } from './antex.js';
package/dist/index.js CHANGED
@@ -150,6 +150,7 @@ import {
150
150
  estimateNetworkFcbs,
151
151
  estimateWidelaneFcb,
152
152
  extractWidelaneArcs,
153
+ fixPppPosition,
153
154
  gimSlantIonoDelayL1,
154
155
  gimVerticalTec,
155
156
  gmst,
@@ -169,7 +170,7 @@ import {
169
170
  sunEcef,
170
171
  toRtkEpoch,
171
172
  wlWavelength
172
- } from "./chunk-BLGBMRX7.js";
173
+ } from "./chunk-3FG4XVCB.js";
173
174
  import {
174
175
  almanacEpochMs,
175
176
  almanacSatPosition,
@@ -483,6 +484,7 @@ export {
483
484
  extractWidelaneArcs,
484
485
  fetchSourcetable,
485
486
  findSatBias,
487
+ fixPppPosition,
486
488
  fmtD,
487
489
  fmtF,
488
490
  formatUTCTime,
@@ -28,6 +28,7 @@ __export(positioning_exports, {
28
28
  estimateNetworkFcbs: () => estimateNetworkFcbs,
29
29
  estimateWidelaneFcb: () => estimateWidelaneFcb,
30
30
  extractWidelaneArcs: () => extractWidelaneArcs,
31
+ fixPppPosition: () => fixPppPosition,
31
32
  gimSlantIonoDelayL1: () => gimSlantIonoDelayL1,
32
33
  gimVerticalTec: () => gimVerticalTec,
33
34
  gmst: () => gmst,
@@ -2485,6 +2486,28 @@ function solvePpp(epochs, sp3, opts) {
2485
2486
  phaseResRms: nPhaseRes > 0 ? Math.sqrt(sumPhaseResSq / nPhaseRes) : 0
2486
2487
  });
2487
2488
  }
2489
+ let finalState;
2490
+ if (opts.exposeState) {
2491
+ const ambs = [];
2492
+ for (const [prn, index] of ambIdx) {
2493
+ const s = arcSnap.get(prn);
2494
+ if (!s || s.nEpochs < 10) continue;
2495
+ ambs.push({
2496
+ prn,
2497
+ index,
2498
+ aIF: x[index],
2499
+ mwCyc: mwState.get(prn)?.mean ?? s.mwCyc,
2500
+ f1: s.f1,
2501
+ f2: s.f2,
2502
+ elevDeg: s.elevSum / s.nEpochs
2503
+ });
2504
+ }
2505
+ finalState = {
2506
+ position: [x[IDX_X], x[IDX_Y], x[IDX_Z]],
2507
+ covariance: P.map((row) => row.slice()),
2508
+ ambiguities: ambs
2509
+ };
2510
+ }
2488
2511
  for (const prn of [...arcSnap.keys()]) flushArc(prn);
2489
2512
  const finalPos = [x[IDX_X], x[IDX_Y], x[IDX_Z]];
2490
2513
  const llh = ecefToGeodetic(finalPos[0], finalPos[1], finalPos[2]);
@@ -2501,7 +2524,8 @@ function solvePpp(epochs, sp3, opts) {
2501
2524
  epochsUsed: epochs.length,
2502
2525
  convergenceSec,
2503
2526
  finalError3d,
2504
- arcs
2527
+ arcs,
2528
+ finalState
2505
2529
  };
2506
2530
  }
2507
2531
 
@@ -2594,6 +2618,117 @@ function resolvePppAmbiguities(sats, Qaif, opts = {}) {
2594
2618
  rejectedWl
2595
2619
  };
2596
2620
  }
2621
+ function solveSpd(A, b) {
2622
+ const n = b.length;
2623
+ const L = Array.from({ length: n }, () => new Array(n).fill(0));
2624
+ for (let i = 0; i < n; i++) {
2625
+ for (let j = 0; j <= i; j++) {
2626
+ let s = A[i][j];
2627
+ for (let k = 0; k < j; k++) s -= L[i][k] * L[j][k];
2628
+ if (i === j) {
2629
+ if (s <= 0) return null;
2630
+ L[i][j] = Math.sqrt(s);
2631
+ } else {
2632
+ L[i][j] = s / L[j][j];
2633
+ }
2634
+ }
2635
+ }
2636
+ const y = new Array(n).fill(0);
2637
+ for (let i = 0; i < n; i++) {
2638
+ let s = b[i];
2639
+ for (let k = 0; k < i; k++) s -= L[i][k] * y[k];
2640
+ y[i] = s / L[i][i];
2641
+ }
2642
+ const x = new Array(n).fill(0);
2643
+ for (let i = n - 1; i >= 0; i--) {
2644
+ let s = y[i];
2645
+ for (let k = i + 1; k < n; k++) s -= L[k][i] * x[k];
2646
+ x[i] = s / L[i][i];
2647
+ }
2648
+ return x;
2649
+ }
2650
+ function fixPppPosition(state, fcb, opts = {}) {
2651
+ const floatPos = state.position;
2652
+ const noFix = {
2653
+ fixed: false,
2654
+ position: floatPos,
2655
+ floatPosition: floatPos,
2656
+ shift: [0, 0, 0],
2657
+ nFixed: 0,
2658
+ ratio: 0,
2659
+ refPrn: null
2660
+ };
2661
+ const amb = state.ambiguities;
2662
+ if (amb.length < 3) return noFix;
2663
+ const sats = amb.map((a) => ({
2664
+ prn: a.prn,
2665
+ aIF: a.aIF,
2666
+ mwCyc: a.mwCyc,
2667
+ f1: a.f1,
2668
+ f2: a.f2,
2669
+ wlBiasCyc: fcb.satWlFcb.get(a.prn) ?? 0,
2670
+ nlBiasCyc: fcb.satNlFcb.get(a.prn) ?? 0,
2671
+ elevDeg: a.elevDeg
2672
+ }));
2673
+ const n = sats.length;
2674
+ const Qaif = new Float64Array(n * n);
2675
+ for (let i = 0; i < n; i++)
2676
+ for (let j = 0; j < n; j++)
2677
+ Qaif[i * n + j] = state.covariance[amb[i].index][amb[j].index];
2678
+ const res = resolvePppAmbiguities(sats, Qaif, opts);
2679
+ if (!res.fixed || res.refPrn === null) {
2680
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2681
+ }
2682
+ const idxOfPrn = new Map(amb.map((a) => [a.prn, a.index]));
2683
+ const floatOfPrn = new Map(amb.map((a) => [a.prn, a.aIF]));
2684
+ const kept = res.sats.filter((s) => idxOfPrn.has(s.prn));
2685
+ const refPos = kept.findIndex((s) => s.prn === res.refPrn);
2686
+ if (refPos < 0 || kept.length < 2) {
2687
+ return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2688
+ }
2689
+ const ambIdx = kept.map((s) => idxOfPrn.get(s.prn));
2690
+ const aFloat = kept.map((s) => floatOfPrn.get(s.prn));
2691
+ const aFixed = kept.map((s) => s.aIF);
2692
+ const others = kept.map((_, i) => i).filter((i) => i !== refPos);
2693
+ const m = others.length;
2694
+ const P = state.covariance;
2695
+ const qAA = (i, j) => P[ambIdx[i]][ambIdx[j]];
2696
+ const qXA = (r, i) => P[r][ambIdx[i]];
2697
+ const Qzz = Array.from({ length: m }, () => new Array(m).fill(0));
2698
+ const z = new Array(m).fill(0);
2699
+ for (let a = 0; a < m; a++) {
2700
+ const ia = others[a];
2701
+ z[a] = aFloat[ia] - aFloat[refPos] - (aFixed[ia] - aFixed[refPos]);
2702
+ for (let b = 0; b < m; b++) {
2703
+ const ib = others[b];
2704
+ Qzz[a][b] = qAA(ia, ib) - qAA(ia, refPos) - qAA(refPos, ib) + qAA(refPos, refPos);
2705
+ }
2706
+ }
2707
+ const Qxz = [0, 1, 2].map(
2708
+ (r) => others.map((ia) => qXA(r, ia) - qXA(r, refPos))
2709
+ );
2710
+ const y = solveSpd(Qzz, z);
2711
+ if (!y) return { ...noFix, ratio: res.ratio, refPrn: res.refPrn };
2712
+ const shift = [0, 0, 0];
2713
+ for (let r = 0; r < 3; r++) {
2714
+ let s = 0;
2715
+ for (let a = 0; a < m; a++) s += Qxz[r][a] * y[a];
2716
+ shift[r] = -s;
2717
+ }
2718
+ return {
2719
+ fixed: true,
2720
+ position: [
2721
+ floatPos[0] + shift[0],
2722
+ floatPos[1] + shift[1],
2723
+ floatPos[2] + shift[2]
2724
+ ],
2725
+ floatPosition: floatPos,
2726
+ shift,
2727
+ nFixed: m,
2728
+ ratio: res.ratio,
2729
+ refPrn: res.refPrn
2730
+ };
2731
+ }
2597
2732
 
2598
2733
  // src/positioning/ppp-fcb.ts
2599
2734
  function extractWidelaneArcs(station, epochs, opts = {}) {
@@ -3018,6 +3153,7 @@ function solveSpp(pseudoranges, ephemerides, timeMs, opts = {}) {
3018
3153
  estimateNetworkFcbs,
3019
3154
  estimateWidelaneFcb,
3020
3155
  extractWidelaneArcs,
3156
+ fixPppPosition,
3021
3157
  gimSlantIonoDelayL1,
3022
3158
  gimVerticalTec,
3023
3159
  gmst,
@@ -631,6 +631,9 @@ interface PppOptions {
631
631
  ztdProcessNoise?: number;
632
632
  /** Model + estimate the troposphere. Default true. */
633
633
  troposphere?: boolean;
634
+ /** Expose the final EKF state (position + ambiguities + covariance) in the
635
+ * solution for ambiguity-resolved positioning. Default false. */
636
+ exposeState?: boolean;
634
637
  /** High-rate precise satellite clocks (RINEX CLOCK, typically 30 s). When
635
638
  * given, satellite clock offsets come from this by linear interpolation
636
639
  * instead of the SP3 5-minute clocks — the dominant PPP accuracy term.
@@ -669,6 +672,31 @@ interface PppSolution {
669
672
  /** Per-arc converged float ambiguities — one per continuous satellite
670
673
  * tracking arc — the raw material for ambiguity resolution (PPP-AR). */
671
674
  arcs: PppArc[];
675
+ /** Final EKF state (position + active ambiguities + full covariance) for
676
+ * ambiguity-resolved (fixed) positioning. Present only when
677
+ * `PppOptions.exposeState` is set. */
678
+ finalState?: PppFixState;
679
+ }
680
+ /** Final float state exposed for PPP-AR position fixing (`fixPppPosition`). */
681
+ interface PppFixState {
682
+ /** Float position (m); rows 0–2 of the covariance. */
683
+ position: [number, number, number];
684
+ /** Full EKF covariance (n×n). State order: X,Y,Z,ZWD, clocks…, ambiguities. */
685
+ covariance: number[][];
686
+ /** Active ambiguities at the final epoch. */
687
+ ambiguities: {
688
+ prn: string;
689
+ /** Row/column of this ambiguity in `covariance`. */
690
+ index: number;
691
+ /** Float ionosphere-free ambiguity (m). */
692
+ aIF: number;
693
+ /** Arc-averaged Melbourne–Wübbena wide-lane (cycles). */
694
+ mwCyc: number;
695
+ f1: number;
696
+ f2: number;
697
+ /** Mean satellite elevation over the arc (deg). */
698
+ elevDeg: number;
699
+ }[];
672
700
  }
673
701
  /** A converged carrier-phase arc: the float ionosphere-free ambiguity plus
674
702
  * the wide-lane, for integer resolution / FCB estimation. */
@@ -759,6 +787,7 @@ declare function solidEarthTide(rcv: [number, number, number], sun: [number, num
759
787
  * The relation between the IF ambiguity (metres) and the integers is
760
788
  * A_IF = λ_NL·N1 + λ_NL·(f2/(f1−f2))·N_WL, λ_NL = c/(f1+f2).
761
789
  */
790
+
762
791
  /** Wide-lane wavelength c/(f1−f2) (m). */
763
792
  declare function wlWavelength(f1: number, f2: number): number;
764
793
  /** Narrow-lane wavelength c/(f1+f2) (m). */
@@ -812,6 +841,38 @@ interface ArResult {
812
841
  * confident fix (keep the float solution).
813
842
  */
814
843
  declare function resolvePppAmbiguities(sats: ArSat[], Qaif: Float64Array, opts?: ArOptions): ArResult;
844
+ interface FixedPositionResult {
845
+ /** Whether the narrow-lane fix passed the ratio test. */
846
+ fixed: boolean;
847
+ /** Ambiguity-fixed position (m); equals `floatPosition` when not fixed. */
848
+ position: [number, number, number];
849
+ /** The input float position (m). */
850
+ floatPosition: [number, number, number];
851
+ /** Displacement fixed − float (m), ENU-agnostic ECEF. */
852
+ shift: [number, number, number];
853
+ /** Satellites whose ambiguities were fixed (excl. the SD reference). */
854
+ nFixed: number;
855
+ ratio: number;
856
+ refPrn: string | null;
857
+ }
858
+ /**
859
+ * Ambiguity-fixed (PPP-AR) position from a float `solvePpp` final state and
860
+ * the satellite fractional-cycle biases (from `estimateNetworkFcbs`).
861
+ *
862
+ * Resolves the integers (`resolvePppAmbiguities`), then **conditions the
863
+ * float position on the fixed between-satellite ambiguities** — the standard
864
+ * constrained solution
865
+ * x_fixed = x_float − Q_xz · Q_zz⁻¹ · (z_float − ẑ),
866
+ * where z = D·a are the single-differenced ambiguities (D removes the
867
+ * reference satellite, cancelling the receiver term), Q_zz = D·Q_aa·Dᵀ and
868
+ * Q_xz = Q_xa·Dᵀ come from the EKF covariance. Only satellite-to-satellite
869
+ * integers constrain the position; the reference (and the receiver clock it
870
+ * absorbs) stays free. Returns the float position unchanged if the fix fails.
871
+ */
872
+ declare function fixPppPosition(state: PppFixState, fcb: {
873
+ satWlFcb: Map<string, number>;
874
+ satNlFcb: Map<string, number>;
875
+ }, opts?: ArOptions): FixedPositionResult;
815
876
 
816
877
  /**
817
878
  * Wide-lane fractional-cycle bias (FCB) estimation for PPP-AR — the
@@ -1056,4 +1117,4 @@ declare function ionoFree(p1: number, p2: number, f1: number, f2: number): numbe
1056
1117
  */
1057
1118
  declare function solveSpp(pseudoranges: Map<string, number>, ephemerides: Map<string, Ephemeris>, timeMs: number, opts?: SppOptions): SppSolution | null;
1058
1119
 
1059
- export { type AntennaOffset, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type DgnssOptions, type DgnssSolution, type EphemerisSource, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type SatGeom, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
1120
+ export { type AntennaOffset, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type SatGeom, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
@@ -631,6 +631,9 @@ interface PppOptions {
631
631
  ztdProcessNoise?: number;
632
632
  /** Model + estimate the troposphere. Default true. */
633
633
  troposphere?: boolean;
634
+ /** Expose the final EKF state (position + ambiguities + covariance) in the
635
+ * solution for ambiguity-resolved positioning. Default false. */
636
+ exposeState?: boolean;
634
637
  /** High-rate precise satellite clocks (RINEX CLOCK, typically 30 s). When
635
638
  * given, satellite clock offsets come from this by linear interpolation
636
639
  * instead of the SP3 5-minute clocks — the dominant PPP accuracy term.
@@ -669,6 +672,31 @@ interface PppSolution {
669
672
  /** Per-arc converged float ambiguities — one per continuous satellite
670
673
  * tracking arc — the raw material for ambiguity resolution (PPP-AR). */
671
674
  arcs: PppArc[];
675
+ /** Final EKF state (position + active ambiguities + full covariance) for
676
+ * ambiguity-resolved (fixed) positioning. Present only when
677
+ * `PppOptions.exposeState` is set. */
678
+ finalState?: PppFixState;
679
+ }
680
+ /** Final float state exposed for PPP-AR position fixing (`fixPppPosition`). */
681
+ interface PppFixState {
682
+ /** Float position (m); rows 0–2 of the covariance. */
683
+ position: [number, number, number];
684
+ /** Full EKF covariance (n×n). State order: X,Y,Z,ZWD, clocks…, ambiguities. */
685
+ covariance: number[][];
686
+ /** Active ambiguities at the final epoch. */
687
+ ambiguities: {
688
+ prn: string;
689
+ /** Row/column of this ambiguity in `covariance`. */
690
+ index: number;
691
+ /** Float ionosphere-free ambiguity (m). */
692
+ aIF: number;
693
+ /** Arc-averaged Melbourne–Wübbena wide-lane (cycles). */
694
+ mwCyc: number;
695
+ f1: number;
696
+ f2: number;
697
+ /** Mean satellite elevation over the arc (deg). */
698
+ elevDeg: number;
699
+ }[];
672
700
  }
673
701
  /** A converged carrier-phase arc: the float ionosphere-free ambiguity plus
674
702
  * the wide-lane, for integer resolution / FCB estimation. */
@@ -759,6 +787,7 @@ declare function solidEarthTide(rcv: [number, number, number], sun: [number, num
759
787
  * The relation between the IF ambiguity (metres) and the integers is
760
788
  * A_IF = λ_NL·N1 + λ_NL·(f2/(f1−f2))·N_WL, λ_NL = c/(f1+f2).
761
789
  */
790
+
762
791
  /** Wide-lane wavelength c/(f1−f2) (m). */
763
792
  declare function wlWavelength(f1: number, f2: number): number;
764
793
  /** Narrow-lane wavelength c/(f1+f2) (m). */
@@ -812,6 +841,38 @@ interface ArResult {
812
841
  * confident fix (keep the float solution).
813
842
  */
814
843
  declare function resolvePppAmbiguities(sats: ArSat[], Qaif: Float64Array, opts?: ArOptions): ArResult;
844
+ interface FixedPositionResult {
845
+ /** Whether the narrow-lane fix passed the ratio test. */
846
+ fixed: boolean;
847
+ /** Ambiguity-fixed position (m); equals `floatPosition` when not fixed. */
848
+ position: [number, number, number];
849
+ /** The input float position (m). */
850
+ floatPosition: [number, number, number];
851
+ /** Displacement fixed − float (m), ENU-agnostic ECEF. */
852
+ shift: [number, number, number];
853
+ /** Satellites whose ambiguities were fixed (excl. the SD reference). */
854
+ nFixed: number;
855
+ ratio: number;
856
+ refPrn: string | null;
857
+ }
858
+ /**
859
+ * Ambiguity-fixed (PPP-AR) position from a float `solvePpp` final state and
860
+ * the satellite fractional-cycle biases (from `estimateNetworkFcbs`).
861
+ *
862
+ * Resolves the integers (`resolvePppAmbiguities`), then **conditions the
863
+ * float position on the fixed between-satellite ambiguities** — the standard
864
+ * constrained solution
865
+ * x_fixed = x_float − Q_xz · Q_zz⁻¹ · (z_float − ẑ),
866
+ * where z = D·a are the single-differenced ambiguities (D removes the
867
+ * reference satellite, cancelling the receiver term), Q_zz = D·Q_aa·Dᵀ and
868
+ * Q_xz = Q_xa·Dᵀ come from the EKF covariance. Only satellite-to-satellite
869
+ * integers constrain the position; the reference (and the receiver clock it
870
+ * absorbs) stays free. Returns the float position unchanged if the fix fails.
871
+ */
872
+ declare function fixPppPosition(state: PppFixState, fcb: {
873
+ satWlFcb: Map<string, number>;
874
+ satNlFcb: Map<string, number>;
875
+ }, opts?: ArOptions): FixedPositionResult;
815
876
 
816
877
  /**
817
878
  * Wide-lane fractional-cycle bias (FCB) estimation for PPP-AR — the
@@ -1056,4 +1117,4 @@ declare function ionoFree(p1: number, p2: number, f1: number, f2: number): numbe
1056
1117
  */
1057
1118
  declare function solveSpp(pseudoranges: Map<string, number>, ephemerides: Map<string, Ephemeris>, timeMs: number, opts?: SppOptions): SppSolution | null;
1058
1119
 
1059
- export { type AntennaOffset, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type DgnssOptions, type DgnssSolution, type EphemerisSource, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type SatGeom, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
1120
+ export { type AntennaOffset, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type SatGeom, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, buildPppAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, resolvePppAmbiguities, satClockCorrection, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
@@ -7,6 +7,7 @@ import {
7
7
  estimateNetworkFcbs,
8
8
  estimateWidelaneFcb,
9
9
  extractWidelaneArcs,
10
+ fixPppPosition,
10
11
  gimSlantIonoDelayL1,
11
12
  gimVerticalTec,
12
13
  gmst,
@@ -26,7 +27,7 @@ import {
26
27
  sunEcef,
27
28
  toRtkEpoch,
28
29
  wlWavelength
29
- } from "./chunk-BLGBMRX7.js";
30
+ } from "./chunk-3FG4XVCB.js";
30
31
  import "./chunk-MHGNKSSH.js";
31
32
  import "./chunk-37QNKGTC.js";
32
33
  import "./chunk-6FAL6P4G.js";
@@ -43,6 +44,7 @@ export {
43
44
  estimateNetworkFcbs,
44
45
  estimateWidelaneFcb,
45
46
  extractWidelaneArcs,
47
+ fixPppPosition,
46
48
  gimSlantIonoDelayL1,
47
49
  gimVerticalTec,
48
50
  gmst,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "1.35.0",
3
+ "version": "1.36.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,