source: ntrip/trunk/BNC/src/rinex/reqcanalyze.h@ 6272

Last change on this file since 6272 was 6272, checked in by mervart, 10 years ago
File size: 3.9 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#ifndef REQCANALYZE_H
26#define REQCANALYZE_H
27
28#include <QtCore>
29#include "rnxobsfile.h"
30#include "rnxnavfile.h"
31#include "ephemeris.h"
32#include "satObs.h"
33
34class t_polarPoint;
35
36class t_plotData {
37 public:
38 QVector<double> _mjdX24;
39 QVector<double> _PDOP;
40 QVector<double> _L1ok;
41 QVector<double> _L2ok;
42 QVector<double> _L1slip;
43 QVector<double> _L2slip;
44 QVector<double> _L1gap;
45 QVector<double> _L2gap;
46 QVector<double> _eleDeg;
47};
48
49class t_qcObs {
50 public:
51 t_qcObs() {
52 _hasL1 = false;
53 _hasL2 = false;
54 _slipL1 = false;
55 _slipL2 = false;
56 _gapL1 = false;
57 _gapL2 = false;
58 _slotSet = false;
59 _slotNum = 0;
60 _MP1 = 0.0;
61 _MP2 = 0.0;
62 _SNR1 = 0.0;
63 _SNR2 = 0.0;
64 }
65 t_irc set(const t_satObs& obs);
66 double _eleDeg;
67 double _azDeg;
68 bool _hasL1;
69 bool _hasL2;
70 bool _slipL1;
71 bool _slipL2;
72 bool _gapL1;
73 bool _gapL2;
74 bool _slotSet;
75 int _slotNum;
76 double _MP1;
77 double _MP2;
78 double _SNR1;
79 double _SNR2;
80};
81
82class t_qcEpo {
83 public:
84 bncTime _epoTime;
85 double _PDOP;
86 QMap<t_prn, t_qcObs> _qcObs;
87};
88
89class t_qcSat {
90 public:
91 t_qcSat() {
92 _numObs = 0;
93 _numSlipsFlagged = 0;
94 _numSlipsFound = 0;
95 _numGaps = 0;
96 }
97 int _numObs;
98 int _numSlipsFlagged;
99 int _numSlipsFound;
100 int _numGaps;
101};
102
103class t_qcFile {
104 public:
105 t_qcFile() {clear();}
106 void clear() {_qcSat.clear(); _qcEpo.clear();}
107 bncTime _startTime;
108 bncTime _endTime;
109 QString _antennaName;
110 QString _markerName;
111 QString _receiverType;
112 double _interval;
113 QMap<t_prn, t_qcSat> _qcSat;
114 QVector<t_qcEpo> _qcEpo;
115 QVector<t_qcEpo> _qcEpoSampled;
116};
117
118class t_reqcAnalyze : public QThread {
119Q_OBJECT
120
121 public:
122 t_reqcAnalyze(QObject* parent);
123 virtual void run();
124
125 protected:
126 ~t_reqcAnalyze();
127
128 signals:
129 void finished();
130
131 private:
132 void analyzeFile(t_rnxObsFile* obsFile);
133
134 void updateQcSat(const t_qcObs& qcObs, t_qcSat& qcSat);
135
136 t_irc setQcObs(const t_satObs& satObs, t_qcObs& qcObs);
137
138 void preparePlotData(const t_rnxObsFile* obsFile);
139
140 double cmpDOP(const ColumnVector& xyzSta) const;
141
142 void dspSkyPlot(const QString& fileName, const QByteArray& title1,
143 QVector<t_polarPoint*>* data1, const QByteArray& title2,
144 QVector<t_polarPoint*>* data2, const QByteArray& scaleTitle, double maxValue);
145
146 void dspAvailPlot(const QString& fileName, const QByteArray& title);
147
148 void printReport();
149
150 QString _logFileName;
151 QFile* _logFile;
152 QTextStream* _log;
153 QStringList _obsFileNames;
154 QVector<t_rnxObsFile*> _rnxObsFiles;
155 QStringList _navFileNames;
156 QVector<t_eph*> _ephs;
157 t_rnxObsFile::t_rnxEpo* _currEpo;
158 t_qcFile _qcFile;
159 QMutex _mutex;
160};
161
162#endif
Note: See TracBrowser for help on using the repository browser.