Changeset 4261 in ntrip for trunk/BNC/rinex/bncpostprocess.cpp
- Timestamp:
- Jun 22, 2012, 10:12:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/bncpostprocess.cpp
r3999 r4261 102 102 } 103 103 104 // Set Observations from RINEX File 105 //////////////////////////////////////////////////////////////////////////// 106 void t_postProcessing::setObsFromRnx(const t_rnxObsFile* rnxObsFile, 107 const t_rnxObsFile::t_rnxEpo* epo, 108 const t_rnxObsFile::t_rnxSat& rnxSat, 109 t_obs& obs) { 110 111 strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(), 112 sizeof(obs.StatID)); 113 obs.satSys = rnxSat.satSys; 114 obs.satNum = rnxSat.satNum; 115 obs.GPSWeek = epo->tt.gpsw(); 116 obs.GPSWeeks = epo->tt.gpssec(); 117 //// TODO: check RINEX Version 3 types 118 for (int iType = 0; iType < rnxObsFile->nTypes(obs.satSys); iType++) { 119 QByteArray type = rnxObsFile->obsType(obs.satSys,iType).toAscii(); 120 if (type.indexOf("C1") == 0 && obs.C1 == 0.0) { 121 obs.C1 = rnxSat.obs[iType]; 122 } 123 else if (type.indexOf("P1") == 0 && obs.P1 == 0.0) { 124 obs.P1 = rnxSat.obs[iType]; 125 } 126 else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) { 127 obs.L1C = rnxSat.obs[iType]; 128 } 129 else if (type.indexOf("C2") == 0 && obs.C2 == 0.0) { 130 obs.C2 = rnxSat.obs[iType]; 131 } 132 else if (type.indexOf("P2") == 0 && obs.P2 == 0.0) { 133 obs.P2 = rnxSat.obs[iType]; 134 } 135 else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) { 136 obs.L2C = rnxSat.obs[iType]; 137 } 138 } 139 } 140 104 141 // 105 142 //////////////////////////////////////////////////////////////////////////// … … 149 186 150 187 for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) { 151 bool obsOK = true; 188 152 189 const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs]; 190 153 191 t_obs obs; 154 strncpy(obs.StatID, _rnxObsFile->markerName().toAscii().constData(), 155 sizeof(obs.StatID)); 156 obs.satSys = rnxSat.satSys; 157 obs.satNum = rnxSat.satNum; 158 obs.GPSWeek = epo->tt.gpsw(); 159 obs.GPSWeeks = epo->tt.gpssec(); 160 //// TODO: check RINEX Version 3 types 161 for (int iType = 0; iType < _rnxObsFile->nTypes(obs.satSys); iType++) { 162 QByteArray type = _rnxObsFile->obsType(obs.satSys,iType).toAscii(); 163 if (type.indexOf("C1") == 0 && obs.C1 == 0.0) { 164 obs.C1 = rnxSat.obs[iType]; 165 } 166 else if (type.indexOf("P1") == 0 && obs.P1 == 0.0) { 167 obs.P1 = rnxSat.obs[iType]; 168 } 169 else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) { 170 obs.L1C = rnxSat.obs[iType]; 171 } 172 else if (type.indexOf("C2") == 0 && obs.C2 == 0.0) { 173 obs.C2 = rnxSat.obs[iType]; 174 } 175 else if (type.indexOf("P2") == 0 && obs.P2 == 0.0) { 176 obs.P2 = rnxSat.obs[iType]; 177 } 178 else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) { 179 obs.L2C = rnxSat.obs[iType]; 180 } 181 } 192 t_postProcessing::setObsFromRnx(_rnxObsFile, epo, rnxSat, obs); 182 193 183 194 // Get Glonass Channel Number 184 195 // ------------------------- 196 bool obsOK = true; 185 197 if (obs.satSys == 'R') { 186 198 QString prn = QString("%1%2").arg(obs.satSys)
Note:
See TracChangeset
for help on using the changeset viewer.