Changeset 6529 in ntrip
- Timestamp:
- Dec 30, 2014, 6:26:22 PM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6528 r6529 41 41 #include <iostream> 42 42 #include <iomanip> 43 #include <sstream>44 43 #include <qwt_plot_renderer.h> 45 44 … … 102 101 void t_reqcAnalyze::run() { 103 102 103 static const double QC_FORMAT_VERSION = 1.0; 104 104 105 // Open Log File 105 106 // ------------- … … 109 110 _log->setDevice(_logFile); 110 111 } 112 *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1) << endl << endl; 111 113 112 114 // Check Ephemerides … … 121 123 // ---------------- 122 124 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 << endl141 << "Navigation File(s): " << navFileName << endl;142 143 *_log << _ephMsg.c_str() << endl;144 125 145 126 // Loop over all RINEX Files … … 1019 1000 void t_reqcAnalyze::checkEphemerides() { 1020 1001 1021 ostringstream out; 1002 QString navFileName; 1003 QStringListIterator namIt(_navFileNames); 1004 bool firstName = true; 1005 while (namIt.hasNext()) { 1006 QFileInfo navFi(namIt.next()); 1007 if (firstName) { 1008 firstName = false; 1009 navFileName += navFi.fileName(); 1010 } 1011 else { 1012 navFileName += ", " + navFi.fileName(); 1013 } 1014 } 1015 1016 *_log << "Navigation File(s): " << navFileName << endl; 1022 1017 1023 1018 QStringListIterator it(_navFileNames); … … 1038 1033 } 1039 1034 } 1040 out<< "Ephemeris : " << numOK << " OK " << numBad << " BAD" << endl;1035 *_log << "Ephemeris : " << numOK << " OK " << numBad << " BAD" << endl; 1041 1036 if (numBad > 0) { 1042 1037 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { 1043 1038 t_eph* eph = rnxNavFile.ephs()[ii]; 1044 1039 if (eph->checkState() == t_eph::bad) { 1045 out << " Bad Ephemeris : " << fileName.toAscii().data() << ' ' 1046 << eph->prn().toString() << ' ' 1047 << eph->TOC().datestr(' ') << ' ' 1048 << eph->TOC().timestr(1, ' ') << endl; 1049 } 1050 } 1051 } 1052 } 1053 1054 _ephMsg = out.str(); 1055 } 1040 QFileInfo navFi(fileName); 1041 *_log << " Bad Ephemeris : " << navFi.fileName() << ' ' 1042 << eph->prn().toString() << ' ' 1043 << eph->TOC().datestr(' ').c_str() << ' ' 1044 << eph->TOC().timestr(1, ' ').c_str() << endl; 1045 } 1046 } 1047 } 1048 } 1049 } -
trunk/BNC/src/rinex/reqcanalyze.h
r6527 r6529 26 26 #define REQCANALYZE_H 27 27 28 #include <string>29 28 #include <QtCore> 30 29 #include "rnxobsfile.h" … … 189 188 t_rnxObsFile::t_rnxEpo* _currEpo; 190 189 t_qcFile _qcFile; 191 std::string _ephMsg;192 190 }; 193 191
Note:
See TracChangeset
for help on using the changeset viewer.