Changeset 6149 in ntrip
- Timestamp:
- Sep 13, 2014, 9:23:11 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6148 r6149 386 386 } 387 387 else { 388 _header._obsTypes['G'] << "C1C" << "L1C" << "D1C" << "S1C" 389 << "C1P" << "L1P" << "D1P" << "S1P" 390 << "C2C" << "L2C" << "D2C" << "S2C" 391 << "C2P" << "L2P" << "D2P" << "S2P" 392 << "C5" << "D5" << "L5" << "S5"; 388 _header._obsTypes['G'] << "C1C" << "L1C" << "S1C" 389 << "C2W" << "L2W" << "S2W" 390 << "C5" << "L5" << "S5"; 393 391 394 _header._obsTypes['R'] << "C1C" << "L1C" << "D1C" << "S1C" 395 << "C1P" << "L1P" << "D1P" << "S1P" 396 << "C2C" << "L2C" << "D2C" << "S2C" 397 << "C2P" << "L2P" << "D2P" << "S2P"; 392 _header._obsTypes['J'] = _header._obsTypes['G']; 398 393 399 _header._obsTypes['E'] << "C1" << "L1" << "D1" << "S1" 400 << "C5" << "L5" << "D5" << "S5" 401 << "C6" << "L6" << "D6" << "S6" 402 << "C7" << "L7" << "D7" << "S7" 403 << "C8" << "L8" << "D8" << "S8"; 394 _header._obsTypes['R'] << "C1C" << "L1C" << "S1C" 395 << "C2P" << "L2P" << "S2P"; 404 396 405 _header._obsTypes[' J'] << "C1" << "L1" << "D1" << "S1"406 << "C 2" << "L2" << "D2" << "S2"407 << "C 5" << "L5" << "D5" << "S5"408 << "C 6" << "D6" << "L6" << "S6";397 _header._obsTypes['E'] << "C1" << "L1" << "S1" 398 << "C5" << "L5" << "S5" 399 << "C7" << "L7" << "S7" 400 << "C8" << "L8" << "S8"; 409 401 410 _header._obsTypes['S'] << "C1" << "L1" << " D1" << "S1"411 << "C5" << "L5" << " D5" << "S5";402 _header._obsTypes['S'] << "C1" << "L1" << "S1" 403 << "C5" << "L5" << "S5"; 412 404 413 _header._obsTypes['C'] << "C1" << "L1" << " D1" << "S1"414 << "C6" << "L6" << " D6" << "S6"415 << "C7" << "L7" << " D7" << "S7";405 _header._obsTypes['C'] << "C1" << "L1" << "S1" 406 << "C6" << "L6" << "S6" 407 << "C7" << "L7" << "S7"; 416 408 } 417 409 } … … 613 605 double obsValue = 0.0; 614 606 char lli = ' '; 615 QString rnxType = t ypes[ii];607 QString rnxType = t_rnxObsFile::type2to3(types[ii]); 616 608 for (unsigned iFrq = 0; iFrq < obs._obs.size(); iFrq++) { 617 609 const t_frqObs* frqObs = obs._obs[iFrq]; 618 610 for (int ik = 0; ik < obsKinds.length(); ik++) { 619 611 QChar ch = obsKinds[ik]; 620 QString obsType = (ch + QString(frqObs->_rnxType2ch.c_str())).left(rnxType.length()); 612 QString obsType = (ch + QString(frqObs->_rnxType2ch.c_str())); 613 obsType = t_rnxObsFile::type2to3(obsType).left(rnxType.length()); 621 614 if (rnxType == obsType) { 622 615 if (ch == 'L' && frqObs->_phaseValid) { -
trunk/BNC/src/rinex/rnxobsfile.cpp
r6147 r6149 384 384 } 385 385 else if (int(version) == 3) { 386 return t_rnxObsFile::type2to3( sys,origType);386 return t_rnxObsFile::type2to3(origType); 387 387 } 388 388 } … … 951 951 // Translate Observation Type v2 --> v3 952 952 //////////////////////////////////////////////////////////////////////////// 953 QString t_rnxObsFile::type2to3(c har /* sys */, const QString& typeV2) {953 QString t_rnxObsFile::type2to3(const QString& typeV2) { 954 954 if (typeV2 == "P1") { 955 955 return "C1P"; -
trunk/BNC/src/rinex/rnxobsfile.h
r6137 r6149 165 165 t_satObs& obs); 166 166 167 static QString type2to3(c har sys, const QString& typeV2);167 static QString type2to3(const QString& typeV2); 168 168 static QString type3to2(const QString& typeV3); 169 169
Note:
See TracChangeset
for help on using the changeset viewer.