Changeset 11227 in ntrip
- Timestamp:
- Nov 26, 2026, 1:23:29 PM (less than one hour ago)
- Location:
- trunk/BNC
- Files:
-
- 10 added
- 11 edited
-
CHANGELOG.md (modified) (1 diff)
-
src/RTCM3/RTCM3coDecoder.cpp (modified) (7 diffs)
-
src/RTCM3/RTCM3coDecoder.h (modified) (3 diffs)
-
src/RTCM3/clock_and_orbit/clock_orbit.h (modified) (1 diff)
-
src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp (modified) (2 diffs)
-
src/bnccore.cpp (modified) (1 diff)
-
src/bnccore.h (modified) (2 diffs)
-
src/bnchelp.html (modified) (1 diff)
-
src/ssrQc.cpp (modified) (7 diffs)
-
src/ssrQc.h (modified) (2 diffs)
-
tests/cases/ssr_qc_vtec/expected/SSRC01CAS1_S_20262880000_01D_QC.txt.gz (modified) ( previous)
-
tests/cases/ssr_qc_vtec_rms (added)
-
tests/cases/ssr_qc_vtec_rms/case.json (added)
-
tests/cases/ssr_qc_vtec_rms/expected (added)
-
tests/cases/ssr_qc_vtec_rms/expected/IONO00CAS1_S_20263240000_01D_QC.txt.gz (added)
-
tests/cases/ssr_qc_vtec_rms/expected/IONO00NRC0_S_20263240000_01D_QC.txt.gz (added)
-
tests/cases/ssr_qc_vtec_rms/expected/IONO00UPC1_S_20263240000_01D_QC.txt.gz (added)
-
tests/cases/ssr_qc_vtec_rms/expected/IONO00WHU1_S_20263240000_01D_QC.txt.gz (added)
-
tests/cases/ssr_qc_vtec_rms/expected/IONO01IGS1_S_20263240000_01D_QC.txt.gz (added)
-
tests/cases/ssr_qc_vtec_rms/expected/SSRC01CAS1_S_20263240000_01D_QC.txt.gz (added)
-
tests/data/ssr_qc_vtec_rms_261120_15min.raw (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/CHANGELOG.md
r11221 r11227 1 1 # Changelog 2 2 ## 2.13.9 (unreleased) 3 - ADDED: **SSR QC: RMS of the VTEC (IGS-SSR message 202).** The IGS-SSR decoder reads message 202 ('Proposal of New IGS-SSR Ionospheric RMS Message', CAS, Dec 2025; same layout as 201); a message shorter than its header is rejected. The RMS maps go to the SSR QC only (not to the .ssr files or PPP): evaluated on the VTEC grid and compared with the differences of the model to the consensus (stated vs actual RMS, differences normalized by the stated RMS, share within 1 and 2 RMS). Replay 20 Nov 2026 22-23 h: IONO00CAS1 stated 1.0-6.3 TECU (RMS 4.2) vs actual 4.5 TECU, normalized RMS 1.23, 67 %/91 % within 1/2 RMS (realistic); SSRC01CAS1 a constant 1.2 TECU (only C00) vs actual 10 TECU; IONO01IGS1 sends 202 with only 80 bits (header incomplete), rejected. New test case ssr_qc_vtec_rms 3 4 - FIXED: **Combination: the orbit consistency correction dC_orb was always zero (since r10820, March 2026).** The radial difference between the orbit of an AC and the master orbit, which keeps the combined clocks consistent with the master orbit, was computed from broadcast positions without the SSR orbit corrections, i.e. identical for all ACs. Orbit differences between the ACs therefore remained in the combined product: IGS02/IGS03 R10 R20 R23 0.6-0.75 m SIS vs. the other ACs in most hours of 20-23 Nov 2026 (radial orbit corrections of the GLONASS master CHC00 0.33 m off for R23). The positions now include the orbit correction of each AC. Replay 21 Nov 2026 (IGS03 inputs, 13 min): R23 SIS vs. the ACs +0.30 -> -0.11 m; PPP with the combined product (combi_ppp) RMS N/E/U 1.1/4.2/10.2 -> 2.9/2.3/1.9 cm. References of combi, combi_refsig, combi_ppp, combi_bds_level, combi_multi updated 4 5 - FIXED: **SSR VTEC: a repeated VTEC message added its layers to the model of its epoch again.** The layers of a VTEC message were appended to the record of its epoch until a newer epoch arrived, so every retransmission of the same epoch added the complete model once more. IONO01IGS0 (RTCM 1264, Nov 2026) repeats each epoch 5 to 400 times, partly out of order and with non-RTCM bytes between the frames: the model reached up to 170 identical layers, i.e. VTEC up to 3900 TECU in PPP, the .ssr files and the SSR QC (14 of 57 hours), while the messages themselves are correct (hand decode: CRC-valid, coefficients up to 22 TECU, identical to IONO01IGS1). A VTEC message now replaces the record of its epoch; only the continuation of a multi-message model (Multiple Message Indicator 1) appends. New test case ssr_vtec_repeat -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r11221 r11227 87 87 BNC_CORE, SLOT(slotNewTec(t_vTec)), conType); 88 88 89 connect(this, SIGNAL(newTecRms(t_vTec)), 90 BNC_CORE, SLOT(slotNewTecRms(t_vTec)), conType); 91 89 92 connect(this, SIGNAL(newMetaData(t_metaData)), 90 93 BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType); … … 111 114 _providerID[2] = -1; 112 115 113 _vTecMoreFollows = false; 116 _vTecMoreFollows = false; 117 _vTecRmsMoreFollows = false; 114 118 115 119 for (unsigned s = 0; s < CLOCKORBIT_SATNUM; s++) { … … 143 147 _phaseBiases.clear(); 144 148 _vTecMap.clear(); 149 _vTecRmsMap.clear(); 145 150 _metaDataMap.clear(); 146 151 _satAntennas.clear(); … … 309 314 // VTEC message starts the record of its epoch anew (sendResults()) 310 315 if (_vTEC.NumLayers > 0) { 311 _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS); 316 if (_vTEC.RmsMap) { 317 _vTecRmsMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS); 318 } 319 else { 320 _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS); 321 } 312 322 } 313 323 // Keep _phaseBias intact: an Extended Phase Bias message (COBOFS_PBEXT) … … 682 692 // 400 times (Nov 2026), which summed up to 3900 TECU in PPP and SSR QC. 683 693 // Only the continuation of a multi-message model (previous MMI 1) appends. 684 if (!_vTecMoreFollows) { 685 _vTecMap[_lastTime] = t_vTec(); 686 } 687 _vTecMap[_lastTime]._time = _lastTime; 688 _vTecMap[_lastTime]._updateInt = _vTEC.UpdateInterval; 689 _vTecMap[_lastTime]._staID = _staID.toStdString(); 694 // The RMS of the VTEC (IGS-SSR IM202, same layout) is kept apart: it 695 // goes to the SSR QC only, not to the SSR file or PPP. 696 QMap<bncTime, t_vTec>& tecMap = _vTEC.RmsMap ? _vTecRmsMap : _vTecMap; 697 if (!(_vTEC.RmsMap ? _vTecRmsMoreFollows : _vTecMoreFollows)) { 698 tecMap[_lastTime] = t_vTec(); 699 } 700 t_vTec& vTec = tecMap[_lastTime]; 701 vTec._time = _lastTime; 702 vTec._updateInt = _vTEC.UpdateInterval; 703 vTec._staID = _staID.toStdString(); 690 704 for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) { 691 705 const SsrCorr::VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii]; … … 700 714 } 701 715 } 702 _vTecMap[_lastTime]._layers.push_back(layer);716 vTec._layers.push_back(layer); 703 717 } 704 718 } … … 936 950 } 937 951 } 952 QMutableMapIterator<bncTime, t_vTec> itTecRms(_vTecRmsMap); 953 while (itTecRms.hasNext()) { 954 itTecRms.next(); 955 if (all || itTecRms.key() < _lastTime) { 956 emit newTecRms(itTecRms.value()); 957 itTecRms.remove(); 958 } 959 } 938 960 QMutableMapIterator<bncTime, t_metaData> itMD(_metaDataMap); 939 961 while (itMD.hasNext()) { -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r11221 r11227 66 66 void newPhaseBiases(QList<t_satPhaseBias>); 67 67 void newTec(t_vTec); 68 void newTecRms(t_vTec); // RMS of the VTEC (IGS-SSR IM202), only for the SSR QC 68 69 void newMetaData(t_metaData); 69 70 void newSatAntennas(QList<t_satAntenna>); … … 133 134 QMap<bncTime, QList<t_satPhaseBias> > _phaseBiases; 134 135 QMap<bncTime, t_vTec> _vTecMap; 136 QMap<bncTime, t_vTec> _vTecRmsMap; // RMS of the VTEC (IM202), not written to the SSR file 135 137 QMap<bncTime, t_metaData> _metaDataMap; 136 138 QMap<bncTime, QList<t_satAntenna> > _satAntennas; … … 138 140 bool _antennaReceived[CLOCKORBIT_SATNUM]; 139 141 bool _vTecMoreFollows; // last VTEC message had MMI 1: the next one continues its epoch 142 bool _vTecRmsMoreFollows; // the same for the RMS of the VTEC (IM202) 140 143 unsigned int _antennaSentProviderID[CLOCKORBIT_COUNTSAT]; 141 144 unsigned int _antennaSentIOD[CLOCKORBIT_COUNTSAT]; -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h
r11194 r11227 449 449 unsigned int SSRSolutionID; 450 450 unsigned int NumLayers; /* 1-4 */ 451 unsigned int RmsMap; /* 1: RMS of the VTEC (IGS-SSR IM202, CAS proposal Dec 2025), 0: VTEC */ 451 452 double Quality; 452 453 struct IonoLayers { -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp
r11042 r11227 314 314 } 315 315 316 static const unsigned int VTEC_RMS_IGS = 202; // IGS-SSR IM202 (proposal), RMS of IM201 317 316 318 enum GCOB_RETURN SsrCorrIgs::GetSSR(struct ClockOrbit *co, struct CodeBias *cb,struct VTEC *v, 317 319 struct PhaseBias *pb, struct MetaData *md, struct Antenna* a, const char *buffer, size_t size, int *bytesused) { … … 357 359 *bytesused = sizeofrtcmblock + 6; 358 360 359 if (igstype == VTEC_BASE) { 361 // IM202: Ionospheric RMS spherical harmonics ("Proposal of New IGS-SSR 362 // Ionospheric RMS Message", N. Wang, CAS, Dec 2025), same layout as IM201; 363 // a message shorter than its header is rejected (GCOBR_SHORTMESSAGE) 364 if (igstype == VTEC_BASE || igstype == VTEC_RMS_IGS) { 360 365 unsigned int l, o, d; 361 366 if (!v) 362 367 return GCOBR_NOVTECPARAMETER; 363 368 memset(v, 0, sizeof(*v)); 369 v->RmsMap = (igstype == VTEC_RMS_IGS) ? 1 : 0; 364 370 D_GPS_EPOCH_TIME(v->EpochTime) 365 371 D_SSR_UPDATE_INTERVAL(v->UpdateInterval) -
trunk/BNC/src/bnccore.cpp
r11215 r11227 860 860 } 861 861 862 // RMS of the VTEC (IGS-SSR IM202): passed on to the SSR QC only 863 //////////////////////////////////////////////////////////////////////////// 864 void t_bncCore::slotNewTecRms(t_vTec vTec) { 865 QMutexLocker locker(&_mutex); 866 emit newTecRms(vTec); 867 } 868 862 869 // 863 870 //////////////////////////////////////////////////////////////////////////// -
trunk/BNC/src/bnccore.h
r11215 r11227 132 132 void slotNewPhaseBiases(QList<t_satPhaseBias>); 133 133 void slotNewTec(t_vTec); 134 void slotNewTecRms(t_vTec); 134 135 void slotNewMetaData(t_metaData); 135 136 void slotNewSatAntennas(QList<t_satAntenna>); … … 148 149 void newPhaseBiases(QList<t_satPhaseBias>); 149 150 void newTec(t_vTec); 151 void newTecRms(t_vTec); // RMS of the VTEC (IGS-SSR IM202), SSR QC only 150 152 void newMetaData(t_metaData); 151 153 void newSatAntennas(QList<t_satAntenna>); -
trunk/BNC/src/bnchelp.html
r11221 r11227 5561 5561 V VTEC on a global 10 x 15 deg grid: 2.1 ... 65.7 TECU, negative (set to zero) 0.0 % 5562 5562 V VTEC comparison with consensus of the other ACs (1.0 solutions on average), 12 epochs: mean 3.47 TECU, RMS 7.55 TECU, max |diff| 24.0 TECU 5563 </pre> 5564 <p> 5565 Streams which also send the RMS of the VTEC (IGS-SSR message 202, 'Proposal of New IGS-SSR Ionospheric RMS 5566 Message', CAS, December 2025: spherical harmonics of the same form as the VTEC) get the RMS map evaluated on the 5567 same grid and epochs: the range and RMS of the stated values compared with the actual RMS of the differences to 5568 the consensus, and the differences normalized by the stated RMS (RMS of the normalized differences, share of 5569 differences within one and two times the stated RMS; for a realistic RMS near 1, 68 % and 95 %, somewhat 5570 worse as the consensus has errors of its own). The RMS maps are only used here, not written to the SSR files or 5571 used in PPP. A 202 message shorter than its header is rejected by the decoder, e.g. 5572 </p> 5573 <pre> 5574 V VTEC RMS map (IGS-SSR 202): 1 layer(s): 450 km (degree/order 15/15) 5575 V VTEC RMS map, 12 epochs: stated RMS 1.0 ... 6.3 TECU (RMS 4.20 TECU), actual RMS of the differences 4.47 TECU, negative (set to zero) 0.0 % 5576 V VTEC differences normalized by the stated RMS: RMS 1.23, |diff| <= RMS 67.3 %, <= 2 RMS 91.4 % (normal distribution: 68 %, 95 %) 5563 5577 </pre> 5564 5578 <p> -
trunk/BNC/src/ssrQc.cpp
r11220 r11227 79 79 const double VTEC_CMP_DELAY = 120.0; // [s] VTEC epochs compared when data this much newer arrived 80 80 const double VTEC_HIST = 3600.0; // [s] VTEC models kept for the comparison 81 const double VTEC_RMS_MIN = 0.05; // [TECU] stated RMS below this is not used for normalized differences 81 82 const double VTEC_GRID_LAT = 10.0; // [deg] grid of the VTEC evaluation, latitudes -80 ... 80 82 83 const double VTEC_GRID_LON = 15.0; // [deg] … … 196 197 connect(BNC_CORE, SIGNAL(newTec(t_vTec)), 197 198 this, SLOT(slotNewTec(t_vTec)), Qt::DirectConnection); 199 connect(BNC_CORE, SIGNAL(newTecRms(t_vTec)), 200 this, SLOT(slotNewTecRms(t_vTec)), Qt::DirectConnection); 198 201 // combined corrections (stream INTERNAL) 199 202 if (bncComb::exists()) { … … 1612 1615 } 1613 1616 1617 // RMS of the VTEC (IGS-SSR IM202, proposal of CAS, Dec 2025): kept for the 1618 // streams checked, compared with the actual differences in compareVtec() 1619 //////////////////////////////////////////////////////////////////////////// 1620 void t_ssrQc::slotNewTecRms(t_vTec vTec) { 1621 QMutexLocker locker(&_mutex); 1622 if (vTec._layers.empty() || badEpoch(vTec._staID, vTec._time) || !selected(vTec._staID)) { 1623 return; 1624 } 1625 QString sta = QString::fromStdString(vTec._staID); 1626 QMap<double, t_vTec>& hist = _vtecRmsHist[sta]; 1627 hist[tKey(vTec._time)] = vTec; 1628 while (!hist.isEmpty() && tKey(vTec._time) - hist.firstKey() > VTEC_HIST) { 1629 hist.erase(hist.begin()); 1630 } 1631 QStringList layers; 1632 for (const t_vTecLayer& layer : vTec._layers) { 1633 layers << QString("%1 km (degree/order %2/%3)").arg(layer._height / 1000.0, 0, 'f', 0) 1634 .arg(layer._C.Nrows() - 1).arg(layer._C.Ncols() - 1); 1635 } 1636 _vtecStat[sta].rmsModel = QString("%1 layer(s): %2").arg(vTec._layers.size()).arg(layers.join(", ")); 1637 } 1638 1614 1639 // VTEC [TECU] of a model at a geocentric latitude and longitude [rad] and 1615 1640 // epoch: spherical harmonics in the sun-fixed frame as used in PPP, sum of … … 1720 1745 st.numCmp += 1; 1721 1746 st.numSol += perSol.size(); 1747 1748 // RMS map of the model (IM202): latest one not newer than the comparison 1749 // epoch and not older than the VTEC model used 1750 QVector<double> rmsVal; 1751 if (_vtecRmsHist.contains(staID)) { 1752 const QMap<double, t_vTec>& hist = _vtecRmsHist[staID]; 1753 QMap<double, t_vTec>::const_iterator it = hist.upperBound(tk); 1754 if (it != hist.constBegin()) { 1755 --it; 1756 if (it.key() >= tKey(models[staID]->_time)) { 1757 rmsVal.resize(grid.size()); 1758 for (int ii = 0; ii < grid.size(); ii++) { 1759 bool negative = false; 1760 rmsVal[ii] = vtecAt(it.value(), grid[ii].first, grid[ii].second, tt, negative); 1761 if (negative) st.numRmsNeg += 1; 1762 } 1763 st.numRmsCmp += 1; 1764 } 1765 } 1766 } 1767 1722 1768 for (int ii = 0; ii < grid.size(); ii++) { 1723 1769 QVector<double> solVal; … … 1732 1778 st.sDiff2 += diff * diff; 1733 1779 st.maxAbs = max(st.maxAbs, fabs(diff)); 1780 if (!rmsVal.isEmpty()) { 1781 double rr = rmsVal[ii]; 1782 if (st.numRms + st.numRmsZero == 0 || rr < st.minR) st.minR = rr; 1783 if (st.numRms + st.numRmsZero == 0 || rr > st.maxR) st.maxR = rr; 1784 st.sR2 += rr * rr; 1785 st.sD2 += diff * diff; 1786 if (rr > VTEC_RMS_MIN) { 1787 st.numRms += 1; 1788 st.sN2 += (diff / rr) * (diff / rr); 1789 if (fabs(diff) <= rr) st.in1 += 1; 1790 if (fabs(diff) <= 2.0 * rr) st.in2 += 1; 1791 } 1792 else { 1793 st.numRmsZero += 1; 1794 } 1795 } 1734 1796 } 1735 1797 } … … 1894 1956 else { 1895 1957 lines << "VTEC not compared: no other model available"; 1958 } 1959 if (!vs.rmsModel.isEmpty()) { 1960 lines << "VTEC RMS map (IGS-SSR 202): " + vs.rmsModel; 1961 } 1962 unsigned numR = vs.numRms + vs.numRmsZero; 1963 if (numR) { 1964 lines << QString("VTEC RMS map, %1 epochs: stated RMS %2 ... %3 TECU (RMS %4 TECU), " 1965 "actual RMS of the differences %5 TECU, negative (set to zero) %6 %") 1966 .arg(vs.numRmsCmp).arg(vs.minR, 0, 'f', 1).arg(vs.maxR, 0, 'f', 1) 1967 .arg(sqrt(vs.sR2 / numR), 0, 'f', 2).arg(sqrt(vs.sD2 / numR), 0, 'f', 2) 1968 .arg(100.0 * vs.numRmsNeg / numR, 0, 'f', 1); 1969 if (vs.numRms) { 1970 lines << QString("VTEC differences normalized by the stated RMS: RMS %1, " 1971 "|diff| <= RMS %2 %, <= 2 RMS %3 % (normal distribution: 68 %, 95 %)%4") 1972 .arg(sqrt(vs.sN2 / vs.numRms), 0, 'f', 2) 1973 .arg(100.0 * vs.in1 / vs.numRms, 0, 'f', 1) 1974 .arg(100.0 * vs.in2 / vs.numRms, 0, 'f', 1) 1975 .arg(vs.numRmsZero ? QString(", %1 grid values with RMS <= %2 TECU not normalized") 1976 .arg(vs.numRmsZero).arg(VTEC_RMS_MIN) : QString()); 1977 } 1978 } 1979 else if (!vs.rmsModel.isEmpty()) { 1980 lines << "VTEC RMS map not compared: no matching VTEC comparison"; 1896 1981 } 1897 1982 } … … 2253 2338 for (QMap<QString, t_vtecStat>::iterator it = _vtecStat.begin(); it != _vtecStat.end(); ++it) { 2254 2339 t_vtecStat fresh; 2255 fresh.model = it.value().model; 2340 fresh.model = it.value().model; 2341 fresh.rmsModel = it.value().rmsModel; 2256 2342 it.value() = fresh; 2257 2343 } -
trunk/BNC/src/ssrQc.h
r11220 r11227 33 33 void slotNewPhaseBiases(QList<t_satPhaseBias> phaseBiases); 34 34 void slotNewTec(t_vTec vTec); 35 void slotNewTecRms(t_vTec vTec); 35 36 36 37 signals: … … 261 262 double maxVal = 0.0; 262 263 QString model; // layers, heights, degree/order of the latest model 264 // RMS of the VTEC (IGS-SSR IM202): stated RMS r against the difference d 265 // to the consensus at the same grid points 266 QString rmsModel; // layers of the latest RMS map 267 unsigned numRmsCmp = 0; // compared epochs with an RMS map 268 unsigned numRms = 0; // grid values with r > RMS_MIN 269 unsigned numRmsZero = 0; // grid values with r <= RMS_MIN (not normalized) 270 unsigned numRmsNeg = 0; // negative RMS values (set to zero) 271 double sR2 = 0.0; // sum r^2 [TECU^2] 272 double sD2 = 0.0; // sum d^2 at the same points [TECU^2] 273 double sN2 = 0.0; // sum (d/r)^2 274 double minR = 0.0; // [TECU] 275 double maxR = 0.0; 276 unsigned in1 = 0; // |d| <= r 277 unsigned in2 = 0; // |d| <= 2 r 263 278 }; 264 279 void compareVtec(const bncTime& tt); 265 280 static double vtecAt(const t_vTec& vTec, double lat, double lon, const bncTime& tt, bool& negative); 266 281 QMap<QString, QMap<double, t_vTec> > _vtecHist; // stream, time 282 QMap<QString, QMap<double, t_vTec> > _vtecRmsHist; // RMS of the VTEC (IM202): stream, time 267 283 QMap<QString, t_vtecStat> _vtecStat; // stream 268 284 bncTime _nextVtecCmp;
Note:
See TracChangeset
for help on using the changeset viewer.
