Changeset 7546 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 22, 2015, 1:00:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6867 r7546 78 78 connect(this, SIGNAL(dspSkyPlot(const QString&, const QString&, QVector<t_polarPoint*>*, 79 79 const QString&, QVector<t_polarPoint*>*, 80 const QByteArray&, double)), 80 const QByteArray&, double)), 81 81 this, SLOT(slotDspSkyPlot(const QString&, const QString&, QVector<t_polarPoint*>*, 82 82 const QString&, QVector<t_polarPoint*>*, … … 196 196 // -------------------- 197 197 try { 198 QMap<QString, bncTime> lastObsTime; 198 QMap<QString, bncTime> lastObsTime; 199 199 bool firstEpo = true; 200 200 while ( (_currEpo = obsFile->nextEpoch()) != 0) { … … 329 329 // 330 330 //////////////////////////////////////////////////////////////////////////// 331 void t_reqcAnalyze::setQcObs(const bncTime& epoTime, const ColumnVector& xyzSta, 331 void t_reqcAnalyze::setQcObs(const bncTime& epoTime, const ColumnVector& xyzSta, 332 332 const t_satObs& satObs, QMap<QString, bncTime>& lastObsTime, 333 333 t_qcSat& qcSat) { … … 458 458 // Loop over all Chunks of Data 459 459 // ---------------------------- 460 for (bncTime chunkStart = _qcFile._startTime; 460 for (bncTime chunkStart = _qcFile._startTime; 461 461 chunkStart < _qcFile._endTime; chunkStart += chunkStep) { 462 462 … … 465 465 QVector<t_qcFrq*> frqVec; 466 466 QVector<double> MP; 467 467 468 468 // Loop over all Epochs within one Chunk of Data 469 469 // --------------------------------------------- … … 494 494 } 495 495 meanMP /= MP.size(); 496 496 497 497 bool slipMP = false; 498 498 499 499 double stdMP = 0.0; 500 500 for (int ii = 0; ii < MP.size(); ii++) { … … 506 506 stdMP += diff * diff; 507 507 } 508 508 509 509 if (slipMP) { 510 510 stdMP = 0.0; … … 517 517 qcFrqSum._sumMP += stdMP; 518 518 } 519 519 520 520 for (int ii = 0; ii < frqVec.size(); ii++) { 521 521 t_qcFrq* qcFrq = frqVec[ii]; … … 659 659 QVector<QWidget*> plots; 660 660 if (data1) { 661 QwtText title(title1); 661 QwtText title(title1); 662 662 QFont font = title.font(); font.setPointSize(font.pointSize()-1); title.setFont(font); 663 663 t_polarPlot* plot1 = new t_polarPlot(title, scaleInterval, BNC_CORE->mainWindow()); … … 793 793 // Summary 794 794 // ------- 795 *_log << "Observation File : " << obsFileName << endl796 << "RINEX Version : " << QString("%1").arg(obsFile->version(),4,'f',2) << endl797 << "Marker Name : " << _qcFile._markerName << endl798 << "Marker Number : " << obsFile->markerNumber() << endl799 << "Receiver : " << _qcFile._receiverType << endl800 << "Antenna : " << _qcFile._antennaName << endl801 << "Position XYZ : " << QString("%1 %2 %3").arg(obsFile->xyz()(1), 14, 'f', 4)795 *_log << "Observation File : " << obsFileName << endl 796 << "RINEX Version : " << QString("%1").arg(obsFile->version(),4,'f',2) << endl 797 << "Marker Name : " << _qcFile._markerName << endl 798 << "Marker Number : " << obsFile->markerNumber() << endl 799 << "Receiver : " << _qcFile._receiverType << endl 800 << "Antenna : " << _qcFile._antennaName << endl 801 << "Position XYZ : " << QString("%1 %2 %3").arg(obsFile->xyz()(1), 14, 'f', 4) 802 802 .arg(obsFile->xyz()(2), 14, 'f', 4) 803 803 .arg(obsFile->xyz()(3), 14, 'f', 4) << endl 804 << "Antenna dH/dE/dN : " << QString("%1 %2 %3").arg(obsFile->antNEU()(3), 8, 'f', 4)804 << "Antenna dH/dE/dN : " << QString("%1 %2 %3").arg(obsFile->antNEU()(3), 8, 'f', 4) 805 805 .arg(obsFile->antNEU()(2), 8, 'f', 4) 806 806 .arg(obsFile->antNEU()(1), 8, 'f', 4) << endl 807 << "Start Time : " << _qcFile._startTime.datestr().c_str() << ' '807 << "Start Time : " << _qcFile._startTime.datestr().c_str() << ' ' 808 808 << _qcFile._startTime.timestr(1,'.').c_str() << endl 809 << "End Time : " << _qcFile._endTime.datestr().c_str() << ' '809 << "End Time : " << _qcFile._endTime.datestr().c_str() << ' ' 810 810 << _qcFile._endTime.timestr(1,'.').c_str() << endl 811 << "Interval : " << _qcFile._interval << endl;811 << "Interval : " << _qcFile._interval << endl; 812 812 813 813 // Number of systems 814 814 // ----------------- 815 QMap<QChar, QVector<const t_qcSatSum*> > systemMap; 815 QMap<QChar, QVector<const t_qcSatSum*> > systemMap; 816 816 QMapIterator<t_prn, t_qcSatSum> itSat(_qcFile._qcSatSum); 817 817 while (itSat.hasNext()) { … … 821 821 systemMap[prn.system()].push_back(&qcSatSum); 822 822 } 823 *_log << "Navigation Systems : " << systemMap.size() << " ";823 *_log << "Navigation Systems : " << systemMap.size() << " "; 824 824 825 825 QMapIterator<QChar, QVector<const t_qcSatSum*> > itSys(systemMap); … … 829 829 } 830 830 *_log << endl; 831 832 // Observation types per system 833 // ----------------------------- 834 for (int iSys = 0; iSys < obsFile->numSys(); iSys++) { 835 char sys = obsFile->system(iSys); 836 if (sys != ' ') { 837 *_log << "Observation Types " << sys << ":"; 838 for (int iType = 0; iType < obsFile->nTypes(sys); iType++) { 839 QString type = obsFile->obsType(sys, iType); 840 *_log << " " << type; 841 } 842 *_log << endl; 843 } 844 } 831 845 832 846 itSys.toFront(); … … 836 850 const QVector<const t_qcSatSum*>& qcSatVec = itSys.value(); 837 851 QString prefixSys = QString(" ") + sys + QString(": "); 838 QMap<QString, QVector<const t_qcFrqSum*> > frqMap; 852 QMap<QString, QVector<const t_qcFrqSum*> > frqMap; 839 853 for (int ii = 0; ii < qcSatVec.size(); ii++) { 840 854 const t_qcSatSum* qcSatSum = qcSatVec[ii];
Note:
See TracChangeset
for help on using the changeset viewer.