EOPPrediction.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
43 #ifndef CLASS_EOPPREDICTION_INCLUDE
44 #define CLASS_EOPPREDICTION_INCLUDE
45 
46 //------------------------------------------------------------------------------------
47 // system includes
48 #include <iomanip>
49 #include <iostream>
50 #include <string>
51 // GNSSTk
52 #include "EarthOrientation.hpp"
53 #include "Exception.hpp"
54 
55 //------------------------------------------------------------------------------------
56 namespace gnsstk
57 {
58 
82  {
83  private:
88  double tv;
90  double ta, tb;
92  double A, B, C1, C2, D1, D2, E, F, G1, G2, H1, H2, I, J, K1, K2, K3, K4,
93  L1, L2, L3, L4;
95  double P1, P2, Q1, Q2, R1, R2, R3, R4;
96 
97  public:
102  int TAIUTC;
104  int SerialNo;
106  std::string Info;
107 
112  int getValidTime() const { return int(tv + 0.5); }
113 
120  int loadFile(const std::string& filename);
121 
129  static int getSerialNumber(int mjd);
130 
138  EarthOrientation computeEOP(int& imjd) const
139  {
140  double dmjd(static_cast<double>(imjd));
141  return computeEOP(dmjd);
142  }
143 
150  EarthOrientation computeEOP(double& mjd) const;
151 
157  friend std::ostream& operator<<(std::ostream& os,
158  const EOPPrediction& eopp);
159 
160  }; // end class EOPPrediction
161 
162 } // end namespace gnsstk
163 
164 #endif // CLASS_EOPPREDICTION_INCLUDE
gnsstk::EOPPrediction::K1
double K1
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::Q1
double Q1
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::R4
double R4
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::L1
double L1
Definition: EOPPrediction.hpp:93
example6.mjd
mjd
Definition: example6.py:102
gnsstk::EOPPrediction::H2
double H2
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::Info
std::string Info
information, including the MJD of generation of these parameters.
Definition: EOPPrediction.hpp:106
gnsstk::EOPPrediction::tv
double tv
Definition: EOPPrediction.hpp:88
gnsstk::EOPPrediction::G2
double G2
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::L2
double L2
Definition: EOPPrediction.hpp:93
gnsstk::EOPPrediction::F
double F
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::C1
double C1
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::A
double A
parameters used in the formulas
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::loadFile
int loadFile(const std::string &filename)
Definition: EOPPrediction.cpp:56
gnsstk::EOPPrediction::P2
double P2
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::I
double I
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::K4
double K4
Definition: EOPPrediction.hpp:92
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::EOPPrediction::tb
double tb
Definition: EOPPrediction.hpp:90
gnsstk::EOPPrediction::computeEOP
EarthOrientation computeEOP(int &imjd) const
Definition: EOPPrediction.hpp:138
gnsstk::EOPPrediction::J
double J
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::SerialNo
int SerialNo
the number used in the file name 'EOPP<SN>.txt'
Definition: EOPPrediction.hpp:104
gnsstk::EOPPrediction::E
double E
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::R1
double R1
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::getValidTime
int getValidTime() const
Definition: EOPPrediction.hpp:112
gnsstk::EOPPrediction::ta
double ta
reference times (MJD) used in the formulas
Definition: EOPPrediction.hpp:90
gnsstk::EOPPrediction::G1
double G1
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::D2
double D2
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::Q2
double Q2
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::L4
double L4
Definition: EOPPrediction.hpp:93
gnsstk::EOPPrediction::H1
double H1
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::C2
double C2
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::K3
double K3
Definition: EOPPrediction.hpp:92
Exception.hpp
EarthOrientation.hpp
gnsstk::EOPPrediction::getSerialNumber
static int getSerialNumber(int mjd)
Definition: EOPPrediction.cpp:216
gnsstk::EOPPrediction::R2
double R2
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::P1
double P1
more parameters used in the formulas
Definition: EOPPrediction.hpp:95
gnsstk::EOPPrediction::TAIUTC
int TAIUTC
Definition: EOPPrediction.hpp:102
gnsstk::EOPPrediction::L3
double L3
Definition: EOPPrediction.hpp:93
gnsstk::EOPPrediction::R3
double R3
Definition: EOPPrediction.hpp:95
gnsstk::EarthOrientation
Definition: EarthOrientation.hpp:93
gnsstk::EOPPrediction::operator<<
friend std::ostream & operator<<(std::ostream &os, const EOPPrediction &eopp)
gnsstk::EOPPrediction
Definition: EOPPrediction.hpp:81
gnsstk::EOPPrediction::D1
double D1
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::B
double B
Definition: EOPPrediction.hpp:92
gnsstk::EOPPrediction::K2
double K2
Definition: EOPPrediction.hpp:92


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39