Changeset 6286 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Nov 1, 2014, 2:31:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6285 r6286 513 513 514 514 if (qcObs._eleSet) { 515 (*dataSNR1) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcObs._SNR1)); 516 (*dataSNR2) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcObs._SNR2)); 517 (*dataMP1) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcObs._stdMP1)); 518 (*dataMP2) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcObs._stdMP2)); 515 QString frqType1; 516 QString frqType2; 517 for (int iFrq = 0; iFrq < qcObs._qcFrq.size(); iFrq++) { 518 const t_qcFrq& qcFrq = qcObs._qcFrq[iFrq]; 519 if (qcFrq._rnxType2ch[0] == 1 && frqType1.isEmpty()) { 520 frqType1 = qcFrq._rnxType2ch; 521 } 522 if (qcFrq._rnxType2ch[0] == 2 && frqType2.isEmpty()) { 523 frqType2 = qcFrq._rnxType2ch; 524 } 525 if (qcFrq._rnxType2ch == frqType1) { 526 (*dataSNR1) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcFrq._SNR)); 527 (*dataMP1) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcFrq._stdMP)); 528 } 529 else if (qcFrq._rnxType2ch == frqType2) { 530 (*dataSNR2) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcFrq._SNR)); 531 (*dataMP2) << (new t_polarPoint(qcObs._azDeg, 90.0 - qcObs._eleDeg, qcFrq._stdMP)); 532 } 533 } 519 534 } 520 535 } … … 527 542 QFileInfo fileInfo(obsFile->fileName()); 528 543 QByteArray title = fileInfo.fileName().toAscii(); 529 emit dspSkyPlot(obsFile->fileName(), "MP1", dataMP1, "MP2", dataMP2, "Meters",2.0);530 emit dspSkyPlot(obsFile->fileName(), "SNR1", dataSNR1, "SNR2", dataSNR2, "dbHz", 54.0);544 emit dspSkyPlot(obsFile->fileName(), "MP1", dataMP1, "MP2", dataMP2, "Meters", 2.0); 545 emit dspSkyPlot(obsFile->fileName(), "SNR1", dataSNR1, "SNR2", dataSNR2, "dbHz", 54.0); 531 546 emit dspAvailPlot(obsFile->fileName(), title); 532 547 } … … 630 645 const t_qcObs& qcObs = it.value(); 631 646 t_plotData& data = plotDataMap[prn]; 647 632 648 data._mjdX24 << mjdX24; 633 649 data._eleDeg << qcObs._eleDeg; 634 if (qcObs._hasL1) { 635 if (qcObs._slipL1) { 636 data._L1slip << mjdX24; 637 } 638 else if (qcObs._gapL1) { 639 data._L1gap << mjdX24; 640 } 641 else { 642 data._L1ok << mjdX24; 643 } 644 } 645 if (qcObs._hasL2) { 646 if (qcObs._slipL2) { 647 data._L2slip << mjdX24; 648 } 649 else if (qcObs._gapL2) { 650 data._L2gap << mjdX24; 651 } 652 else { 653 data._L2ok << mjdX24; 650 651 QString frqType1; 652 QString frqType2; 653 for (int iFrq = 0; iFrq < qcObs._qcFrq.size(); iFrq++) { 654 const t_qcFrq& qcFrq = qcObs._qcFrq[iFrq]; 655 if (qcFrq._rnxType2ch[0] == 1 && frqType1.isEmpty()) { 656 frqType1 = qcFrq._rnxType2ch; 657 } 658 if (qcFrq._rnxType2ch[0] == 2 && frqType2.isEmpty()) { 659 frqType2 = qcFrq._rnxType2ch; 660 } 661 if (qcFrq._rnxType2ch == frqType1) { 662 if (qcFrq._slip) { 663 data._L1slip << mjdX24; 664 } 665 else if (qcFrq._gap) { 666 data._L1gap << mjdX24; 667 } 668 else { 669 data._L1ok << mjdX24; 670 } 671 } 672 else if (qcFrq._rnxType2ch == frqType2) { 673 if (qcFrq._slip) { 674 data._L2slip << mjdX24; 675 } 676 else if (qcFrq._gap) { 677 data._L2gap << mjdX24; 678 } 679 else { 680 data._L2ok << mjdX24; 681 } 654 682 } 655 683 } … … 701 729 << _qcFile._endTime.timestr().c_str() << endl 702 730 << "Interval: " << _qcFile._interval << endl 703 << "# Sat.: " << _qcFile._qcSat .size()<< endl;731 << "# Sat.: " << _qcFile._qcSatSum.size() << endl; 704 732 705 733 int numObs = 0; 706 734 int numSlipsFlagged = 0; 707 735 int numSlipsFound = 0; 708 QMapIterator<t_prn, t_qcSat> it(_qcFile._qcSat); 709 while (it.hasNext()) { 710 it.next(); 711 const t_qcSat& qcSat = it.value(); 712 numObs += qcSat._numObs; 713 numSlipsFlagged += qcSat._numSlipsFlagged; 714 numSlipsFound += qcSat._numSlipsFound; 736 QMapIterator<t_prn, t_qcSatSum> itSat(_qcFile._qcSatSum); 737 while (itSat.hasNext()) { 738 itSat.next(); 739 const t_qcSatSum& qcSatSum = itSat.value(); 740 741 QMapIterator<QString, t_qcFrqSum> itFrq(qcSatSum._qcFrqSum); 742 while (itFrq.hasNext()) { 743 itFrq.next(); 744 const t_qcFrqSum& qcFrqSum = itFrq.value(); 745 numObs += qcFrqSum._numObs; 746 numSlipsFlagged += qcFrqSum._numSlipsFlagged; 747 numSlipsFound += qcFrqSum._numSlipsFound; 748 } 715 749 } 716 750 *_log << "# Obs.: " << numObs << endl
Note:
See TracChangeset
for help on using the changeset viewer.