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

Last change on this file since 4504 was 4504, checked in by mervart, 12 years ago
File size: 20.7 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() {
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
201// Next File Epoch (static)
202////////////////////////////////////////////////////////////////////////////
203QString bncRinex::nextEpochStr(const QDateTime& datTim,
204 const QString& intStr, QDateTime* nextEpoch) {
205
206 QString epoStr;
207
208 QTime nextTime;
209 QDate nextDate;
210
211 int indHlp = intStr.indexOf("min");
212
213 if ( indHlp != -1) {
214 int step = intStr.left(indHlp-1).toInt();
215 char ch = 'A' + datTim.time().hour();
216 epoStr = ch;
217 if (datTim.time().minute() >= 60-step) {
218 epoStr += QString("%1").arg(60-step, 2, 10, QChar('0'));
219 if (datTim.time().hour() < 23) {
220 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0);
221 nextDate = datTim.date();
222 }
223 else {
224 nextTime.setHMS(0, 0, 0);
225 nextDate = datTim.date().addDays(1);
226 }
227 }
228 else {
229 for (int limit = step; limit <= 60-step; limit += step) {
230 if (datTim.time().minute() < limit) {
231 epoStr += QString("%1").arg(limit-step, 2, 10, QChar('0'));
232 nextTime.setHMS(datTim.time().hour(), limit, 0);
233 nextDate = datTim.date();
234 break;
235 }
236 }
237 }
238 }
239 else if (intStr == "1 hour") {
240 char ch = 'A' + datTim.time().hour();
241 epoStr = ch;
242 if (datTim.time().hour() < 23) {
243 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0);
244 nextDate = datTim.date();
245 }
246 else {
247 nextTime.setHMS(0, 0, 0);
248 nextDate = datTim.date().addDays(1);
249 }
250 }
251 else {
252 epoStr = "0";
253 nextTime.setHMS(0, 0, 0);
254 nextDate = datTim.date().addDays(1);
255 }
256
257 if (nextEpoch) {
258 *nextEpoch = QDateTime(nextDate, nextTime);
259 }
260
261 return epoStr;
262}
263
264// File Name according to RINEX Standards
265////////////////////////////////////////////////////////////////////////////
266void bncRinex::resolveFileName(const QDateTime& datTim) {
267
268 bncSettings settings;
269 QString path = settings.value("rnxPath").toString();
270 expandEnvVar(path);
271
272 if ( path.length() > 0 && path[path.length()-1] != QDir::separator() ) {
273 path += QDir::separator();
274 }
275
276 QString hlpStr = nextEpochStr(datTim, settings.value("rnxIntr").toString(),
277 &_nextCloseEpoch);
278
279 QString ID4 = _statID.left(4);
280
281 // Check name conflict
282 // -------------------
283 QString distStr;
284 int num = 0;
285 QListIterator<QString> it(settings.value("mountPoints").toStringList());
286 while (it.hasNext()) {
287 QString mp = it.next();
288 if (mp.indexOf(ID4) != -1) {
289 ++num;
290 }
291 }
292 if (num > 1) {
293 distStr = "_" + _statID.mid(4);
294 }
295
296 QString sklExt = settings.value("rnxSkel").toString();
297 if (!sklExt.isEmpty()) {
298 _sklName = path + ID4 + distStr + "." + sklExt;
299 }
300
301 path += ID4 +
302 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
303 hlpStr + distStr + datTim.toString(".yyO");
304
305 _fName = path.toAscii();
306}
307
308// Write RINEX Header
309////////////////////////////////////////////////////////////////////////////
310void bncRinex::writeHeader(const QByteArray& format,
311 const QDateTime& datTimNom) {
312
313 bncSettings settings;
314
315 // Open the Output File
316 // --------------------
317 resolveFileName(datTimNom);
318
319 // Append to existing file and return
320 // ----------------------------------
321 if ( QFile::exists(_fName) ) {
322 if (_reconnectFlag ||
323 Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
324 _out.open(_fName.data(), ios::app);
325 _out.setf(ios::showpoint | ios::fixed);
326 _headerWritten = true;
327 _reconnectFlag = false;
328 return;
329 }
330 }
331
332 _out.open(_fName.data());
333 _out.setf(ios::showpoint | ios::fixed);
334
335 // Read Skeleton Header
336 // --------------------
337 readSkeleton();
338
339 // Set RINEX Version
340 // -----------------
341 if ( Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) {
342 _header._version = 3.01;
343 }
344 else {
345 _header._version = 2.12;
346 }
347
348 // A Few Additional Comments
349 // -------------------------
350 QStringList addComments;
351 addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path();
352
353 if (_nmea == "yes") {
354 addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude;
355 }
356
357 // Set Marker Name
358 // ---------------
359 if (_header._markerName.isEmpty()) {
360 _header._markerName = _statID;
361 }
362
363 // Set Default RINEX v2 Types
364 // --------------------------
365 if (_header._obsTypesV2.size() == 0) {
366 if (_header._version < 3.0) {
367 addComments << "default set of observation types used";
368 }
369 _header._obsTypesV2 << "C1" << "P1" << "L1" << "S1"
370 << "C2" << "P2" << "L2" << "S2";
371 }
372
373 // Set Default RINEX v3 Types
374 // ---------------------------
375 if (_header._obsTypesV3.size() == 0) {
376 if (_header._version >= 3.0) {
377 addComments << "default set of observation types used";
378 }
379 _header._obsTypesV3['G'] << "C1C" << "L1C" << "D1C" << "S1C"
380 << "C1P" << "L1P" << "D1P" << "S1P"
381 << "C2C" << "L2C" << "D2C" << "S2C"
382 << "C2P" << "L2P" << "D2P" << "S2P"
383 << "C5" << "D5" << "L5" << "S5";
384
385 _header._obsTypesV3['R'] << "C1C" << "L1C" << "D1C" << "S1C"
386 << "C1P" << "L1P" << "D1P" << "S1P"
387 << "C2C" << "L2C" << "D2C" << "S2C"
388 << "C2P" << "L2P" << "D2P" << "S2P";
389
390 _header._obsTypesV3['E'] << "C1" << "L1" << "D1" << "S1"
391 << "C5" << "L5" << "D5" << "S5"
392 << "C6" << "L6" << "D6" << "S6"
393 << "C7" << "L7" << "D7" << "S7"
394 << "C8" << "L8" << "D8" << "S8";
395
396 _header._obsTypesV3['J'] << "C1" << "L1" << "D1" << "S1"
397 << "C2" << "L2" << "D2" << "S2"
398 << "C5" << "L5" << "D5" << "S5"
399 << "C6" << "D6" << "L6" << "S6";
400
401 _header._obsTypesV3['S'] << "C1" << "L1" << "D1" << "S1"
402 << "C5" << "L5" << "D5" << "S5";
403
404 _header._obsTypesV3['C'] << "C2" << "L2" << "D2" << "S2"
405 << "C6" << "L6" << "D6" << "S6"
406 << "C7" << "L7" << "D7" << "S7";
407 }
408
409 // Write the Header
410 // ----------------
411 QByteArray headerLines;
412 QTextStream outHlp(&headerLines);
413
414 QMap<QString, QString> txtMap;
415 txtMap["COMMENT"] = addComments.join("\\n");
416
417 _header.write(&outHlp, &txtMap);
418
419 outHlp.flush();
420 _out << headerLines.data();
421
422 _headerWritten = true;
423}
424
425// Stores Observation into Internal Array
426////////////////////////////////////////////////////////////////////////////
427void bncRinex::deepCopy(t_obs obs) {
428 _obs.push_back(obs);
429}
430
431// Write One Epoch into the RINEX File
432////////////////////////////////////////////////////////////////////////////
433void bncRinex::dumpEpoch(const QByteArray& format, long maxTime) {
434
435 // Select observations older than maxTime
436 // --------------------------------------
437 QList<t_obs> dumpList;
438 QMutableListIterator<t_obs> mIt(_obs);
439 while (mIt.hasNext()) {
440 t_obs obs = mIt.next();
441 if (obs.GPSWeek * 7*24*3600 + obs.GPSWeeks < maxTime - 0.05) {
442 dumpList.push_back(obs);
443 mIt.remove();
444 }
445 }
446
447 // Easy Return
448 // -----------
449 if (dumpList.isEmpty()) {
450 return;
451 }
452
453 // Time of Epoch
454 // -------------
455 const t_obs& fObs = dumpList.first();
456 QDateTime datTim = dateAndTimeFromGPSweek(fObs.GPSWeek, fObs.GPSWeeks);
457 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs.GPSWeek,
458 floor(fObs.GPSWeeks+0.5));
459
460 // Close the file
461 // --------------
462 if (_nextCloseEpoch.isValid() && datTimNom >= _nextCloseEpoch) {
463 closeFile();
464 _headerWritten = false;
465 }
466
467 // Write RINEX Header
468 // ------------------
469 if (!_headerWritten) {
470 _header._startTime.set(fObs.GPSWeek, fObs.GPSWeeks);
471 writeHeader(format, datTimNom);
472 }
473
474 double sec = double(datTim.time().second()) + fmod(fObs.GPSWeeks,1.0);
475
476 // Epoch header line: RINEX Version 3
477 // ----------------------------------
478 if (_header._version >= 3.0) {
479 _out << datTim.toString("> yyyy MM dd hh mm ").toAscii().data()
480 << setw(10) << setprecision(7) << sec
481 << " " << 0 << setw(3) << dumpList.size() << endl;
482 }
483 // Epoch header line: RINEX Version 2
484 // ----------------------------------
485 else {
486 _out << datTim.toString(" yy MM dd hh mm ").toAscii().data()
487 << setw(10) << setprecision(7) << sec
488 << " " << 0 << setw(3) << dumpList.size();
489
490 QListIterator<t_obs> it(dumpList); int iSat = 0;
491 while (it.hasNext()) {
492 iSat++;
493 const t_obs& obs = it.next();
494 _out << obs.satSys << setw(2) << obs.satNum;
495 if (iSat == 12 && it.hasNext()) {
496 _out << endl << " ";
497 iSat = 0;
498 }
499 }
500 _out << endl;
501 }
502
503 QListIterator<t_obs> it(dumpList);
504 while (it.hasNext()) {
505 const t_obs& obs = it.next();
506
507 // Cycle slips detection
508 // ---------------------
509 QString prn = QString("%1%2").arg(obs.satSys)
510 .arg(obs.satNum, 2, 10, QChar('0'));
511
512 char lli1 = ' ';
513 char lli2 = ' ';
514 char lli5 = ' ';
515 if ( obs.slip_cnt_L1 >= 0 ) {
516 if ( _slip_cnt_L1.find(prn) != _slip_cnt_L1.end() &&
517 _slip_cnt_L1.find(prn).value() != obs.slip_cnt_L1 ) {
518 lli1 = '1';
519 }
520 }
521
522 if ( obs.slip_cnt_L2 >= 0 ) {
523 if ( _slip_cnt_L2.find(prn) != _slip_cnt_L2.end() &&
524 _slip_cnt_L2.find(prn).value() != obs.slip_cnt_L2 ) {
525 lli2 = '1';
526 }
527 }
528
529 if ( obs.slip_cnt_L5 >= 0 ) {
530 if ( _slip_cnt_L5.find(prn) != _slip_cnt_L5.end() &&
531 _slip_cnt_L5.find(prn).value() != obs.slip_cnt_L5 ) {
532 lli5 = '1';
533 }
534 }
535
536 _slip_cnt_L1[prn] = obs.slip_cnt_L1;
537 _slip_cnt_L2[prn] = obs.slip_cnt_L2;
538 _slip_cnt_L5[prn] = obs.slip_cnt_L5;
539
540 // Write the data
541 // --------------
542 _out << rinexSatLine(obs, lli1, lli2, lli5) << endl;
543 }
544
545 _out.flush();
546}
547
548// Close the Old RINEX File
549////////////////////////////////////////////////////////////////////////////
550void bncRinex::closeFile() {
551 if (_header._version == 3) {
552 _out << "> 4 1" << endl;
553 _out << "END OF FILE" << endl;
554 }
555 _out.close();
556 if (!_rnxScriptName.isEmpty()) {
557 qApp->thread()->wait(100);
558#ifdef WIN32
559 QProcess::startDetached(_rnxScriptName, QStringList() << _fName) ;
560#else
561 QProcess::startDetached("nohup", QStringList() << _rnxScriptName << _fName) ;
562#endif
563
564 }
565}
566
567// One Line in RINEX v2 or v3
568////////////////////////////////////////////////////////////////////////////
569string bncRinex::rinexSatLine(const t_obs& obs, char lli1, char lli2,
570 char lli5) {
571 ostringstream str;
572 str.setf(ios::showpoint | ios::fixed);
573
574 if (_header._version >= 3.0) {
575 str << obs.satSys
576 << setw(2) << setfill('0') << obs.satNum << setfill(' ');
577 }
578
579 const QVector<QString>& types = (_header._version > 3.0) ?
580 _header._obsTypesV3[obs.satSys] : _header._obsTypesV2;
581 for (int ii = 0; ii < types.size(); ii++) {
582 double value = obs.measdata(types[ii], _header._version);
583 str << setw(14) << setprecision(3) << value;
584 if (value != 0.0 && types[ii].indexOf("L1") == 0) {
585 str << lli1 << ' ';
586 }
587 else if (value != 0.0 && types[ii].indexOf("L2") == 0) {
588 str << lli2 << ' ';
589 }
590 else if (value != 0.0 && types[ii].indexOf("L5") == 0) {
591 str << lli5 << ' ';
592 }
593 else {
594 str << " ";
595 }
596 }
597
598 return str.str();
599}
600
601//
602////////////////////////////////////////////////////////////////////////////
603string bncRinex::obsToStr(double val, int width, int precision) {
604 if (val != 0.0) {
605 ostringstream str;
606 str.setf(ios::showpoint | ios::fixed);
607 str << setw(width) << setprecision(precision) << val;
608 return str.str();
609 }
610 else {
611 return "0.0";
612 }
613}
614
615// One Line in ASCII (Internal) Format
616////////////////////////////////////////////////////////////////////////////
617string bncRinex::asciiSatLine(const t_obs& obs) {
618
619 ostringstream str;
620 str.setf(ios::showpoint | ios::fixed);
621
622 str << obs.satSys << setw(2) << setfill('0') << obs.satNum << setfill(' ');
623
624 if (obs.satSys == 'R') { // Glonass
625 str << ' ' << setw(2) << obs.slotNum;
626 }
627 else {
628 str << " ";
629 }
630
631 float rnxVers = 3.0;
632
633 if (obs.satSys == 'G') { // GPS
634 str << " 1C "
635 << obsToStr(obs.measdata("C1C", rnxVers)) << ' '
636 << obsToStr(obs.measdata("L1C", rnxVers)) << ' '
637 << obsToStr(obs.measdata("D1C", rnxVers)) << ' '
638 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' '
639 << setw(2) << obs.slip_cnt_L1;
640 str << " 1P "
641 << obsToStr(obs.measdata("C1P", rnxVers)) << ' '
642 << obsToStr(obs.measdata("L1P", rnxVers)) << ' '
643 << obsToStr(obs.measdata("D1P", rnxVers)) << ' '
644 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' '
645 << setw(2) << obs.slip_cnt_L1;
646 str << " 2P "
647 << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
648 << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
649 << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
650 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
651 << setw(2) << obs.slip_cnt_L2;
652 str << " 5C "
653 << obsToStr(obs.measdata("C5", rnxVers)) << ' '
654 << obsToStr(obs.measdata("L5", rnxVers)) << ' '
655 << obsToStr(obs.measdata("D5", rnxVers)) << ' '
656 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' '
657 << setw(2) << obs.slip_cnt_L5;
658 }
659 else if (obs.satSys == 'R') { // Glonass
660 str << " 1C "
661 << obsToStr(obs.measdata("C1C", rnxVers)) << ' '
662 << obsToStr(obs.measdata("L1C", rnxVers)) << ' '
663 << obsToStr(obs.measdata("D1C", rnxVers)) << ' '
664 << obsToStr(obs.measdata("S1C", rnxVers), 8, 3) << ' '
665 << setw(2) << obs.slip_cnt_L1;
666 str << " 1P "
667 << obsToStr(obs.measdata("C1P", rnxVers)) << ' '
668 << obsToStr(obs.measdata("L1P", rnxVers)) << ' '
669 << obsToStr(obs.measdata("D1P", rnxVers)) << ' '
670 << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' '
671 << setw(2) << obs.slip_cnt_L1;
672 str << " 2P "
673 << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
674 << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
675 << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
676 << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
677 << setw(2) << obs.slip_cnt_L2;
678 str << " 2C "
679 << obsToStr(obs.measdata("C2C", rnxVers)) << ' '
680 << obsToStr(obs.measdata("L2C", rnxVers)) << ' '
681 << obsToStr(obs.measdata("D2C", rnxVers)) << ' '
682 << obsToStr(obs.measdata("S2C", rnxVers), 8, 3) << ' '
683 << setw(2) << obs.slip_cnt_L2;
684 }
685 else if (obs.satSys == 'E') { // Galileo
686 str << " 1C "
687 << obsToStr(obs.measdata("C1", rnxVers)) << ' '
688 << obsToStr(obs.measdata("L1", rnxVers)) << ' '
689 << obsToStr(obs.measdata("D1", rnxVers)) << ' '
690 << obsToStr(obs.measdata("S1", rnxVers), 8, 3) << ' '
691 << setw(2) << obs.slip_cnt_L1;
692
693 str << " 5C "
694 << obsToStr(obs.measdata("C5", rnxVers)) << ' '
695 << obsToStr(obs.measdata("L5", rnxVers)) << ' '
696 << obsToStr(obs.measdata("D5", rnxVers)) << ' '
697 << obsToStr(obs.measdata("S5", rnxVers), 8, 3) << ' '
698 << setw(2) << obs.slip_cnt_L5;
699 }
700 return str.str();
701}
Note: See TracBrowser for help on using the repository browser.