Changeset 10106 in ntrip


Ignore:
Timestamp:
Jun 21, 2023, 8:05:49 AM (10 months ago)
Author:
stuerze
Message:

allow to write summary only in sp3 comparison

Location:
trunk/BNC/src/orbComp
Files:
2 edited

Legend:

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

    r10092 r10106  
    6363
    6464  _excludeSats = settings.value("sp3CompExclude").toString().split(QRegExp("[ ,]"), QString::SkipEmptyParts);
     65
     66  _summaryOnly = (Qt::CheckState(settings.value("sp3CompSummaryOnly").toInt()) == Qt::Checked);
    6567}
    6668
     
    366368
    367369  out.setf(ios::fixed);
    368   out << "!\n! Clock residuals and orbit differences in [m]\n"
    369          "! ----------------------------------------------------------------------------\n";
    370   out << "!\n!  Epoch                PRN  radial   along   out        clk    clkRed   iPRN"
    371           "\n! ----------------------------------------------------------------------------\n";
     370  if (!_summaryOnly) {
     371    out << "!\n! Clock residuals and orbit differences in [m]\n"
     372           "! ----------------------------------------------------------------------------\n";
     373    out << "!\n!  Epoch                PRN  radial   along   out        clk    clkRed   iPRN"
     374            "\n! ----------------------------------------------------------------------------\n";
     375  }
    372376  for (unsigned ii = 0; ii < epochs.size(); ii++) {
    373377    const t_epoch* epo = epochs[ii];
     
    379383      if (!excludeSat(prn)) {
    380384        const ColumnVector& rao = it->second;
    381         out << setprecision(6) << string(epo->_tt) << ' ' << prn.toString() << ' '
    382             << setw(7) << setprecision(4) << rao[0] << ' '
    383             << setw(7) << setprecision(4) << rao[1] << ' '
    384             << setw(7) << setprecision(4) << rao[2] << "    ";
     385        if (!_summaryOnly) {
     386          out << setprecision(6) << string(epo->_tt) << ' ' << prn.toString() << ' '
     387              << setw(7) << setprecision(4) << rao[0] << ' '
     388              << setw(7) << setprecision(4) << rao[1] << ' '
     389              << setw(7) << setprecision(4) << rao[2] << "    ";
     390        }
    385391        stat[prn.toString()]._rao += SP(rao, rao); // Schur product
    386392        stat[all           ]._rao += SP(rao, rao);
     
    390396          double clkRes    = dc.find(prn)->second;
    391397          double clkResRed = dcRed.find(prn)->second;
    392           out << setw(7) << setprecision(4) << clkRes << ' '
    393               << setw(7) << setprecision(4) << clkResRed;
     398          if (!_summaryOnly) {
     399            out << setw(7) << setprecision(4) << clkRes << ' '
     400                << setw(7) << setprecision(4) << clkResRed;
     401          }
    394402          stat[prn.toString()]._dcRMS     += clkRes * clkRes;
    395403          stat[all           ]._dcRMS     += clkRes * clkRes;
     
    402410        }
    403411        else {
    404           out << "  .       .    ";
    405         }
    406         out << "    " << setw(2) << int(prn) << "\n";
     412          if (!_summaryOnly) {
     413            out << "  .       .    ";
     414          }
     415        }
     416        if (!_summaryOnly) {
     417          out << "    " << setw(2) << int(prn) << "\n";
     418        }
    407419      }
    408420    }
  • trunk/BNC/src/orbComp/sp3Comp.h

    r10092 r10106  
    9898  QTextStream* _log;
    9999  QStringList  _excludeSats;
     100  bool         _summaryOnly;
    100101};
    101102
Note: See TracChangeset for help on using the changeset viewer.