JGM3GravityModel.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: JGM3GravityModel.hpp 2457 2010-08-18 14:20:12Z coandrei $"
00002 
00008 #ifndef GPSTK_JGM3_GRAVITY_MODEL_HPP
00009 #define GPSTK_JGM3_GRAVITY_MODEL_HPP
00010 
00011 
00012 //============================================================================
00013 //
00014 //  This file is part of GPSTk, the GPS Toolkit.
00015 //
00016 //  The GPSTk is free software; you can redistribute it and/or modify
00017 //  it under the terms of the GNU Lesser General Public License as published
00018 //  by the Free Software Foundation; either version 2.1 of the License, or
00019 //  any later version.
00020 //
00021 //  The GPSTk is distributed in the hope that it will be useful,
00022 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00023 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024 //  GNU Lesser General Public License for more details.
00025 //
00026 //  You should have received a copy of the GNU Lesser General Public
00027 //  License along with GPSTk; if not, write to the Free Software Foundation,
00028 //  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00029 //
00030 //  Wei Yan - Chinese Academy of Sciences . 2009, 2010
00031 //
00032 //============================================================================
00033 
00034 
00035 #include "SphericalHarmonicGravity.hpp"
00036 
00037 namespace gpstk
00038 {
00041 
00044    class JGM3GravityModel : public SphericalHarmonicGravity
00045    {
00046    public:
00048       JGM3GravityModel(int n = 20, int m = 20) 
00049          : SphericalHarmonicGravity(n, m)
00050       {
00051          gmData.modelName = "JGM3";
00052 
00053          gmData.GM = 3.98600441500e+14;
00054          gmData.refDistance = 6378136.300000;
00055 
00056          gmData.includesPermTide = true;
00057 
00058          gmData.refMJD = 46431.0;
00059          gmData.dotC20 = 0.0000000000E-11;
00060          gmData.dotC21 = 0.0000000000E-11;
00061          gmData.dotS21 = 0.0000000000E-11;
00062 
00063          gmData.maxDegree = 70;
00064          gmData.maxOrder = 70;
00065 
00066          gmData.unnormalizedCS.resize(71, 71);
00067          gmData.unnormalizedCS = &gmcs[0][0];
00068 
00069       };
00070 
00072       virtual ~JGM3GravityModel(){};
00073 
00074 
00075       virtual void initialize(){};
00076 
00077    private:
00078 
00085       static const double gmcs[71][71];      // it's unnormalized
00086 
00087    }; // End of class 'JGM3'
00088 
00089       // @}
00090 
00091 }  // End of namespace 'gpstk'
00092 
00093 #endif   // GPSTK_JGM3_GRAVITY_MODEL_HPP
00094 
00095 
00096 
00097 

Generated on Tue May 22 03:30:59 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1