Changeset 8407 in ntrip


Ignore:
Timestamp:
Jul 6, 2018, 11:00:20 AM (6 years ago)
Author:
stuerze
Message:

updated RINEX obs codes

Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncconst.cpp

    r8168 r8407  
    3535double t_CST::freq(t_frequency::type fType, int slotNum) {
    3636  switch (fType) {
     37  // GPS
    3738  case t_frequency::G1:    return 1575420000.0;
    3839  case t_frequency::G2:    return 1227600000.0;
    3940  case t_frequency::G5:    return 1176450000.0;
     41  // GLONASS
     42  case t_frequency::R1:    return 1602000000.0 + 562500.0 * slotNum;
     43  //case t_frequency::R1a:   return 1600995000.0;
     44  case t_frequency::R2:    return 1246000000.0 + 437500.0 * slotNum;
     45  //case t_frequency::R2a:   return 1248060000.0;
     46  case t_frequency::R3:    return 1202025000.0;
     47  // Galileo
    4048  case t_frequency::E1:    return 1575420000.0;
    4149  case t_frequency::E5:    return 1176450000.0;
     
    4351  case t_frequency::E8:    return 1191795000.0;
    4452  case t_frequency::E6:    return 1278750000.0;
    45   case t_frequency::R1:    return 1602000000.0 + 562500.0 * slotNum;
    46   case t_frequency::R2:    return 1246000000.0 + 437500.0 * slotNum;
     53  // QZSS
    4754  case t_frequency::J1:    return 1575420000.0;
    4855  case t_frequency::J2:    return 1227600000.0;
    4956  case t_frequency::J5:    return 1176450000.0;
    5057  case t_frequency::J6:    return 1278750000.0;
     58  // BDS
     59  case t_frequency::C2:    return 1561098000.0;
     60  case t_frequency::C1:    return 1575420000.0;
     61  case t_frequency::C7:    return 1207140000.0;
     62  case t_frequency::C6:    return 1268520000.0;
     63  // irnss
     64  case t_frequency::I5:    return 1176450000.0;
     65  case t_frequency::I9:    return 2492028000.0;
     66  // SBAS
    5167  case t_frequency::S1:    return 1575420000.0;
    5268  case t_frequency::S5:    return 1176450000.0;
    53   case t_frequency::C2:    return 1561098000.0;
    54   case t_frequency::C7:    return 1207140000.0;
    55   case t_frequency::C6:    return 1268520000.0;
    56   case t_frequency::I5:    return 1176450000.0;
    57   case t_frequency::I9:    return 2492028000.0;
    5869  case t_frequency::dummy:
    5970  case t_frequency::max:   return 0.0;
  • trunk/BNC/src/bncconst.h

    r8168 r8407  
    3232class t_frequency {
    3333 public:
    34   enum type {dummy = 0, G1, G2, G5, R1, R2,
     34  enum type {dummy = 0,
     35                        // GPS
     36                        G1,
     37                        G2,
     38                        G5,
     39                        // GLONASS
     40                        R1, // G1
     41 //                       R1a,// G1a / 1600.995
     42                        R2, // G2
     43//                        R2a,// G1b / 1248.06
     44                        R3, // G3  / 1202.025
     45                        // Galileo
    3546                        E1, // E1  / 1575.42
    3647                        E5, // E5a / 1176.45
     
    3849                        E8, // E5(E5a+E5b) / 1191.795
    3950                        E6, // E6  / 1278.75
     51                        // QZSS
    4052                        J1, // 1575.42
    4153                        J2, // 1227.60
    4254                        J5, // 1176.45
    43                         J6, // Lex(6) 1278.75
     55                        J6, // 1278.75
     56                        // BDS
     57                        C2, // 1561.098
     58                        C1, // 1575.42
     59                        C5, // 1176.45
     60                        C7, // 1207.14
     61                        C6, // 1268.52
     62                        // IRNSS
     63                        I5, // 1176.45
     64                        I9, // 2492.028
     65                        // SBAS
    4466                        S1, // 1575.42
    4567                        S5, // 1176.45
    46                         C2, // 1561.098
    47                         C7, // 1207.14
    48                         C6, // 1268.52
    49                         I5, // 1176.45
    50                         I9, // 2492.028
    5168             max};
    5269
    5370  static std::string toString(type tt) {
     71    // GPS
    5472    if      (tt == G1) return "G1";
    5573    else if (tt == G2) return "G2";
    5674    else if (tt == G5) return "G5";
     75    // GLONASS
    5776    else if (tt == R1) return "R1";
     77//    else if (tt == R1a) return "R5";
    5878    else if (tt == R2) return "R2";
     79//    else if (tt == R2a) return "R7";
     80    else if (tt == R3) return "R3";
     81    // Galileo
    5982    else if (tt == E1) return "E1";
    6083    else if (tt == E5) return "E5";
     
    6285    else if (tt == E7) return "E7";
    6386    else if (tt == E8) return "E8";
     87    // QZSS
    6488    else if (tt == J1) return "J1";
    6589    else if (tt == J2) return "J2";
    6690    else if (tt == J5) return "J5";
    6791    else if (tt == J6) return "J6";
     92    // BDS
     93    else if (tt == C2) return "C2";
     94    else if (tt == C1) return "C1";
     95    else if (tt == C5) return "C5";
     96    else if (tt == C7) return "C7";
     97    else if (tt == C6) return "C6";
     98    // IRNSS
     99    else if (tt == I5) return "I5";
     100    else if (tt == I9) return "I9";
     101    // SBAS
    68102    else if (tt == S1) return "S1";
    69103    else if (tt == S5) return "S5";
    70     else if (tt == C2) return "C2";
    71     else if (tt == C7) return "C7";
    72     else if (tt == C6) return "C6";
    73     else if (tt == I5) return "I5";
    74     else if (tt == I9) return "I9";
    75104    return std::string();
    76105  }
    77106  static enum type toInt(std::string s) {
     107    // GPS
    78108    if      (s == "G1") return G1;
    79109    else if (s == "G2") return G2;
    80110    else if (s == "G5") return G5;
     111    // GLONASS
    81112    else if (s == "R1") return R1;
    82113    else if (s == "R2") return R2;
     114    else if (s == "R3") return R3;
     115    // Galileo
    83116    else if (s == "E1") return E1;
    84117    else if (s == "E5") return E5;
     
    86119    else if (s == "E7") return E7;
    87120    else if (s == "E8") return E8;
     121    // QZSS
    88122    else if (s == "J1") return J1;
    89123    else if (s == "J2") return J2;
    90124    else if (s == "J5") return J5;
    91125    else if (s == "J6") return J6;
     126    // BDS
     127    else if (s == "C2") return C2;
     128    else if (s == "C1") return C1;
     129    else if (s == "C5") return C5;
     130    else if (s == "C7") return C7;
     131    else if (s == "C6") return C6;
     132    // IRNSS
     133    else if (s == "I5") return I5;
     134    else if (s == "I9") return I9;
     135    // SBAS
    92136    else if (s == "S1") return S1;
    93137    else if (s == "S5") return S5;
    94     else if (s == "C2") return C2;
    95     else if (s == "C7") return C7;
    96     else if (s == "C6") return C6;
    97     else if (s == "I5") return I5;
    98     else if (s == "I9") return I9;
    99138    return type();
    100139  }
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r8237 r8407  
    345345                   << "C1P" << "L1P" << "S1P"
    346346                   << "C2C" << "L2C" << "S2C"
    347                    << "C2P" << "L2P" << "S2P";
     347                   << "C2P" << "L2P" << "S2P"
     348                   << "C3I" << "L3I" << "S3I";
    348349
    349350    _obsTypes['E'] << "C1X" << "L1X" << "S1X"
Note: See TracChangeset for help on using the changeset viewer.