Changeset 11227 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 26, 2026, 1:23:29 PM (9 hours ago)
Author:
stuerze
Message:

proposed IGS SSR 202 message added in SSR QC

Location:
trunk/BNC
Files:
10 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/CHANGELOG.md

    r11221 r11227  
    11# Changelog
    22## 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
    34- 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
    45- 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  
    8787          BNC_CORE, SLOT(slotNewTec(t_vTec)), conType);
    8888
     89  connect(this, SIGNAL(newTecRms(t_vTec)),
     90          BNC_CORE, SLOT(slotNewTecRms(t_vTec)), conType);
     91
    8992  connect(this, SIGNAL(newMetaData(t_metaData)),
    9093          BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType);
    … …  
    111114  _providerID[2] = -1;
    112115
    113   _vTecMoreFollows = false;
     116  _vTecMoreFollows    = false;
     117  _vTecRmsMoreFollows = false;
    114118
    115119  for (unsigned s = 0; s < CLOCKORBIT_SATNUM; s++) {
    … …  
    143147  _phaseBiases.clear();
    144148  _vTecMap.clear();
     149  _vTecRmsMap.clear();
    145150  _metaDataMap.clear();
    146151  _satAntennas.clear();
    … …  
    309314        // VTEC message starts the record of its epoch anew (sendResults())
    310315        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          }
    312322        }
    313323        // Keep _phaseBias intact: an Extended Phase Bias message (COBOFS_PBEXT)
    … …  
    682692    // 400 times (Nov 2026), which summed up to 3900 TECU in PPP and SSR QC.
    683693    // 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();
    690704    for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) {
    691705      const SsrCorr::VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii];
    … …  
    700714        }
    701715      }
    702       _vTecMap[_lastTime]._layers.push_back(layer);
     716      vTec._layers.push_back(layer);
    703717    }
    704718  }
    … …  
    936950    }
    937951  }
     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  }
    938960  QMutableMapIterator<bncTime, t_metaData> itMD(_metaDataMap);
    939961  while (itMD.hasNext()) {
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r11221 r11227  
    6666  void newPhaseBiases(QList<t_satPhaseBias>);
    6767  void newTec(t_vTec);
     68  void newTecRms(t_vTec);   // RMS of the VTEC (IGS-SSR IM202), only for the SSR QC
    6869  void newMetaData(t_metaData);
    6970  void newSatAntennas(QList<t_satAntenna>);
    … …  
    133134  QMap<bncTime, QList<t_satPhaseBias> > _phaseBiases;
    134135  QMap<bncTime, t_vTec>                 _vTecMap;
     136  QMap<bncTime, t_vTec>                 _vTecRmsMap;     // RMS of the VTEC (IM202), not written to the SSR file
    135137  QMap<bncTime, t_metaData>             _metaDataMap;
    136138  QMap<bncTime, QList<t_satAntenna> >   _satAntennas;
    … …  
    138140  bool                                  _antennaReceived[CLOCKORBIT_SATNUM];
    139141  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)
    140143  unsigned int                          _antennaSentProviderID[CLOCKORBIT_COUNTSAT];
    141144  unsigned int                          _antennaSentIOD[CLOCKORBIT_COUNTSAT];
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h

    r11194 r11227  
    449449    unsigned int SSRSolutionID;
    450450    unsigned int NumLayers; /* 1-4 */
     451    unsigned int RmsMap; /* 1: RMS of the VTEC (IGS-SSR IM202, CAS proposal Dec 2025), 0: VTEC */
    451452    double Quality;
    452453    struct IonoLayers {
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp

    r11042 r11227  
    314314}
    315315
     316static const unsigned int VTEC_RMS_IGS = 202; // IGS-SSR IM202 (proposal), RMS of IM201
     317
    316318enum GCOB_RETURN SsrCorrIgs::GetSSR(struct ClockOrbit *co, struct CodeBias *cb,struct VTEC *v,
    317319    struct PhaseBias *pb, struct MetaData *md, struct Antenna* a, const char *buffer, size_t size, int *bytesused) {
    … …  
    357359    *bytesused = sizeofrtcmblock + 6;
    358360
    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) {
    360365    unsigned int l, o, d;
    361366    if (!v)
    362367      return GCOBR_NOVTECPARAMETER;
    363368    memset(v, 0, sizeof(*v));
     369    v->RmsMap = (igstype == VTEC_RMS_IGS) ? 1 : 0;
    364370    D_GPS_EPOCH_TIME(v->EpochTime)
    365371    D_SSR_UPDATE_INTERVAL(v->UpdateInterval)
  • trunk/BNC/src/bnccore.cpp

    r11215 r11227  
    860860}
    861861
     862// RMS of the VTEC (IGS-SSR IM202): passed on to the SSR QC only
     863////////////////////////////////////////////////////////////////////////////
     864void t_bncCore::slotNewTecRms(t_vTec vTec) {
     865  QMutexLocker locker(&_mutex);
     866  emit newTecRms(vTec);
     867}
     868
    862869//
    863870////////////////////////////////////////////////////////////////////////////
  • trunk/BNC/src/bnccore.h

    r11215 r11227  
    132132  void slotNewPhaseBiases(QList<t_satPhaseBias>);
    133133  void slotNewTec(t_vTec);
     134  void slotNewTecRms(t_vTec);
    134135  void slotNewMetaData(t_metaData);
    135136  void slotNewSatAntennas(QList<t_satAntenna>);
    … …  
    148149  void newPhaseBiases(QList<t_satPhaseBias>);
    149150  void newTec(t_vTec);
     151  void newTecRms(t_vTec);     // RMS of the VTEC (IGS-SSR IM202), SSR QC only
    150152  void newMetaData(t_metaData);
    151153  void newSatAntennas(QList<t_satAntenna>);
  • trunk/BNC/src/bnchelp.html

    r11221 r11227  
    55615561  V VTEC on a global 10 x 15 deg grid: 2.1 ... 65.7 TECU, negative (set to zero) 0.0 %
    55625562  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 %)
    55635577</pre>
    55645578  <p>
  • trunk/BNC/src/ssrQc.cpp

    r11220 r11227  
    7979  const double VTEC_CMP_DELAY = 120.0;  // [s] VTEC epochs compared when data this much newer arrived
    8080  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
    8182  const double VTEC_GRID_LAT  = 10.0;   // [deg] grid of the VTEC evaluation, latitudes -80 ... 80
    8283  const double VTEC_GRID_LON  = 15.0;   // [deg]
    … …  
    196197  connect(BNC_CORE, SIGNAL(newTec(t_vTec)),
    197198          this, SLOT(slotNewTec(t_vTec)), Qt::DirectConnection);
     199  connect(BNC_CORE, SIGNAL(newTecRms(t_vTec)),
     200          this, SLOT(slotNewTecRms(t_vTec)), Qt::DirectConnection);
    198201  // combined corrections (stream INTERNAL)
    199202  if (bncComb::exists()) {
    … …  
    16121615}
    16131616
     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////////////////////////////////////////////////////////////////////////////
     1620void 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
    16141639// VTEC [TECU] of a model at a geocentric latitude and longitude [rad] and
    16151640// epoch: spherical harmonics in the sun-fixed frame as used in PPP, sum of
    … …  
    17201745    st.numCmp += 1;
    17211746    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
    17221768    for (int ii = 0; ii < grid.size(); ii++) {
    17231769      QVector<double> solVal;
    … …  
    17321778      st.sDiff2  += diff * diff;
    17331779      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      }
    17341796    }
    17351797  }
    … …  
    18941956          else {
    18951957            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";
    18961981          }
    18971982        }
    … …  
    22532338  for (QMap<QString, t_vtecStat>::iterator it = _vtecStat.begin(); it != _vtecStat.end(); ++it) {
    22542339    t_vtecStat fresh;
    2255     fresh.model = it.value().model;
     2340    fresh.model    = it.value().model;
     2341    fresh.rmsModel = it.value().rmsModel;
    22562342    it.value() = fresh;
    22572343  }
  • trunk/BNC/src/ssrQc.h

    r11220 r11227  
    3333  void slotNewPhaseBiases(QList<t_satPhaseBias> phaseBiases);
    3434  void slotNewTec(t_vTec vTec);
     35  void slotNewTecRms(t_vTec vTec);
    3536
    3637 signals:
    … …  
    261262    double   maxVal  = 0.0;
    262263    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
    263278  };
    264279  void          compareVtec(const bncTime& tt);
    265280  static double vtecAt(const t_vTec& vTec, double lat, double lon, const bncTime& tt, bool& negative);
    266281  QMap<QString, QMap<double, t_vTec> > _vtecHist;  // stream, time
     282  QMap<QString, QMap<double, t_vTec> > _vtecRmsHist; // RMS of the VTEC (IM202): stream, time
    267283  QMap<QString, t_vtecStat>            _vtecStat;  // stream
    268284  bncTime                              _nextVtecCmp;
Note: See TracChangeset for help on using the changeset viewer.