Changeset 8113 in ntrip for branches/BNC_2.12/src/rinex


Ignore:
Timestamp:
Apr 13, 2017, 2:43:57 PM (8 years ago)
Author:
stuerze
Message:

set default rinex version 3 obs types if skl file obs types are of version 2 and rinex output file shall be in version 3 in order to get 3char obs types as required in rinex version 3.03

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/rinex/rnxobsfile.cpp

    r8036 r8113  
    410410    else {
    411411      if (_version >= 3.0) {
    412         for (int iSys = 0; iSys < header.numSys(); iSys++) {
    413           char sys = header.system(iSys);
    414           for (int iType = 0; iType < header.nTypes(sys); iType++) {
    415             QString type = header.obsType(sys, iType, _version);
    416             if (!_obsTypes[sys].contains(type)) {
    417               _obsTypes[sys].push_back(type);
    418             }
    419           }
    420         }
    421       }
     412        _comments << "Default set of observation types used";
     413        _comments.removeDuplicates();
     414        _obsTypes['G'] << "C1C" << "L1C"  << "S1C"
     415                       << "C1W" << "L1W"  << "S1W"
     416                       << "C2X" << "L2X"  << "S2X"
     417                       << "C2W" << "L2W"  << "S2W"
     418                       << "C5X" << "L5X"  << "S5X";
     419
     420        _obsTypes['J'] << "C1C" << "L1C"  << "S1C"
     421                       << "C1S" << "L1S"  << "S1S"
     422                       << "C1L" << "L1L"  << "S1L"
     423                       << "C1X" << "L1X"  << "S1X"
     424                       << "C2S" << "L2S"  << "S2S"
     425                       << "C2L" << "L2L"  << "S2L"
     426                       << "C2X" << "L2X"  << "S2X"
     427                       << "C5X" << "L5X"  << "S5X";
     428
     429        _obsTypes['R'] << "C1C" << "L1C" << "S1C"
     430                       << "C1P" << "L1P" << "S1P"
     431                       << "C2C" << "L2C" << "S2C"
     432                       << "C2P" << "L2P" << "S2P";
     433
     434        _obsTypes['E'] << "C1X" << "L1X" << "S1X"
     435                       << "C5X" << "L5X" << "S5X"
     436                       << "C7X" << "L7X" << "S7X"
     437                       << "C8X" << "L8X" << "S8X";
     438
     439        _obsTypes['S'] << "C1C" << "L1C" << "S1C"
     440                       << "C5I" << "L5I" << "S5I"
     441                       << "C5Q" << "L5Q" << "S5Q";
     442
     443        _obsTypes['C'] << "C2I" << "L2I" << "S2I"
     444                       << "C6I" << "L6I" << "S6I"
     445                       << "C7I" << "L7I" << "S7I";
     446      }
     447
    422448      else {
    423449        for (int iSys = 0; iSys < header.numSys(); iSys++) {
Note: See TracChangeset for help on using the changeset viewer.