source: ntrip/trunk/BNC/src/bncrinex.cpp@ 4501

Last change on this file since 4501 was 4501, checked in by mervart, 12 years ago
File size: 20.6 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25/* -------------------------------------------------------------------------
26 * BKG NTRIP Client
27 * -------------------------------------------------------------------------
28 *
29 * Class: bncRinex
30 *
31 * Purpose: writes RINEX files
32 *
33 * Author: L. Mervart
34 *
35 * Created: 27-Aug-2006
36 *
37 * Changes:
38 *
39 * -----------------------------------------------------------------------*/
40
41#include <stdlib.h>
42#include <iostream>
43#include <iomanip>
44#include <math.h>
45#include <sstream>
46
47#include <QtCore>
48#include <QUrl>
49#include <QString>
50
51#include "bncrinex.h"
52#include "bncapp.h"
53#include "bncutils.h"
54#include "bncconst.h"
55#include "bnctabledlg.h"
56#include "bncgetthread.h"
57#include "bncnetqueryv1.h"
58#include "bncnetqueryv2.h"
59#include "bncsettings.h"
60#include "bncversion.h"
61#include "rtcm3torinex.h"
62
63using namespace std;
64
65// Constructor
66////////////////////////////////////////////////////////////////////////////
67bncRinex::bncRinex(const QByteArray& statID, const QUrl& mountPoint,
68 const QByteArray& latitude, const QByteArray& longitude,
69 const QByteArray& nmea, const QByteArray& ntripVersion) {
70
71 _statID = statID;
72 _mountPoint = mountPoint;
73 _latitude = latitude;
74 _longitude = longitude;
75 _nmea = nmea;
76 _ntripVersion = ntripVersion;
77 _headerWritten = false;
78 _reconnectFlag = false;
79
80 bncSettings settings;
81 _rnxScriptName = settings.value("rnxScript").toString();
82 expandEnvVar(_rnxScriptName);
83
84 _pgmName = QString(BNCPGMNAME).leftJustified(20, ' ', true);
85#ifdef WIN32
86 _userName = QString("${USERNAME}");
87#else
88 _userName = QString("${USER}");
89#endif
90 expandEnvVar(_userName);
91 _userName = _userName.leftJustified(20, ' ', true);
92
93 _samplingRate = settings.value("rnxSampl").toInt();
94}
95
96// Destructor
97////////////////////////////////////////////////////////////////////////////
98bncRinex::~bncRinex() {
99 bncSettings settings;
100 if ((_header._version >= 3.0) && ( Qt::CheckState(settings.value("rnxAppend").toInt()) != Qt::Checked) ) {
101 _out << "> 4 1" << endl;
102 _out << "END OF FILE" << endl;
103 }
104 _out.close();
105}
106
107// Download Skeleton Header File
108////////////////////////////////////////////////////////////////////////////
109t_irc bncRinex::downloadSkeleton() {
110
111 t_irc irc = failure;
112
113 QStringList table;
114 bncTableDlg::getFullTable(_ntripVersion, _mountPoint.host(),
115 _mountPoint.port(), table, true);
116 QString net;
117 QStringListIterator it(table);
118 while (it.hasNext()) {
119 QString line = it.next();
120 if (line.indexOf("STR") == 0) {
121 QStringList tags = line.split(";");
122 if (tags.size() > 7) {
123 if (tags.at(1) == _mountPoint.path().mid(1).toAscii()) {
124 net = tags.at(7);
125 break;
126 }
127 }
128 }
129 }
130 QString sklDir;
131 if (!net.isEmpty()) {
132 it.toFront();
133 while (it.hasNext()) {
134 QString line = it.next();
135 if (line.indexOf("NET") == 0) {
136 QStringList tags = line.split(";");
137 if (tags.size() > 6) {
138 if (tags.at(1) == net) {
139 sklDir = tags.at(6).trimmed();
140 break;
141 }
142 }
143 }
144 }
145 }
146 if (!sklDir.isEmpty() && sklDir != "none") {
147 QUrl url(sklDir + "/" + _mountPoint.path().mid(1,4).toLower() + ".skl");
148 if (url.port() == -1) {
149 url.setPort(80);
150 }
151
152 bncNetQuery* query;
153 if (_ntripVersion == "2s") {
154 query = new bncNetQueryV2(true);
155 }
156 else if (_ntripVersion == "2") {
157 query = new bncNetQueryV2(false);
158 }
159 else {
160 query = new bncNetQueryV1;
161 }
162
163 QByteArray outData;
164 query->waitForRequestResult(url, outData);
165 if (query->status() == bncNetQuery::finished) {
166 irc = success;
167 QTextStream in(outData);
168 _header.read(&in);
169 }
170
171 delete query;
172 }
173
174 return irc;
175}
176
177// Read Skeleton Header File
178////////////////////////////////////////////////////////////////////////////
179void bncRinex::readSkeleton(bool& obsTypesFound) {
180
181 // Read the local file
182 // -------------------
183 QFile skl(_sklName);
184 if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) {
185 QTextStream in(&skl);
186 _header.read(&in);
187 }
188
189 // Read downloaded file
190 // --------------------
191 else if ( _ntripVersion != "N" && _ntripVersion != "UN" &&
192 _ntripVersion != "S" ) {
193 QDate currDate = currentDateAndTimeGPS().date();
194 if ( !_skeletonDate.isValid() || _skeletonDate != currDate ) {
195 downloadSkeleton();
196 _skeletonDate = currDate;
197 }
198 }
199
200 bncSettings settings;
201 if ( Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) {
202 _header._version = 3.01;
203 }
204 else {
205 _header._version = 2.12;
206 }
207
208 obsTypesFound = true;
209
210 // Default RINEX v2 Types
211 // -------------------------
212 if (_header._obsTypesV2.size() == 0) {
213 if (_header._version < 3.0) {
214 obsTypesFound = false;
215 }
216 _header._obsTypesV2 << "C1" << "P1" << "L1" << "S1"
217 << "C2" << "P2" << "L2" << "S2";
218 }
219
220 // Default RINEX v3 Types
221 // -------------------------
222 if (_header._obsTypesV3.size() == 0) {
223 if (_header._version >= 3.0) {
224 obsTypesFound = false;
225 }
226 _header._obsTypesV3['G'] << "C1C" << "L1C" << "D1C" << "S1C"
227 << "C1P" << "L1P" << "D1P" << "S1P"
228 << "C2C" << "L2C" << "D2C" << "S2C"
229 << "C2P" << "L2P" << "D2P" << "S2P"
230 << "C5" << "D5" << "L5" << "S5";
231
232 _header._obsTypesV3['R'] << "C1C" << "L1C" << "D1C" << "S1C"
233 << "C1P" << "L1P" << "D1P" << "S1P"
234 << "C2C" << "L2C" << "D2C" << "S2C"
235 << "C2P" << "L2P" << "D2P" << "S2P";
236
237 _header._obsTypesV3['E'] << "C1" << "L1" << "D1" << "S1"
238 << "C5" << "L5" << "D5" << "S5"
239 << "C6" << "L6" << "D6" << "S6"
240 << "C7" << "L7" << "D7" << "S7"
241 << "C8" << "L8" << "D8" << "S8";
242
243 _header._obsTypesV3['J'] << "C1" << "L1" << "D1" << "S1"
244 << "C2" << "L2" << "D2" << "S2"
245 << "C5" << "L5" << "D5" << "S5"
246 << "C6" << "D6" << "L6" << "S6";
247
248 _header._obsTypesV3['S'] << "C1" << "L1" << "D1" << "S1"
249 << "C5" << "L5" << "D5" << "S5";
250
251 _header._obsTypesV3['C'] << "C2" << "L2" << "D2" << "S2"
252 << "C6" << "L6" << "D6" << "S6"
253 << "C7" << "L7" << "D7" << "S7";
254 }
255}
256
257// Next File Epoch (static)
258////////////////////////////////////////////////////////////////////////////
259QString bncRinex::nextEpochStr(const QDateTime& datTim,
260 const QString& intStr, QDateTime* nextEpoch) {
261
262 QString epoStr;
263
264 QTime nextTime;
265 QDate nextDate;
266
267 int indHlp = intStr.indexOf("min");
268
269 if ( indHlp != -1) {
270 int step = intStr.left(indHlp-1).toInt();
271 char ch = 'A' + datTim.time().hour();
272 epoStr = ch;
273 if (datTim.time().minute() >= 60-step) {
274 epoStr += QString("%1").arg(60-step, 2, 10, QChar('0'));
275 if (datTim.time().hour() < 23) {
276 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0);
277 nextDate = datTim.date();
278 }
279 else {
280 nextTime.setHMS(0, 0, 0);
281 nextDate = datTim.date().addDays(1);
282 }
283 }
284 else {
285 for (int limit = step; limit <= 60-step; limit += step) {
286 if (datTim.time().minute() < limit) {
287 epoStr += QString("%1").arg(limit-step, 2, 10, QChar('0'));
288 nextTime.setHMS(datTim.time().hour(), limit, 0);
289 nextDate = datTim.date();
290 break;
291 }
292 }
293 }
294 }
295 else if (intStr == "1 hour") {
296 char ch = 'A' + datTim.time().hour();
297 epoStr = ch;
298 if (datTim.time().hour() < 23) {
299 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0);
300 nextDate = datTim.date();
301 }
302 else {
303 nextTime.setHMS(0, 0, 0);
304 nextDate = datTim.date().addDays(1);
305 }
306 }
307 else {
308 epoStr = "0";
309 nextTime.setHMS(0, 0, 0);
310 nextDate = datTim.date().addDays(1);
311 }
312
313 if (nextEpoch) {
314 *nextEpoch = QDateTime(nextDate, nextTime);
315 }
316
317 return epoStr;
318}
319
320// File Name according to RINEX Standards
321////////////////////////////////////////////////////////////////////////////
322void bncRinex::resolveFileName(const QDateTime& datTim) {
323
324 bncSettings settings;
325 QString path = settings.value("rnxPath").toString();
326 expandEnvVar(path);
327
328 if ( path.length() > 0 && path[path.length()-1] != QDir::separator() ) {
329 path += QDir::separator();
330 }
331
332 QString hlpStr = nextEpochStr(datTim, settings.value("rnxIntr").toString(),
333 &_nextCloseEpoch);
334
335 QString ID4 = _statID.left(4);
336
337 // Check name conflict
338 // -------------------
339 QString distStr;
340 int num = 0;
341 QListIterator<QString> it(settings.value("mountPoints").toStringList());
342 while (it.hasNext()) {
343 QString mp = it.next();
344 if (mp.indexOf(ID4) != -1) {
345 ++num;
346 }
347 }
348 if (num > 1) {
349 distStr = "_" + _statID.mid(4);
350 }
351
352 QString sklExt = settings.value("rnxSkel").toString();
353 if (!sklExt.isEmpty()) {
354 _sklName = path + ID4 + distStr + "." + sklExt;
355 }
356
357 path += ID4 +
358 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
359 hlpStr + distStr + datTim.toString(".yyO");
360
361 _fName = path.toAscii();
362}
363
364// Write RINEX Header
365////////////////////////////////////////////////////////////////////////////
366void bncRinex::writeHeader(const QByteArray& format,
367 const QDateTime& datTimNom) {
368
369 bncSettings settings;
370
371 // Open the Output File
372 // --------------------
373 resolveFileName(datTimNom);
374
375 // Append to existing file and return
376 // ----------------------------------
377 if ( QFile::exists(_fName) ) {
378 if (_reconnectFlag ||
379 Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
380 _out.open(_fName.data(), ios::app);
381 _out.setf(ios::showpoint | ios::fixed);
382 _headerWritten = true;
383 _reconnectFlag = false;
384 return;
385 }
386 }
387
388 _out.open(_fName.data());
389 _out.setf(ios::showpoint | ios::fixed);
390
391 // Copy Skeleton Header
392 // --------------------
393 bool obsTypesFound;
394 readSkeleton(obsTypesFound);
395 if (_header._markerName.isEmpty()) {
396 _header._markerName = _statID;
397 }
398
399 // A few additional comments
400 // -------------------------
401 QMap<QString, QString> txtMap;
402 QStringList addComments;
403
404 addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path();
405
406 if (_nmea == "yes") {
407 addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude;
408 }
409
410 txtMap["COMMENT"] = addComments.join("\\n");
411
412 QByteArray headerLines;
413 QTextStream outHlp(&headerLines);
414 _header.write(&outHlp, &txtMap);
415 outHlp.flush();
416 _out << headerLines.data();
417
418 _headerWritten = true;
419}
420
421// Stores Observation into Internal Array
422////////////////////////////////////////////////////////////////////////////
423void bncRinex::deepCopy(t_obs obs) {
424 _obs.push_back(obs);
425}
426
427// Write One Epoch into the RINEX File
428////////////////////////////////////////////////////////////////////////////
429void bncRinex::dumpEpoch(const QByteArray& format, long maxTime) {
430
431 // Select observations older than maxTime
432 // --------------------------------------
433 QList<t_obs> dumpList;
434 QMutableListIterator<t_obs> mIt(_obs);
435 while (mIt.hasNext()) {
436 t_obs obs = mIt.next();
437 if (obs.GPSWeek * 7*24*3600 + obs.GPSWeeks < maxTime - 0.05) {
438 dumpList.push_back(obs);
439 mIt.remove();
440 }
441 }
442
443 // Easy Return
444 // -----------
445 if (dumpList.isEmpty()) {
446 return;
447 }
448
449 // Time of Epoch
450 // -------------
451 const t_obs& fObs = dumpList.first();
452 QDateTime datTim = dateAndTimeFromGPSweek(fObs.GPSWeek, fObs.GPSWeeks);
453 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs.GPSWeek,
454 floor(fObs.GPSWeeks+0.5));
455
456 // Close the file
457 // --------------
458 if (_nextCloseEpoch.isValid() && datTimNom >= _nextCloseEpoch) {
459 closeFile();
460 _headerWritten = false;
461 }
462
463 // Write RINEX Header
464 // ------------------
465 if (!_headerWritten) {
466 _header._startTime.set(fObs.GPSWeek, fObs.GPSWeeks);
467 writeHeader(format, datTimNom);
468 }
469
470 double sec = double(datTim.time().second()) + fmod(fObs.GPSWeeks,1.0);
471
472 // Epoch header line: RINEX Version 3
473 // ----------------------------------
474 if (_header._version >= 3.0) {
475 _out << datTim.toString("> yyyy MM dd hh mm ").toAscii().data()
476 << setw(10) << setprecision(7) << sec
477 << " " << 0 << setw(3) << dumpList.size() << endl;
478 }
479 // Epoch header line: RINEX Version 2
480 // ----------------------------------
481 else {
482 _out << datTim.toString(" yy MM dd hh mm ").toAscii().data()
483 << setw(10) << setprecision(7) << sec
484 << " " << 0 << setw(3) << dumpList.size();
485
486 QListIterator<t_obs> it(dumpList); int iSat = 0;
487 while (it.hasNext()) {
488 iSat++;
489 const t_obs& obs = it.next();
490 _out << obs.satSys << setw(2) << obs.satNum;
491 if (iSat == 12 && it.hasNext()) {
492 _out << endl << " ";
493 iSat = 0;
494 }
495 }
496 _out << endl;
497 }
498
499 QListIterator<t_obs> it(dumpList);
500 while (it.hasNext()) {
501 const t_obs& obs = it.next();
502
503 // Cycle slips detection
504 // ---------------------
505 QString prn = QString("%1%2").arg(obs.satSys)
506 .arg(obs.satNum, 2, 10, QChar('0'));
507
508 char lli1 = ' ';
509 char lli2 = ' ';
510 char lli5 = ' ';
511 if ( obs.slip_cnt_L1 >= 0 ) {
512 if ( _slip_cnt_L1.find(prn) != _slip_cnt_L1.end() &&
513 _slip_cnt_L1.find(prn).value() != obs.slip_cnt_L1 ) {
514 lli1 = '1';
515 }
516 }
517
518 if ( obs.slip_cnt_L2 >= 0 ) {
519 if ( _slip_cnt_L2.find(prn) != _slip_cnt_L2.end() &&
520 _slip_cnt_L2.find(prn).value() != obs.slip_cnt_L2 ) {
521 lli2 = '1';
522 }
523 }
524
525 if ( obs.slip_cnt_L5 >= 0 ) {
526 if ( _slip_cnt_L5.find(prn) != _slip_cnt_L5.end() &&
527 _slip_cnt_L5.find(prn).value() != obs.slip_cnt_L5 ) {
528 lli5 = '1';
529 }
530 }
531
532 _slip_cnt_L1[prn] = obs.slip_cnt_L1;
533 _slip_cnt_L2[prn] = obs.slip_cnt_L2;
534 _slip_cnt_L5[prn] = obs.slip_cnt_L5;
535
536 // Write the data
537 // --------------
538 _out << rinexSatLine(obs, lli1, lli2, lli5) << endl;
539 }
540
541 _out.flush();
542}
543
544// Close the Old RINEX File
545////////////////////////////////////////////////////////////////////////////
546void bncRinex::closeFile() {
547 if (_header._version == 3) {
548 _out << "> 4 1" << endl;
549 _out << "END OF FILE" << endl;
550 }
551 _out.close();
552 if (!_rnxScriptName.isEmpty()) {
553 qApp->thread()->wait(100);
554#ifdef WIN32
555 QProcess::startDetached(_rnxScriptName, QStringList() << _fName) ;
556#else
557 QProcess::startDetached("nohup", QStringList() << _rnxScriptName << _fName) ;
558#endif
559
560 }
561}
562
563// One Line in RINEX v2 or v3
564////////////////////////////////////////////////////////////////////////////
565string bncRinex::rinexSatLine(const t_obs& obs, char lli1, char lli2,
566 char lli5) {
567 ostringstream str;
568 str.setf(ios::showpoint | ios::fixed);
569
570 if (_header._version >= 3.0) {
571 str << obs.satSys
572 << setw(2) << setfill('0') << obs.satNum << setfill(' ');
573 }
574
575 const QVector<QString>& types = (_header._version > 3.0) ?
576 _header._obsTypesV3[obs.satSys] : _header._obsTypesV2;
577 for (int ii = 0; ii < types.size(); ii++) {
578 double value = obs.measdata(types[ii], _header._version);
579 str << setw(14) << setprecision(3) << value;
580 if (value != 0.0 && types[ii].indexOf("L1") == 0) {
581 str << lli1 << ' ';
582 }
583 else if (value != 0.0 && types[ii].indexOf("L2") == 0) {
584 str << lli2 << ' ';
585 }
586 else if (value != 0.0 && types[ii].indexOf("L5") == 0) {
587 str << lli5 << ' ';
588 }
589 else {
590 str << " ";
591 }
592 }
593
594 return str.str();
595}
596
597//
598////////////////////////////////////////////////////////////////////////////
599string bncRinex::obsToStr(double val, int width, int precision) {
600 if (val != 0.0) {
601 ostringstream str;
602 str.setf(ios::showpoint | ios::fixed);
603 str << setw(width) << setprecision(precision) << val;
604 return str.str();
605 }
606 else {
607 return "0.0";
608 }
609}
610
611// One Line in ASCII (Internal) Format
612////////////////////////////////////////////////////////////////////////////
613string bncRinex::asciiSatLine(const t_obs& obs) {
614
615 ostringstream str;
616 str.setf(ios::showpoint | ios::fixed);
617
618 str << obs.satSys << setw(2) << setfill('0') << obs.satNum << setfill(' ');
619
620 if (obs.satSys == 'R') { // Glonass
621 str << ' ' << setw(2) << obs.slotNum;
622 }
623 else {
624 str << " ";
625 }
626
627 float rnxVers = 3.0;
628
629 if (obs.satSys == 'G') { // GPS
630 str << " 1C "
631 << obsToStr(obs.measdata("C1C", rnxVers)) << ' '
632 << obsToStr(obs.measdata("L1C", rnxVers)) << ' '
633 << obsToStr(obs.measdata("D1C", rnxVers)) << ' '
634 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' '
635 << setw(2) << obs.slip_cnt_L1;
636 str << " 1P "
637 << obsToStr(obs.measdata("C1P", rnxVers)) << ' '
638 << obsToStr(obs.measdata("L1P", rnxVers)) << ' '
639 << obsToStr(obs.measdata("D1P", rnxVers)) << ' '
640 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' '
641 << setw(2) << obs.slip_cnt_L1;
642 str << " 2P "
643 << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
644 << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
645 << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
646 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
647 << setw(2) << obs.slip_cnt_L2;
648 str << " 5C "
649 << obsToStr(obs.measdata("C5", rnxVers)) << ' '
650 << obsToStr(obs.measdata("L5", rnxVers)) << ' '
651 << obsToStr(obs.measdata("D5", rnxVers)) << ' '
652 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' '
653 << setw(2) << obs.slip_cnt_L5;
654 }
655 else if (obs.satSys == 'R') { // Glonass
656 str << " 1C "
657 << obsToStr(obs.measdata("C1C", rnxVers)) << ' '
658 << obsToStr(obs.measdata("L1C", rnxVers)) << ' '
659 << obsToStr(obs.measdata("D1C", rnxVers)) << ' '
660 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' '
661 << setw(2) << obs.slip_cnt_L1;
662 str << " 1P "
663 << obsToStr(obs.measdata("C1P", rnxVers)) << ' '
664 << obsToStr(obs.measdata("L1P", rnxVers)) << ' '
665 << obsToStr(obs.measdata("D1P", rnxVers)) << ' '
666 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' '
667 << setw(2) << obs.slip_cnt_L1;
668 str << " 2P "
669 << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
670 << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
671 << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
672 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
673 << setw(2) << obs.slip_cnt_L2;
674 str << " 2C "
675 << obsToStr(obs.measdata("C2C", rnxVers)) << ' '
676 << obsToStr(obs.measdata("L2C", rnxVers)) << ' '
677 << obsToStr(obs.measdata("D2C", rnxVers)) << ' '
678 << obsToStr(obs.measdata("S2C", rnxVers), 8, 3) << ' '
679 << setw(2) << obs.slip_cnt_L2;
680 }
681 else if (obs.satSys == 'E') { // Galileo
682 str << " 1C "
683 << obsToStr(obs.measdata("C1", rnxVers)) << ' '
684 << obsToStr(obs.measdata("L1", rnxVers)) << ' '
685 << obsToStr(obs.measdata("D1", rnxVers)) << ' '
686 << obsToStr(obs.measdata("S1", rnxVers), 8, 3) << ' '
687 << setw(2) << obs.slip_cnt_L1;
688
689 str << " 5C "
690 << obsToStr(obs.measdata("C5", rnxVers)) << ' '
691 << obsToStr(obs.measdata("L5", rnxVers)) << ' '
692 << obsToStr(obs.measdata("D5", rnxVers)) << ' '
693 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' '
694 << setw(2) << obs.slip_cnt_L5;
695 }
696 return str.str();
697}
Note: See TracBrowser for help on using the repository browser.