Changeset 6528 in ntrip


Ignore:
Timestamp:
Dec 30, 2014, 6:22:18 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6527 r6528  
    121121  // ----------------
    122122  t_reqcEdit::readEphemerides(_navFileNames, _ephs);
     123
     124  QString navFileName;
     125  QStringListIterator namIt(_navFileNames);
     126  bool firstName = true;
     127  while (namIt.hasNext()) {
     128    QFileInfo navFi(namIt.next());
     129    if (firstName) {
     130      firstName = false;
     131      navFileName += navFi.fileName();
     132    }
     133    else {
     134      navFileName += ", " + navFi.fileName();
     135    }
     136  }
     137
     138  static const double QC_FORMAT_VERSION = 1.0;
     139
     140  *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl
     141        << "Navigation File(s): " << navFileName                                   << endl;
     142
     143  *_log << _ephMsg.c_str() << endl;
    123144
    124145  // Loop over all RINEX Files
     
    794815void t_reqcAnalyze::printReport(const t_rnxObsFile* obsFile) {
    795816
    796   static const double QC_FORMAT_VERSION = 1.0;
    797 
    798817  if (!_log) {
    799818    return;
     
    803822  QString obsFileName = obsFi.fileName();
    804823
    805   QString navFileName;
    806   QStringListIterator namIt(_navFileNames);
    807   bool firstName = true;
    808   while (namIt.hasNext()) {
    809     QFileInfo navFi(namIt.next());
    810     if (firstName) {
    811       firstName = false;
    812       navFileName += navFi.fileName();
    813     }
    814     else {
    815       navFileName += ", " + navFi.fileName();
    816     }
    817   }
    818 
    819824  // Summary
    820825  // -------
    821   *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl
    822         << "Navigation File(s): " << navFileName                                   << endl;
    823   if (!_ephMsg.empty()) {
    824     *_log << _ephMsg.c_str();
    825     _ephMsg.clear();
    826   }
    827826  *_log << "Observation File  : " << obsFileName                                   << endl
    828827        << "RINEX Version     : " << QString("%1").arg(obsFile->version(),4,'f',2) << endl
     
    10391038      }
    10401039    }
    1041     out << "Ephemeris                  : " << numOK << " OK   " << numBad << " BAD" << endl;
     1040    out << "Ephemeris         : " << numOK << " OK   " << numBad << " BAD" << endl;
    10421041    if (numBad > 0) {
    10431042      for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
    10441043        t_eph* eph = rnxNavFile.ephs()[ii];
    10451044        if (eph->checkState() == t_eph::bad) {
    1046           out << "  Bad Ephemeris                  : " << fileName.toAscii().data() << ' '
     1045          out << "  Bad Ephemeris   : " << fileName.toAscii().data() << ' '
    10471046              << eph->prn().toString() << ' '
    10481047              << eph->TOC().datestr(' ') << ' '
Note: See TracChangeset for help on using the changeset viewer.