Changeset 2690 in ntrip for trunk/BNC/bncrinex.cpp


Ignore:
Timestamp:
Nov 14, 2010, 11:07:36 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r2689 r2690  
    413413      else if (line.indexOf("# / TYPES OF OBSERV") != -1) {
    414414        if (_rinexVers == 3) {
    415           _out << "G   10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P              SYS / # / OBS TYPES" << endl;
    416           _out << "R   10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P              SYS / # / 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;
    417417          _out << "E    6 C1X L1X S1X C5X L5X S5X                              SYS / # / OBS TYPES" << endl;
    418418          _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
    419419        }
    420420        else {
    421           _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2"
     421          _out << "     8    C1    P1    L1    S1    C2    P2    L2    S2"
    422422                  "      # / TYPES OF OBSERV"  << endl;
    423423        }
     
    485485         << "                  "                                     << "ANTENNA: DELTA H/E/N" << endl;
    486486    if (_rinexVers == 3) {
    487       _out << "G   10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P              SYS / # / OBS TYPES" << endl;
    488       _out << "R   10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P              SYS / # / 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;
    489489      _out << "E    6 C1X L1X S1X C5X L5X S5X                              SYS / # / OBS TYPES" << endl;
    490490      _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
     
    492492    else {
    493493      _out << "     1     1                                                WAVELENGTH FACT L1/2" << endl;
    494       _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2      # / TYPES OF OBSERV"  << endl;
     494      _out << "     8    C1    P1    L1    S1    C2    P2    L2    S2      # / TYPES OF OBSERV"  << endl;
    495495    }
    496496    _out << datTim.toString("  yyyy    MM    dd"
     
    633633        _out << obs->_o.satSys
    634634             << 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;
    655643      }
    656644      else if (obs->_o.satSys == 'S') { // SBAS
    657645        _out << obs->_o.satSys
    658646             << 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 << ' '
    663650             << setw(14) << setprecision(3) << obs->_o.S1 << endl;
    664651      }
     
    666653        _out << obs->_o.satSys
    667654             << 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 << ' '
    673660             << setw(14) << setprecision(3) << obs->_o.S5 << endl;
    674661      }
     
    678665    // ---------------
    679666    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;
    693675    }
    694676
Note: See TracChangeset for help on using the changeset viewer.