Changeset 545 in ntrip


Ignore:
Timestamp:
Oct 23, 2007, 9:40:45 AM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r544 r545  
    154154          line.chop(1);
    155155          if (line.indexOf("RINEX VERSION") != -1) {
    156             _headerLines.append("     2.11           OBSERVATION DATA"
    157                                 "    M (MIXED)"
    158                                 "           RINEX VERSION / TYPE");
     156            if (_rinexVers == 3) {
     157              _headerLines.append("     3.00           OBSERVATION DATA"
     158                                  "    M (MIXED)"
     159                                  "           RINEX VERSION / TYPE");
     160            }
     161            else {
     162              _headerLines.append("     2.11           OBSERVATION DATA"
     163                                  "    M (MIXED)"
     164                                  "           RINEX VERSION / TYPE");
     165            }
    159166            _headerLines.append("PGM / RUN BY / DATE");
    160167            firstLineRead = true;
     
    355362      }
    356363      else if (line.indexOf("# / TYPES OF OBSERV") != -1) {
    357         _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2"
    358                 "      # / TYPES OF OBSERV"  << endl;
     364        if (_rinexVers == 3) {
     365          _out << "G    6 C1C L1C S1C C2P L2P S2P                              SYS / # / OBS TYPES" << endl;
     366          _out << "R    6 C1C L1C S1C C2P L2P S2P                              SYS / # / OBS TYPES" << endl;
     367        }
     368        else {
     369          _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2"
     370                  "      # / TYPES OF OBSERV"  << endl;
     371        }
    359372      }
    360373      else if (line.indexOf("TIME OF FIRST OBS") != -1) {
     
    378391    double antennaNEU[3]; antennaNEU[0] = antennaNEU[1] = antennaNEU[2] = 0.0;
    379392   
    380     _out << "     2.11           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
     393    if (_rinexVers == 3) {
     394      _out << "     3.00           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
     395    }
     396    else {
     397      _out << "     2.11           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
     398    }
    381399    QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    382400    _out << _pgmName.toAscii().data() << _userName.toAscii().data()
Note: See TracChangeset for help on using the changeset viewer.