Changeset 2682 in ntrip
- Timestamp:
- Nov 13, 2010, 12:48:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r2492 r2682 413 413 else if (line.indexOf("# / TYPES OF OBSERV") != -1) { 414 414 if (_rinexVers == 3) { 415 // Changed declaration of data types, consistent with Rinex3 Perlt 416 _out << "G 10 C1C C1P L1C S1C C2X C2P L2X S2X L2P S2P SYS / # / OBS TYPES" << endl; 415 _out << "G 10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P SYS / # / OBS TYPES" << endl; 417 416 _out << "R 10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P SYS / # / OBS TYPES" << endl; 417 _out << "E 6 C1X L1X S1X C5X L5X S5X SYS / # / OBS TYPES" << endl; 418 418 _out << "S 3 C1C L1C S1C SYS / # / OBS TYPES" << endl; 419 419 } … … 431 431 _out << hlp.toAscii().data() << "COMMENT" << endl; 432 432 } 433 // Added header line for Rinex3 regarding mandatory MARKER TYPE field Perlt434 433 else if (line.indexOf("MARKER NAME") != -1) { 435 434 if (_rinexVers == 3) { … … 440 439 _out << line.toAscii().data() << endl; 441 440 } 442 // End443 441 } 444 442 else { … … 467 465 _out.setf(ios::left); 468 466 _out << setw(60) << _statID.data() << "MARKER NAME" << endl; 469 // Added header line for Rinex3 regarding mandatory MARKER TYPE field Perlt470 467 if (_rinexVers == 3) { 471 468 _out << setw(60) << "unknown" << "MARKER TYPE " << endl; 472 469 } 473 // End474 470 _out << setw(60) << "unknown unknown" << "OBSERVER / AGENCY" << endl; 475 471 _out << setw(20) << "unknown" … … 489 485 << " " << "ANTENNA: DELTA H/E/N" << endl; 490 486 if (_rinexVers == 3) { 491 // Changed declaration of data types, consistent with Rinex3 Perlt 492 _out << "G 10 C1C C1P L1C S1C C2X C2P L2X S2X L2P S2P SYS / # / OBS TYPES" << endl; 487 _out << "G 10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P SYS / # / OBS TYPES" << endl; 493 488 _out << "R 10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P SYS / # / OBS TYPES" << endl; 489 _out << "E 6 C1X L1X S1X C5X L5X S5X SYS / # / OBS TYPES" << endl; 494 490 _out << "S 3 C1C L1C S1C SYS / # / OBS TYPES" << endl; 495 496 491 } 497 492 else { … … 612 607 if ( obs->_o.slip_cnt_L1 >= 0 ) { 613 608 if ( _slip_cnt_L1.find(prn) != _slip_cnt_L1.end() && 614 615 609 _slip_cnt_L1.find(prn).value() != obs->_o.slip_cnt_L1 ) { 610 lli1 = '1'; 616 611 } 617 612 } 618 613 else if ( obs->_o.lock_timei_L1 >= 0 ) { 619 614 if ( _lock_timei_L1.find(prn) != _lock_timei_L1.end() && 620 621 615 _lock_timei_L1.find(prn).value() != obs->_o.lock_timei_L1 ) { 616 lli1 = '1'; 622 617 } 623 618 } … … 625 620 if ( obs->_o.slip_cnt_L2 >= 0 ) { 626 621 if ( _slip_cnt_L2.find(prn) != _slip_cnt_L2.end() && 627 628 622 _slip_cnt_L2.find(prn).value() != obs->_o.slip_cnt_L2 ) { 623 lli2 = '1'; 629 624 } 630 625 } 631 626 else if ( obs->_o.lock_timei_L2 >= 0 ) { 632 627 if ( _lock_timei_L2.find(prn) != _lock_timei_L2.end() && 633 634 628 _lock_timei_L2.find(prn).value() != obs->_o.lock_timei_L2 ) { 629 lli2 = '1'; 635 630 } 636 631 } … … 645 640 // --------------- 646 641 if (_rinexVers == 3) { 647 char sbasflag = 'S'; 648 // Changed data output, C1P, C2C|X, L2C|X, S2C|X added. Changed Output for SBAS Perlt 649 if (sbasflag != obs->_o.satSys) { 650 _out << obs->_o.satSys 651 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 652 << setw(14) << setprecision(3) << obs->_o.C1 << " " 653 << setw(14) << setprecision(3) << obs->_o.P1 << " " 654 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 655 << setw(1) << obs->_o.SNR1 656 << setw(14) << setprecision(3) << obs->_o.S1 << " " 657 << setw(14) << setprecision(3) << obs->_o.C2 << " " 658 << setw(14) << setprecision(3) << obs->_o.P2 << " " ; 659 if ((obs->_o.C2 != 0.0) && (obs->_o.P2 == 0.0)) { 660 _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2 661 << setw(1) << obs->_o.SNR2 662 << setw(14) << setprecision(3) << obs->_o.S2 << " " 663 << " 0.000 0.000 "; 664 } 665 else { 666 _out << " 0.000 0.000 " 667 << setw(14) << setprecision(3) << obs->_o.L2 << " " 668 << setw(1) << obs->_o.SNR2 669 << setw(14) << setprecision(3) << obs->_o.S2; 670 } 671 _out << endl; 672 } 673 else { 674 _out << obs->_o.satSys 675 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 676 << setw(14) << setprecision(3) << obs->_o.C1 << " " 677 << setw(14) << setprecision(3) << obs->_o.P1 << " " 678 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 679 << setw(1) << obs->_o.SNR1 680 << setw(14) << setprecision(3) << obs->_o.S1 << endl; 642 if (obs->_o.satSys == 'G' || obs->_o.satSys == 'R') { // GPS and Glonass 643 _out << obs->_o.satSys 644 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 645 << setw(14) << setprecision(3) << obs->_o.C1 << " " 646 << setw(14) << setprecision(3) << obs->_o.P1 << " " 647 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 648 << setw(1) << obs->_o.SNR1 649 << setw(14) << setprecision(3) << obs->_o.S1 << " " 650 << setw(14) << setprecision(3) << obs->_o.C2 << " " 651 << setw(14) << setprecision(3) << obs->_o.P2 << " " ; 652 if ((obs->_o.C2 != 0.0) && (obs->_o.P2 == 0.0)) { 653 _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2 654 << setw(1) << obs->_o.SNR2 655 << setw(14) << setprecision(3) << obs->_o.S2 << " " 656 << " 0.000 0.000 "; 657 } 658 else { 659 _out << " 0.000 0.000 " 660 << setw(14) << setprecision(3) << obs->_o.L2 << " " 661 << setw(1) << obs->_o.SNR2 662 << setw(14) << setprecision(3) << obs->_o.S2; 663 } 664 _out << endl; 665 } 666 else if (obs->_o.satSys == 'S') { // SBAS 667 _out << obs->_o.satSys 668 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 669 << setw(14) << setprecision(3) << obs->_o.C1 << " " 670 << setw(14) << setprecision(3) << obs->_o.P1 << " " 671 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 672 << setw(1) << obs->_o.SNR1 673 << setw(14) << setprecision(3) << obs->_o.S1 << endl; 674 } 675 else if (obs->_o.satSys == 'E') { // Galileo 676 _out << obs->_o.satSys 677 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 678 << setw(14) << setprecision(3) << obs->_o.C1 << " " 679 << setw(14) << setprecision(3) << obs->_o.L1 << " " 680 << setw(14) << setprecision(3) << obs->_o.S1 << " " 681 << setw(14) << setprecision(3) << obs->_o.C5 << " " 682 << setw(14) << setprecision(3) << obs->_o.L5 << " " 683 << setw(14) << setprecision(3) << obs->_o.S5 << endl; 681 684 } 682 685 }
Note:
See TracChangeset
for help on using the changeset viewer.