ASConstant.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: ASConstant.hpp 2457 2010-08-18 14:20:12Z coandrei $"
00002 
00003 #ifndef GPSTK_ASCONSTANT_HPP
00004 #define GPSTK_ASCONSTANT_HPP
00005 
00006 //============================================================================
00007 //
00008 //  This file is part of GPSTk, the GPS Toolkit.
00009 //
00010 //  The GPSTk is free software; you can redistribute it and/or modify
00011 //  it under the terms of the GNU Lesser General Public License as published
00012 //  by the Free Software Foundation; either version 2.1 of the License, or
00013 //  any later version.
00014 //
00015 //  The GPSTk is distributed in the hope that it will be useful,
00016 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 //  GNU Lesser General Public License for more details.
00019 //
00020 //  You should have received a copy of the GNU Lesser General Public
00021 //  License along with GPSTk; if not, write to the Free Software Foundation,
00022 //  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023 //
00024 //  Wei Yan - Chinese Academy of Sciences . 2009, 2010
00025 //
00026 //============================================================================
00027 
00028 
00029 #include <string>
00030 #include <cmath>
00031 
00032 namespace gpstk
00033 {
00034 
00038    namespace ASConstant
00039    {
00040       //* Physical Const
00041       //=======================================================================
00042 
00044       static const double SPEED_OF_LIGHT = 299792458.0;
00045 
00047       static const double AU = 149597870000.0;      // [m]
00048 
00049 
00050 
00051 
00052       //* Math Const
00053       //=========================================================================
00054 
00055       static const double PI = 3.14159265358979323846264338327950288419716939937511;
00056 
00057       static const double TWO_PI = 6.28318530717958647692528676655900576839433879875022;
00058       
00059       //static const double E = 2.71828182845904523536028747135266249775724709369996;
00060 
00061 
00062       // Time Constant
00063       //=================================================================================
00064       
00065       static const double JD_MJD_OFFSET = 2400000.5;    // Vallado page 187
00066 
00067       static const double MJD_J2000 = 51544.5;           //Modified Julian Date of the J2000 Epoch.
00068      
00069          
00071       static const double MU = 398600.4415;
00072       
00074       static const double J2 = 0.00108263;
00075 
00077       static const double G0 = -9.780;
00078 
00080       static const double re = 6378.137;               // radius of earth in kilometers
00081          
00083       static const double h_0 = 920000.0;              // atmosphere model parameter
00084          
00086       static const double rho_0 = 4.36E-14;            // atmosphere model parameter
00087       
00089       static const double gamma_0 = 5.381E-06;         // atmosphere model parameter
00090 
00092       //static const double omega_e = 7.2921157746E-05;   // earth rotation rate
00093       static const double omega_e = 7.292115E-05;         // IERS 1996 conventions
00094       //static const double omega_e = 7.2921158553E-05;   // Vallado
00095 
00097       static const double R_Earth = 6378.137e3;      // Radius Earth [m]; WGS-84
00098       
00100       static const double f_Earth = 1.0/298.257223563; // Flattening; WGS-84
00101 
00102 
00104       static const double R_Sun  = 696.0e6;//6.9599e8;            // [m] STK
00105          
00107       static const double R_Moon  = 1738000;//6.9599e8;            // [m] STK
00108 
00110       static const double P_Sol      = 4.560E-6;          // [N/m^2] (~1367 W/m^2); IERS 96
00111 
00112 
00114       static const double GM_Earth   = 3.986004415e14;    // [m^3/s^2]; JGM3
00115 
00117       static const double GM_WGS84    = 398600.5e+9;    // [m^3/s^2]; JGM3
00119       static const double WE_WGS84 = 7.2921151467E-05;  // earth rotation rate
00120 
00122       //static const double GM_Sun      = 1.32712438e+20;    // [m^3/s^2]; IAU 1976
00123       static const double GM_Sun      = 1.3271250e20;//1.3271220e+20;    // [m^3/s^2]; STK
00124 
00126       //static const double GM_Moon     = GM_Earth/81.300587;// [m^3/s^2]; DE200
00127       static const double GM_Moon     = 4.9027890e12;//4.90279490e+12;    // [m^3/s^2]; STK
00128       //public final static double GM_Moon     = GM_Earth*0.012300034;    // [m^3/s^2]; JPL ssd
00129 
00131       static const double EPS = 23.43929111;
00132 
00133    };
00134 
00135 }  // End of 'namespace gpstk'
00136 
00137 #endif //GNSSTK_ASCONSTANT_HPP
00138 
00139 

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