| 1 | #ifndef PPPMODEL_H
|
|---|
| 2 | #define PPPMODEL_H
|
|---|
| 3 |
|
|---|
| 4 | #include <math.h>
|
|---|
| 5 | #include <newmat.h>
|
|---|
| 6 | #include "bnctime.h"
|
|---|
| 7 | #include "t_prn.h"
|
|---|
| 8 | #include "satObs.h"
|
|---|
| 9 | #include "bncutils.h"
|
|---|
| 10 |
|
|---|
| 11 | namespace BNC_PPP {
|
|---|
| 12 |
|
|---|
| 13 | class t_astro {
|
|---|
| 14 | public:
|
|---|
| 15 | static ColumnVector Sun(double Mjd_TT);
|
|---|
| 16 | static ColumnVector Moon(double Mjd_TT);
|
|---|
| 17 | static Matrix rotX(double Angle);
|
|---|
| 18 | static Matrix rotY(double Angle);
|
|---|
| 19 | static Matrix rotZ(double Angle);
|
|---|
| 20 |
|
|---|
| 21 | private:
|
|---|
| 22 | static const double RHO_DEG;
|
|---|
| 23 | static const double RHO_SEC;
|
|---|
| 24 | static const double MJD_J2000;
|
|---|
| 25 |
|
|---|
| 26 | static double GMST(double Mjd_UT1);
|
|---|
| 27 | static Matrix NutMatrix(double Mjd_TT);
|
|---|
| 28 | static Matrix PrecMatrix (double Mjd_1, double Mjd_2);
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | class t_tides {
|
|---|
| 32 | public:
|
|---|
| 33 | t_tides() {
|
|---|
| 34 | _lastMjd = 0.0;
|
|---|
| 35 | _rSun = 0.0;
|
|---|
| 36 | _rMoon = 0.0;
|
|---|
| 37 | }
|
|---|
| 38 | ~t_tides() {}
|
|---|
| 39 | ColumnVector displacement(const bncTime& time, const ColumnVector& xyz);
|
|---|
| 40 | private:
|
|---|
| 41 | double _lastMjd;
|
|---|
| 42 | ColumnVector _xSun;
|
|---|
| 43 | ColumnVector _xMoon;
|
|---|
| 44 | double _rSun;
|
|---|
| 45 | double _rMoon;
|
|---|
| 46 | };
|
|---|
| 47 |
|
|---|
| 48 | class t_windUp {
|
|---|
| 49 | public:
|
|---|
| 50 | t_windUp();
|
|---|
| 51 | ~t_windUp() {};
|
|---|
| 52 | double value(const bncTime& etime, const ColumnVector& rRec, t_prn prn,
|
|---|
| 53 | const ColumnVector& rSat);
|
|---|
| 54 | private:
|
|---|
| 55 | double lastEtime[t_prn::MAXPRN+1];
|
|---|
| 56 | double sumWind[t_prn::MAXPRN+1];
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 | class t_tropo {
|
|---|
| 60 | public:
|
|---|
| 61 | static double delay_saast(const ColumnVector& xyz, double Ele);
|
|---|
| 62 | };
|
|---|
| 63 |
|
|---|
| 64 | class t_iono {
|
|---|
| 65 | public:
|
|---|
| 66 | t_iono();
|
|---|
| 67 | ~t_iono();
|
|---|
| 68 | double stec(const t_vTec* vTec, double signalPropagationTime,
|
|---|
| 69 | const ColumnVector& rSat, const bncTime& epochTime,
|
|---|
| 70 | const ColumnVector& xyzSta);
|
|---|
| 71 | private:
|
|---|
| 72 | double vtecSingleLayerContribution(const t_vTecLayer& vTecLayer);
|
|---|
| 73 | void piercePoint(double layerHeight, double epoch, const double* geocSta,
|
|---|
| 74 | double sphEle, double sphAzi);
|
|---|
| 75 | double _psiPP;
|
|---|
| 76 | double _phiPP;
|
|---|
| 77 | double _lambdaPP;
|
|---|
| 78 | double _lonS;
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | };
|
|---|
| 82 |
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | #endif
|
|---|