core/vpgl/vpgl_earth_constants.h
Go to the documentation of this file.
00001 #ifndef VPGL_EARTH_CONSTANTS_H
00002 #define VPGL_EARTH_CONSTANTS_H
00003 //-----------------------------------------------------------------------------
00004 //
00005 // \file
00006 // \brief Spheroid definitions for various standards
00007 // \author J. L. Mundy
00008 // \date December 31, 2005
00009 //
00010 //   JLM - note the Earth constants are in meters
00011 //===========================================================================
00012 #include <vnl/vnl_math.h>
00013 
00014 /* MATH CONSTANTS */
00015 #define DEGREES_TO_RADIANS (vnl_math::pi_over_180)
00016 #define RADIANS_TO_DEGREES (vnl_math::deg_per_rad)
00017 
00018 /* EARTH CONSTANTS */
00019 /* GRS-80 */
00020 #define GRS80_a 6378137.0
00021 #define GRS80_b 6356752.3
00022 #define GRS80_e 0.08181921805
00023 
00024 /* NAD 1927; Same as Clarke 1866 */
00025 #define NAD27_a 6378206.4
00026 #define NAD27_e 8.227185424e-02
00027 
00028 #define EARTH_GM 3.98601e+14
00029 #define SIDEREAL_DAY 86400.0
00030 
00031 #define METERS_TO_FEET 3.280839895
00032 #define FEET_TO_METERS (1.0/3.280839895)
00033 
00034 #endif //VPGL_EARTH_CONSTANTS_H
00035