Changeset 6220 in ntrip
- Timestamp:
- Oct 9, 2014, 4:21:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6219 r6220 921 921 922 922 *_stream << rnxSat.prn.toString().c_str(); 923 for (int iType = 0; iType < nTypes(sys); iType++) { 924 QString type = obsType(sys, iType, epo->version); 925 if (!rnxSat.obs.contains(type)) { 926 *_stream << QString().leftJustified(16); 927 } 928 else { 929 const t_rnxObs& rnxObs = rnxSat.obs[type]; 930 if (rnxObs.value == 0.0) { 931 *_stream << QString().leftJustified(16); 932 } 933 else { 934 *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 935 if (rnxObs.lli != 0.0) { 936 *_stream << QString("%1").arg(rnxObs.lli,1); 923 924 for (int iTypeV3 = 0; iTypeV3 < nTypes(sys); iTypeV3++) { 925 QString typeV3 = obsType(sys, iTypeV3); 926 bool found = false; 927 QMapIterator<QString, t_rnxObs> itObs(rnxSat.obs); 928 while (itObs.hasNext()) { 929 itObs.next(); 930 const QString& type = itObs.key(); 931 const t_rnxObs& rnxObs = itObs.value(); 932 if (typeV3 == type2to3(sys, type)) { 933 found = true; 934 if (rnxObs.value == 0.0) { 935 *_stream << QString().leftJustified(16); 937 936 } 938 937 else { 939 *_stream << ' '; 938 *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3); 939 if (rnxObs.lli != 0.0) { 940 *_stream << QString("%1").arg(rnxObs.lli,1); 941 } 942 else { 943 *_stream << ' '; 944 } 945 if (rnxObs.snr != 0.0) { 946 *_stream << QString("%1").arg(rnxObs.snr,1); 947 } 948 else { 949 *_stream << ' '; 950 } 940 951 } 941 if (rnxObs.snr != 0.0) { 942 *_stream << QString("%1").arg(rnxObs.snr,1); 943 } 944 else { 945 *_stream << ' '; 946 } 947 } 952 } 953 } 954 if (!found) { 955 *_stream << QString().leftJustified(16); 948 956 } 949 957 }
Note:
See TracChangeset
for help on using the changeset viewer.