vpgl_earth_constants.h
Go to the documentation of this file.
1 #ifndef VPGL_EARTH_CONSTANTS_H
2 #define VPGL_EARTH_CONSTANTS_H
3 //-----------------------------------------------------------------------------
4 //
5 // \file
6 // \brief Spheroid definitions for various standards
7 // \author J. L. Mundy
8 // \date December 31, 2005
9 //
10 // JLM - note the Earth constants are in meters
11 //===========================================================================
12 #include <vnl/vnl_math.h>
13 
14 /* MATH CONSTANTS */
15 #define DEGREES_TO_RADIANS (vnl_math::pi_over_180)
16 #define RADIANS_TO_DEGREES (vnl_math::deg_per_rad)
17 
18 /* EARTH CONSTANTS */
19 /* GRS-80 */
20 #define GRS80_a 6378137.0
21 #define GRS80_b 6356752.3
22 #define GRS80_e 0.08181921805
23 
24 /* NAD 1927; Same as Clarke 1866 */
25 #define NAD27_a 6378206.4
26 #define NAD27_e 8.227185424e-02
27 
28 #define EARTH_GM 3.98601e+14
29 #define SIDEREAL_DAY 86400.0
30 
31 #define METERS_TO_FEET 3.280839895
32 #define FEET_TO_METERS (1.0/3.280839895)
33 
34 #endif //VPGL_EARTH_CONSTANTS_H