Changeset 6223 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 11, 2014, 2:11:14 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6192 r6223 164 164 if (query->status() == bncNetQuery::finished) { 165 165 irc = success; 166 _header._obsTypes.clear();167 166 QTextStream in(outData); 168 _ header.read(&in);167 _sklHeader.read(&in); 169 168 } 170 169 … … 186 185 if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) { 187 186 readDone = true; 188 _header._obsTypes.clear();189 187 QTextStream in(&skl); 190 _ header.read(&in);188 _sklHeader.read(&in); 191 189 } 192 190 … … 340 338 _out.setf(ios::showpoint | ios::fixed); 341 339 340 // Set RINEX Version 341 // ----------------- 342 int intHeaderVers = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked ? 3 : 2); 343 342 344 // Read Skeleton Header 343 345 // -------------------- 344 bool skelRead = readSkeleton(); 345 346 // Set RINEX Version 347 // ----------------- 348 if ( Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) { 349 _header._version = t_rnxObsHeader::defaultRnxObsVersion3; 346 if (readSkeleton()) { 347 _header.set(_sklHeader, intHeaderVers); 350 348 } 351 349 else { 352 _header. _version = t_rnxObsHeader::defaultRnxObsVersion2;350 _header.setDefault(_statID, intHeaderVers); 353 351 } 354 352 355 353 // A Few Additional Comments 356 354 // ------------------------- 357 if (skelRead || _addComments.size() == 0) { 358 _addComments.clear(); 359 _addComments << format.left(6) + " " 360 + _mountPoint.host() + _mountPoint.path(); 361 if (_header._obsTypes.size() == 0) { 362 _addComments << "Default set of observation types used"; 363 } 364 if (_nmea == "yes") { 365 _addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude; 366 } 367 } 368 369 // Set Marker Name 370 // --------------- 371 if (_header._markerName.isEmpty()) { 372 _header._markerName = _statID; 373 } 374 375 // Set Default Observation Types 376 // ----------------------------- 377 if (_header._obsTypes.size() == 0) { 378 if (_header._version < 3.0) { 379 _header._obsTypes['G'] << "C1" << "P1" << "L1" << "S1" 380 << "C2" << "P2" << "L2" << "S2"; 381 _header._obsTypes['R'] = _header._obsTypes['G']; 382 _header._obsTypes['E'] = _header._obsTypes['G']; 383 _header._obsTypes['J'] = _header._obsTypes['G']; 384 _header._obsTypes['S'] = _header._obsTypes['G']; 385 _header._obsTypes['C'] = _header._obsTypes['G']; 386 } 387 else { 388 _header._obsTypes['G'] << "C1C" << "L1C" << "S1C" 389 << "C2W" << "L2W" << "S2W" 390 << "C5" << "L5" << "S5"; 391 392 _header._obsTypes['J'] = _header._obsTypes['G']; 393 394 _header._obsTypes['R'] << "C1C" << "L1C" << "S1C" 395 << "C2P" << "L2P" << "S2P"; 396 397 _header._obsTypes['E'] << "C1" << "L1" << "S1" 398 << "C5" << "L5" << "S5" 399 << "C7" << "L7" << "S7" 400 << "C8" << "L8" << "S8"; 401 402 _header._obsTypes['S'] << "C1" << "L1" << "S1" 403 << "C5" << "L5" << "S5"; 404 405 _header._obsTypes['C'] << "C1" << "L1" << "S1" 406 << "C6" << "L6" << "S6" 407 << "C7" << "L7" << "S7"; 408 } 355 _addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path(); 356 if (_nmea == "yes") { 357 _addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude; 409 358 } 410 359 -
trunk/BNC/src/bncrinex.h
r6137 r6223 83 83 QMap<QString, int> _slip_cnt_L5; 84 84 85 t_rnxObsHeader _sklHeader; 85 86 t_rnxObsHeader _header; 86 87 }; -
trunk/BNC/src/rinex/reqcedit.cpp
r6132 r6223 254 254 } 255 255 if (ii == 0) { 256 outObsFile.setHeader(obsFile->header(), _rnxVersion, useObsTypes);256 outObsFile.setHeader(obsFile->header(), _rnxVersion, &useObsTypes); 257 257 if (_begTime.valid() && _begTime > outObsFile.startTime()) { 258 258 outObsFile.setStartTime(_begTime); -
trunk/BNC/src/rinex/rnxobsfile.cpp
r6222 r6223 159 159 } 160 160 else if (key == "# / TYPES OF OBSERV") { 161 if (_version == 0.0) { 162 _version = t_rnxObsHeader::defaultRnxObsVersion2; 163 } 161 164 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); 162 165 int nTypes; … … 180 183 } 181 184 else if (key == "SYS / # / OBS TYPES") { 185 if (_version == 0.0) { 186 _version = t_rnxObsHeader::defaultRnxObsVersion2; 187 } 182 188 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); 183 189 char sys;
Note:
See TracChangeset
for help on using the changeset viewer.