Changeset 9775 in ntrip
- Timestamp:
- Jun 23, 2022, 2:58:53 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r8901 r9775 988 988 } 989 989 if (_log) { 990 *_log << "Navigation File(s) : " << navFileName 990 *_log << "Navigation File(s) : " << navFileName << endl; 991 991 } 992 992 QStringListIterator it(_navFileNames); … … 995 995 unsigned numOK = 0; 996 996 unsigned numBad = 0; 997 unsigned numUnhealthy = 0; 997 998 bncEphUser ephUser(false); 998 999 t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input); … … 1000 1001 t_eph* eph = rnxNavFile.ephs()[ii]; 1001 1002 ephUser.putNewEph(eph, false); 1002 if (eph->checkState() == t_eph::bad) {1003 if (eph->checkState() == t_eph::bad) { 1003 1004 ++numBad; 1005 } 1006 else if (eph->checkState() == t_eph::unhealthy) { 1007 ++numUnhealthy; 1004 1008 } 1005 1009 else { … … 1008 1012 } 1009 1013 if (_log) { 1010 *_log << "Ephemeris : " << numOK << " OK " << numBad << " BAD" << endl; 1011 } 1012 if (numBad > 0) { 1014 *_log << "Ephemeris : " << numOK << " OK " 1015 << numUnhealthy << " UNHEALTHY " 1016 << numBad << " WRONG\n"; 1017 } 1018 if (numBad > 0 || numUnhealthy > 0) { 1013 1019 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { 1014 1020 t_eph* eph = rnxNavFile.ephs()[ii]; 1015 if (eph->checkState() == t_eph::bad) { 1016 QFileInfo navFi(fileName); 1017 if (_log) { 1018 *_log << " Bad Ephemeris : " << navFi.fileName() << ' ' 1019 << eph->toString(3.0).left(24) << endl; 1021 QFileInfo navFi(fileName); 1022 if (_log) { 1023 #ifdef BNC_DEBUG_BCEP 1024 if (eph->checkState() == t_eph::unhealthy) { 1025 *_log << " " 1026 << navFi.fileName() << ' ' << QString(": UNHEALTHY %2:%3\n") 1027 .arg(eph->navTypeString(eph->navType(), eph->prn(), 99.0)) 1028 .arg(eph->rinexDateStr(eph->TOC(), eph->prn(), 99.0)).toLatin1(); 1029 } 1030 #endif 1031 if (eph->checkState() == t_eph::bad) { 1032 *_log << " " 1033 << navFi.fileName() << ' ' << QString(": WRONG %2:%3\n") 1034 .arg(eph->navTypeString(eph->navType(), eph->prn(), 99.0)) 1035 .arg(eph->rinexDateStr(eph->TOC(), eph->prn(), 99.0)).toLatin1(); 1020 1036 } 1021 1037 }
Note:
See TracChangeset
for help on using the changeset viewer.