PZ90Ellipsoid.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 
44 #ifndef GNSSTK_PZ90ELLIPSOID_HPP
45 #define GNSSTK_PZ90ELLIPSOID_HPP
46 
47 #include "EllipsoidModel.hpp"
48 
49 namespace gnsstk
50 {
52 
53 
55  {
56  public:
57 
60  virtual double a() const noexcept
61  { return 6378136.0; }
62 
65  virtual double a_km() const noexcept
66  { return a() / 1000.0; }
67 
72  virtual double flatteningInverse() const noexcept
73  { return 298.25784; }
74 
80  virtual double flattening() const noexcept
81  { return 3.35280373518e-3; }
82 
83  // The eccentricity and eccSquared values were computed from the
84  // flattening value via the formula:
85  // ecc2 = 1 - (1 - f)^2 = f*(2.0 - f)
86  // ecc = sqrt(ecc2)
88  virtual double eccentricity() const noexcept
89  { return 8.1819106432923e-2; }
90 
92  virtual double eccSquared() const noexcept
93  { return 6.69436617748e-3; }
94 
97  virtual double angVelocity() const noexcept
98  { return 7.292115e-5; }
99 
102  virtual double gm() const noexcept
103  { return 398600.4418e9; }
104 
107  virtual double gm_km() const noexcept
108  { return 398600.4418; }
109 
112  virtual double c() const noexcept
113  { return 299792458; }
114 
117  virtual double c_km() const noexcept
118  { return c()/1000.0; }
119 
122  virtual double j20() const noexcept
123  { return (-1.08262575e-3); }
124 
126  virtual ~PZ90Ellipsoid() noexcept {};
127 
128  }; // End of class 'PZ90Ellipsoid'
129 
131 
132 } // End of namespace gnsstk
133 
134 #endif // GNSSTK_PZ90ELLIPSOID_HPP
const
#define const
Definition: getopt.c:43
gnsstk::PZ90Ellipsoid::a
virtual double a() const noexcept
Definition: PZ90Ellipsoid.hpp:60
gnsstk::PZ90Ellipsoid::a_km
virtual double a_km() const noexcept
Definition: PZ90Ellipsoid.hpp:65
gnsstk::PZ90Ellipsoid::c_km
virtual double c_km() const noexcept
Definition: PZ90Ellipsoid.hpp:117
gnsstk::PZ90Ellipsoid::angVelocity
virtual double angVelocity() const noexcept
Definition: PZ90Ellipsoid.hpp:97
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::PZ90Ellipsoid::flattening
virtual double flattening() const noexcept
Definition: PZ90Ellipsoid.hpp:80
gnsstk::PZ90Ellipsoid::j20
virtual double j20() const noexcept
Definition: PZ90Ellipsoid.hpp:122
gnsstk::PZ90Ellipsoid::eccentricity
virtual double eccentricity() const noexcept
Definition: PZ90Ellipsoid.hpp:88
gnsstk::PZ90Ellipsoid::c
virtual double c() const noexcept
Definition: PZ90Ellipsoid.hpp:112
gnsstk::PZ90Ellipsoid::gm_km
virtual double gm_km() const noexcept
Definition: PZ90Ellipsoid.hpp:107
gnsstk::PZ90Ellipsoid::flatteningInverse
virtual double flatteningInverse() const noexcept
Definition: PZ90Ellipsoid.hpp:72
gnsstk::PZ90Ellipsoid::~PZ90Ellipsoid
virtual ~PZ90Ellipsoid() noexcept
Destructor.
Definition: PZ90Ellipsoid.hpp:126
gnsstk::PZ90Ellipsoid::gm
virtual double gm() const noexcept
Definition: PZ90Ellipsoid.hpp:102
gnsstk::PZ90Ellipsoid
Definition: PZ90Ellipsoid.hpp:54
gnsstk::EllipsoidModel
Definition: EllipsoidModel.hpp:56
gnsstk::PZ90Ellipsoid::eccSquared
virtual double eccSquared() const noexcept
Definition: PZ90Ellipsoid.hpp:92
EllipsoidModel.hpp


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