10#if !defined(GEOGRAPHICLIB_GRAVITYMODEL_HPP)
11#define GEOGRAPHICLIB_GRAVITYMODEL_HPP 1
20# pragma warning (push)
21# pragma warning (disable: 4251)
87 static const int idlength_ = 8;
88 std::string _name, _dir, _description, _date, _filename, _id;
89 real _amodel, _gGMmodel, _zeta0, _corrmult;
93 std::vector<real> _cCx, _sSx, _cCC, _cCS, _zonal;
98 void ReadMetadata(
const std::string& name);
100 real& deltaX, real& deltaY, real& deltaZ,
101 bool gradp,
bool correct)
const;
110 CAP_DELTA = 1U<<2 | CAP_T,
139 DISTURBANCE = CAP_DELTA,
145 DISTURBING_POTENTIAL = CAP_T,
150 SPHERICAL_ANOMALY = CAP_DELTA | CAP_GAMMA,
155 GEOID_HEIGHT = CAP_T | CAP_C | CAP_GAMMA0,
194 const std::string& path =
"",
195 int Nmax = -1,
int Mmax = -1);
338 real& deltaX, real& deltaY, real& deltaZ)
const
339 {
return InternalT(X, Y, Z, deltaX, deltaY, deltaZ,
true,
true); }
352 return InternalT(X, Y, Z, dummy, dummy, dummy,
false,
true);
375 real& gammaX, real& gammaY, real& gammaZ)
const
376 {
return _earth.
U(X, Y, Z, gammaX, gammaY, gammaZ); }
393 {
return _earth.
Phi(X, Y, fX, fY); }
452 const std::string&
DateTime()
const {
return _date; }
523 static std::string DefaultGravityPath();
534 static std::string DefaultGravityName();
540# pragma warning (pop)
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::NormalGravity class.
Header for GeographicLib::SphericalHarmonic1 class.
Header for GeographicLib::SphericalHarmonic class.
Gravity on a circle of latitude.
Model of the earth's gravity field.
Math::real ReferenceMassConstant() const
Math::real Flattening() const
Math::real T(real X, real Y, real Z, real &deltaX, real &deltaY, real &deltaZ) const
Math::real MassConstant() const
const std::string & GravityModelName() const
const std::string & GravityModelDirectory() const
const std::string & GravityFile() const
Math::real EquatorialRadius() const
Math::real Phi(real X, real Y, real &fX, real &fY) const
const std::string & Description() const
const std::string & DateTime() const
Math::real U(real X, real Y, real Z, real &gammaX, real &gammaY, real &gammaZ) const
Math::real T(real X, real Y, real Z) const
Math::real AngularVelocity() const
const NormalGravity & ReferenceEllipsoid() const
The normal gravity of the earth.
Math::real EquatorialRadius() const
Math::real Flattening() const
Math::real AngularVelocity() const
Math::real Phi(real X, real Y, real &fX, real &fY) const
Math::real MassConstant() const
Math::real U(real X, real Y, real Z, real &gammaX, real &gammaY, real &gammaZ) const
Spherical harmonic series with a correction to the coefficients.
Spherical harmonic series.
Namespace for GeographicLib.