Changeset 10814 in ntrip for trunk/BNC/src/orbComp


Ignore:
Timestamp:
Mar 9, 2026, 4:26:40 PM (3 weeks ago)
Author:
stuerze
Message:

sp3Comp: separate results/mean values for BDS-2 and BDS-3 in summary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r10695 r10814  
    225225    for (map<t_prn, double>::iterator it = dc.begin(); it != dc.end(); it++) {
    226226      const t_prn& prn = it->first;
    227       stringstream all; all << prn.system() << 99;
     227      stringstream all;
     228      if (prn.system() == 'C') {
     229        if (prn.number() <= 16) {
     230          all << "C-2";
     231        }
     232        else {
     233          all << "C-3";
     234        }
     235      } else {
     236        all << prn.system();
     237      }
    228238      if (satIndex(clkSats, prn) != -1) {
    229239        int  index = epochs.size() + satIndex(clkSats, prn);
     
    378388    for (map<t_prn, ColumnVector>::const_iterator it = dr.begin(); it != dr.end(); it++) {
    379389      const t_prn&  prn = it->first;
    380       stringstream all; all << prn.system() << 99;
     390      stringstream all;
     391      if (prn.system() == 'C') {
     392        if (prn.number() <= 16) {
     393          all << "C-2";
     394        }
     395        else {
     396          all << "C-3";
     397        }
     398      } else {
     399        all << prn.system();
     400      }
     401
    381402      if (!excludeSat(prn)) {
    382403        const ColumnVector& rao = it->second;
     
    430451    const string& prn  = it->first;
    431452    t_stat&       stat = it->second;
    432     stringstream all; all << prn[0] << 99;
     453    stringstream all;
     454    if (prn[0] == 'C') {
     455      int num = stoi(prn.substr(1,2));
     456      if (num <= 16) {
     457        all << "C-2";
     458      }
     459      else {
     460        all << "C-3";
     461      }
     462    } else {
     463      all << prn[0];
     464    }
    433465    if (stat._nr > 0) {
    434466      stat._rao[0] = sqrt(stat._rao[0] / stat._nr);
     
    442474      }
    443475      else {
    444         (_summaryOnly) ? out << "     "   << QString("%1  ").arg(all.str()[0]).toStdString() << " ":
    445                          out << "!     "  << QString("%1  ").arg(all.str()[0]).toStdString() << " ";
     476        (_summaryOnly) ? out << "     "    << QString("%1").arg(all.str().c_str(),3,' ').toStdString().c_str() << " ":
     477                         out << "!     "  <<  QString("%1").arg(all.str().c_str(),3,' ').toStdString().c_str() << " ";
    446478      }
    447479      out << setw(10) << setprecision(1) << stat._rao[0]   * 1e3 << ' '
     
    459491            << setw(10) << setprecision(2) << stat._dcRedSig / t_CST::c * 1e9 << ' '
    460492            << setw( 9) << stat._nc << " ";
    461         if (prn != all.str()) {
     493        if (prn != "G" && prn != "R" && prn != "E" && prn != "C-2" &&  prn != "C-3") {
    462494          out << setw( 9) << setprecision(2) << stat._offset / t_CST::c * 1e9;
    463495        }
Note: See TracChangeset for help on using the changeset viewer.