source: ntrip/trunk/BNC/src/pppModel.h@ 8450

Last change on this file since 8450 was 7998, checked in by stuerze, 8 years ago

minor changes

File size: 2.1 KB
Line 
1#ifndef PPPMODEL_H
2#define PPPMODEL_H
3
4#include <math.h>
5#include <newmat.h>
6#include <iostream>
7#include "bnctime.h"
8#include "t_prn.h"
9#include "satObs.h"
10#include "bncutils.h"
11
12namespace BNC_PPP {
13
14class t_astro {
15 public:
16 static ColumnVector Sun(double Mjd_TT);
17 static ColumnVector Moon(double Mjd_TT);
18 static Matrix rotX(double Angle);
19 static Matrix rotY(double Angle);
20 static Matrix rotZ(double Angle);
21
22 private:
23 static const double RHO_DEG;
24 static const double RHO_SEC;
25 static const double MJD_J2000;
26
27 static double GMST(double Mjd_UT1);
28 static Matrix NutMatrix(double Mjd_TT);
29 static Matrix PrecMatrix (double Mjd_1, double Mjd_2);
30};
31
32class t_tides {
33 public:
34 t_tides() {
35 _lastMjd = 0.0;
36 _rSun = 0.0;
37 _rMoon = 0.0;
38 }
39 ~t_tides() {}
40 ColumnVector displacement(const bncTime& time, const ColumnVector& xyz);
41 private:
42 double _lastMjd;
43 ColumnVector _xSun;
44 ColumnVector _xMoon;
45 double _rSun;
46 double _rMoon;
47};
48
49class t_loading {
50 public:
51 t_loading(const QString& fileName);
52 ~t_loading();
53 t_irc readFile(const QString& fileName);
54 void printAll() const;
55
56 private:
57 class t_blqData {
58 public:
59 t_blqData() {}
60 Matrix amplitudes;
61 Matrix phases;
62 };
63 t_blqData* newBlqData;
64 QMap <QString, t_blqData*> blqMap;
65
66};
67
68class t_windUp {
69 public:
70 t_windUp();
71 ~t_windUp() {};
72 double value(const bncTime& etime, const ColumnVector& rRec, t_prn prn,
73 const ColumnVector& rSat);
74 private:
75 double lastEtime[t_prn::MAXPRN+1];
76 double sumWind[t_prn::MAXPRN+1];
77};
78
79class t_tropo {
80 public:
81 static double delay_saast(const ColumnVector& xyz, double Ele);
82};
83
84class t_iono {
85 public:
86 t_iono();
87 ~t_iono();
88 double stec(const t_vTec* vTec, double signalPropagationTime,
89 const ColumnVector& rSat, const bncTime& epochTime,
90 const ColumnVector& xyzSta);
91 private:
92 double vtecSingleLayerContribution(const t_vTecLayer& vTecLayer);
93 void piercePoint(double layerHeight, double epoch, const double* geocSta,
94 double sphEle, double sphAzi);
95 double _psiPP;
96 double _phiPP;
97 double _lambdaPP;
98 double _lonS;
99
100
101};
102
103}
104
105#endif
Note: See TracBrowser for help on using the repository browser.