Changeset 6147 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Sep 13, 2014, 8:31:24 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r6137 r6147  
    951951// Translate Observation Type v2 --> v3
    952952////////////////////////////////////////////////////////////////////////////
    953 QString t_rnxObsFile::type2to3(char sys, const QString& typeV2) {
    954 
    955   if      (sys == 'G') {
    956     if (typeV2 == "C1") return "C1C";
    957     if (typeV2 == "C2") return "C2C";
    958     if (typeV2 == "C5") return "C5C";
    959     if (typeV2 == "P1") return "C1P";
    960     if (typeV2 == "P2") return "C2P";
    961     if (typeV2 == "L1") return "L1";
    962     if (typeV2 == "L2") return "L2";
    963     if (typeV2 == "L5") return "L5";
    964     if (typeV2 == "D1") return "D1";
    965     if (typeV2 == "D2") return "D2";
    966     if (typeV2 == "D5") return "D5";
    967     if (typeV2 == "S1") return "S1";
    968     if (typeV2 == "S2") return "S2";
    969     if (typeV2 == "S5") return "S5";
    970   }
    971 
    972   else if (sys == 'R') {
    973     if (typeV2 == "C1") return "C1C";
    974     if (typeV2 == "C2") return "C2C";
    975     if (typeV2 == "P1") return "C1P";
    976     if (typeV2 == "P2") return "C2P";
    977     if (typeV2 == "L1") return "L1";
    978     if (typeV2 == "L2") return "L2";
    979     if (typeV2 == "D1") return "D1";
    980     if (typeV2 == "D2") return "D2";
    981     if (typeV2 == "S1") return "S1";
    982     if (typeV2 == "S2") return "S2";
    983   }
    984 
    985   else if (sys == 'E') {
    986     if (typeV2 == "C1") return "C1";
    987     if (typeV2 == "C5") return "C5";
    988     if (typeV2 == "C6") return "C6";
    989     if (typeV2 == "C7") return "C7";
    990     if (typeV2 == "C8") return "C8";
    991     if (typeV2 == "L1") return "L1";
    992     if (typeV2 == "L5") return "L5";
    993     if (typeV2 == "L6") return "L6";
    994     if (typeV2 == "L7") return "L7";
    995     if (typeV2 == "L8") return "L8";
    996     if (typeV2 == "D1") return "D1";
    997     if (typeV2 == "D5") return "D5";
    998     if (typeV2 == "D6") return "D6";
    999     if (typeV2 == "D7") return "D7";
    1000     if (typeV2 == "D8") return "D8";
    1001     if (typeV2 == "S1") return "S1";
    1002     if (typeV2 == "S5") return "S5";
    1003     if (typeV2 == "S6") return "S6";
    1004     if (typeV2 == "S7") return "S7";
    1005     if (typeV2 == "S8") return "S8";
    1006   }
    1007 
    1008   else if (sys == 'S') {
    1009     if (typeV2 == "C1") return "C1C";
    1010     if (typeV2 == "C5") return "C5C";
    1011     if (typeV2 == "L1") return "L1";
    1012     if (typeV2 == "L5") return "L5";
    1013     if (typeV2 == "D1") return "D1";
    1014     if (typeV2 == "D5") return "D5";
    1015     if (typeV2 == "S1") return "S1";
    1016     if (typeV2 == "S5") return "S5";
    1017   }
    1018 
    1019   return "";
     953QString t_rnxObsFile::type2to3(char /* sys */, const QString& typeV2) {
     954  if      (typeV2 == "P1") {
     955    return "C1P";
     956  }
     957  else if (typeV2 == "P2") {
     958    return "C2P";
     959  }
     960  return typeV2;
    1020961}
    1021962
     
    1029970    return "P2";
    1030971  }
    1031   else {
    1032     return typeV3.left(2);
    1033   }
    1034 
    1035   return "";
     972  return typeV3.left(2);
    1036973}
    1037974
Note: See TracChangeset for help on using the changeset viewer.