Changeset 2690 in ntrip for trunk/BNC/bncrinex.cpp
- Timestamp:
- Nov 14, 2010, 11:07:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r2689 r2690 413 413 else if (line.indexOf("# / TYPES OF OBSERV") != -1) { 414 414 if (_rinexVers == 3) { 415 _out << "G 10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2PSYS / # / OBS TYPES" << endl;416 _out << "R 10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2PSYS / # / OBS TYPES" << endl;415 _out << "G 8 C1C C1P L1C S1C C2W C2P L2W S2W SYS / # / OBS TYPES" << endl; 416 _out << "R 8 C1C C1P L1C S1C C2C C2P L2C S2C SYS / # / OBS TYPES" << endl; 417 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 } 420 420 else { 421 _out << " 8 C1 C2 P1 P2 L1 L2 S1S2"421 _out << " 8 C1 P1 L1 S1 C2 P2 L2 S2" 422 422 " # / TYPES OF OBSERV" << endl; 423 423 } … … 485 485 << " " << "ANTENNA: DELTA H/E/N" << endl; 486 486 if (_rinexVers == 3) { 487 _out << "G 10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2PSYS / # / OBS TYPES" << endl;488 _out << "R 10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2PSYS / # / OBS TYPES" << endl;487 _out << "G 8 C1C C1P L1C S1C C2W C2P L2W S2W SYS / # / OBS TYPES" << endl; 488 _out << "R 8 C1C C1P L1C S1C C2C C2P L2C S2C SYS / # / OBS TYPES" << endl; 489 489 _out << "E 6 C1X L1X S1X C5X L5X S5X SYS / # / OBS TYPES" << endl; 490 490 _out << "S 3 C1C L1C S1C SYS / # / OBS TYPES" << endl; … … 492 492 else { 493 493 _out << " 1 1 WAVELENGTH FACT L1/2" << endl; 494 _out << " 8 C1 C2 P1 P2 L1 L2 S1S2 # / TYPES OF OBSERV" << endl;494 _out << " 8 C1 P1 L1 S1 C2 P2 L2 S2 # / TYPES OF OBSERV" << endl; 495 495 } 496 496 _out << datTim.toString(" yyyy MM dd" … … 633 633 _out << obs->_o.satSys 634 634 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 635 << setw(14) << setprecision(3) << obs->_o.C1 << " " 636 << setw(14) << setprecision(3) << obs->_o.P1 << " " 637 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 638 << setw(1) << obs->_o.SNR1 639 << setw(14) << setprecision(3) << obs->_o.S1 << " " 640 << setw(14) << setprecision(3) << obs->_o.C2 << " " 641 << setw(14) << setprecision(3) << obs->_o.P2 << " " ; 642 if ((obs->_o.C2 != 0.0) && (obs->_o.P2 == 0.0)) { 643 _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2 644 << setw(1) << obs->_o.SNR2 645 << setw(14) << setprecision(3) << obs->_o.S2 << " " 646 << " 0.000 0.000 "; 647 } 648 else { 649 _out << " 0.000 0.000 " 650 << setw(14) << setprecision(3) << obs->_o.L2 << " " 651 << setw(1) << obs->_o.SNR2 652 << setw(14) << setprecision(3) << obs->_o.S2; 653 } 654 _out << endl; 635 << setw(14) << setprecision(3) << obs->_o.C1 << ' ' << ' ' 636 << setw(14) << setprecision(3) << obs->_o.P1 << ' ' << ' ' 637 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' ' 638 << setw(14) << setprecision(3) << obs->_o.S1 << ' ' << ' ' 639 << setw(14) << setprecision(3) << obs->_o.C2 << ' ' << ' ' 640 << setw(14) << setprecision(3) << obs->_o.P2 << ' ' << ' ' 641 << setw(14) << setprecision(3) << obs->_o.L2 << lli2 << ' ' 642 << setw(14) << setprecision(3) << obs->_o.S2 << endl; 655 643 } 656 644 else if (obs->_o.satSys == 'S') { // SBAS 657 645 _out << obs->_o.satSys 658 646 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 659 << setw(14) << setprecision(3) << obs->_o.C1 << " " 660 << setw(14) << setprecision(3) << obs->_o.P1 << " " 661 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 662 << setw(1) << obs->_o.SNR1 647 << setw(14) << setprecision(3) << obs->_o.C1 << ' ' << ' ' 648 << setw(14) << setprecision(3) << obs->_o.P1 << ' ' << ' ' 649 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' ' 663 650 << setw(14) << setprecision(3) << obs->_o.S1 << endl; 664 651 } … … 666 653 _out << obs->_o.satSys 667 654 << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ') 668 << setw(14) << setprecision(3) << obs->_o.C1 << " "669 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << " "670 << setw(14) << setprecision(3) << obs->_o.S1 << " "671 << setw(14) << setprecision(3) << obs->_o.C5 << " "672 << setw(14) << setprecision(3) << obs->_o.L5 << lli5 << " "655 << setw(14) << setprecision(3) << obs->_o.C1 << ' ' << ' ' 656 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' ' 657 << setw(14) << setprecision(3) << obs->_o.S1 << ' ' << ' ' 658 << setw(14) << setprecision(3) << obs->_o.C5 << ' ' << ' ' 659 << setw(14) << setprecision(3) << obs->_o.L5 << lli5 << ' ' 673 660 << setw(14) << setprecision(3) << obs->_o.S5 << endl; 674 661 } … … 678 665 // --------------- 679 666 else { 680 char lli = ' '; 681 char snr = ' '; 682 _out << setw(14) << setprecision(3) << obs->_o.C1 << lli << snr; 683 _out << setw(14) << setprecision(3) << obs->_o.C2 << lli << snr; 684 _out << setw(14) << setprecision(3) << obs->_o.P1 << lli << snr; 685 _out << setw(14) << setprecision(3) << obs->_o.P2 << lli << snr; 686 _out << setw(14) << setprecision(3) << obs->_o.L1 << lli1 687 << setw(1) << obs->_o.SNR1 << endl; 688 _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2 689 << setw(1) << obs->_o.SNR2; 690 _out << setw(14) << setprecision(3) << obs->_o.S1 ; 691 _out << setw(16) << setprecision(3) << obs->_o.S2 ; 692 _out << endl; 667 _out << setw(14) << setprecision(3) << obs->_o.C1 << ' ' << ' ' 668 << setw(14) << setprecision(3) << obs->_o.P1 << ' ' << ' ' 669 << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' ' 670 << setw(14) << setprecision(3) << obs->_o.S1 << ' ' << ' ' 671 << setw(14) << setprecision(3) << obs->_o.C2 << ' ' << ' ' << endl 672 << setw(14) << setprecision(3) << obs->_o.P2 << ' ' << ' ' 673 << setw(14) << setprecision(3) << obs->_o.L2 << lli2 << ' ' 674 << setw(16) << setprecision(3) << obs->_o.S2 << endl; 693 675 } 694 676
Note:
See TracChangeset
for help on using the changeset viewer.