Changeset 6524 in ntrip for trunk


Ignore:
Timestamp:
Dec 30, 2014, 4:49:16 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6523 r6524  
    5353#include "eleplot.h"
    5454#include "dopplot.h"
     55#include "bncephuser.h"
    5556
    5657using namespace std;
     
    10151016  QStringListIterator it(_navFileNames);
    10161017  while (it.hasNext()) {
    1017     QString fileName = it.next();
     1018    const QString& fileName = it.next();
    10181019    *_log << "! Ephemeris Check: " << fileName << endl;
    1019   }
    1020 }
     1020    unsigned numOK  = 0;
     1021    unsigned numBad = 0;
     1022    bncEphUser ephUser(false);
     1023    t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input);
     1024    for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
     1025      t_eph* eph = rnxNavFile.ephs()[ii];
     1026      ephUser.putNewEph(eph, true);
     1027      if (eph->checkState() == t_eph::bad) {
     1028        ++numBad;
     1029      }
     1030      else {
     1031        ++numOK;
     1032      }
     1033    }
     1034    *_log << "   ! OK: " << numOK << " BAD: " << numBad << endl;
     1035    if (numBad > 0) {
     1036      *_log << "   ! List of bad ephemerides:" << endl;
     1037      for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
     1038        t_eph* eph = rnxNavFile.ephs()[ii];
     1039        if (eph->checkState() == t_eph::bad) {
     1040          *_log << "   ! " << eph->prn().toString().c_str() << ' '
     1041                << string(eph->TOC()).c_str() << endl;
     1042        }
     1043      }
     1044    }
     1045  }
     1046  *_log << endl;
     1047}
Note: See TracChangeset for help on using the changeset viewer.