Changeset 2682 in ntrip


Ignore:
Timestamp:
Nov 13, 2010, 12:48:58 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r2492 r2682  
    413413      else if (line.indexOf("# / TYPES OF OBSERV") != -1) {
    414414        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;
    417416          _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;
    418418          _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
    419419        }
     
    431431        _out << hlp.toAscii().data() << "COMMENT" << endl;
    432432      }
    433 // Added header line for Rinex3 regarding mandatory MARKER TYPE field Perlt
    434433      else if (line.indexOf("MARKER NAME") != -1) {
    435434        if (_rinexVers == 3) {
     
    440439          _out << line.toAscii().data() << endl;
    441440        }
    442 // End
    443441      }
    444442      else {
     
    467465    _out.setf(ios::left);
    468466    _out << setw(60) << _statID.data()                               << "MARKER NAME"          << endl;
    469 // Added header line for Rinex3 regarding mandatory MARKER TYPE field Perlt
    470467    if (_rinexVers == 3) {
    471468      _out << setw(60) << "unknown"                                  << "MARKER TYPE      "    << endl;
    472469    }
    473 // End
    474470    _out << setw(60) << "unknown             unknown"                << "OBSERVER / AGENCY"    << endl;
    475471    _out << setw(20) << "unknown"   
     
    489485         << "                  "                                     << "ANTENNA: DELTA H/E/N" << endl;
    490486    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;
    493488      _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;
    494490      _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
    495 
    496491    }
    497492    else {
     
    612607    if      ( obs->_o.slip_cnt_L1 >= 0 ) {
    613608      if ( _slip_cnt_L1.find(prn)         != _slip_cnt_L1.end() &&
    614            _slip_cnt_L1.find(prn).value() != obs->_o.slip_cnt_L1 ) {
    615         lli1 = '1';
     609           _slip_cnt_L1.find(prn).value() != obs->_o.slip_cnt_L1 ) {
     610        lli1 = '1';
    616611      }
    617612    }
    618613    else if ( obs->_o.lock_timei_L1 >= 0 ) {
    619614      if ( _lock_timei_L1.find(prn)         != _lock_timei_L1.end() &&
    620            _lock_timei_L1.find(prn).value() != obs->_o.lock_timei_L1 ) {
    621         lli1 = '1';
     615           _lock_timei_L1.find(prn).value() != obs->_o.lock_timei_L1 ) {
     616        lli1 = '1';
    622617      }
    623618    }
     
    625620    if ( obs->_o.slip_cnt_L2 >= 0 ) {
    626621      if ( _slip_cnt_L2.find(prn)         != _slip_cnt_L2.end() &&
    627            _slip_cnt_L2.find(prn).value() != obs->_o.slip_cnt_L2 ) {
    628         lli2 = '1';
     622           _slip_cnt_L2.find(prn).value() != obs->_o.slip_cnt_L2 ) {
     623        lli2 = '1';
    629624      }
    630625    }
    631626    else if ( obs->_o.lock_timei_L2 >= 0 ) {
    632627      if ( _lock_timei_L2.find(prn)         != _lock_timei_L2.end() &&
    633            _lock_timei_L2.find(prn).value() != obs->_o.lock_timei_L2 ) {
    634         lli2 = '1';
     628           _lock_timei_L2.find(prn).value() != obs->_o.lock_timei_L2 ) {
     629        lli2 = '1';
    635630      }
    636631    }
     
    645640    // ---------------
    646641    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;
    681684      }
    682685    }
Note: See TracChangeset for help on using the changeset viewer.