OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
constants.h
Go to the documentation of this file.
1 //constants.h
2 
3 #ifndef CONSTANTS_H
4 #define CONSTANTS_H
5 
7 
8 const double PI = 3.14159265;
9 const double FOURTHPI = PI / 4;
10 const double deg2rad = PI / 180;
11 const double rad2deg = 180.0 / PI;
12 
13 static Ellipsoid ellipsoid[] ={// id, Ellipsoid name, Equatorial Radius, square of eccentricity
14  Ellipsoid(-1, "Placeholder", 0, 0), //placeholder only, To allow array indices to match id numbers
15  Ellipsoid(1, "Airy", 6377563, 0.00667054),
16  Ellipsoid(2, "Australian National", 6378160, 0.006694542),
17  Ellipsoid(3, "Bessel 1841", 6377397, 0.006674372),
18  Ellipsoid(4, "Bessel 1841 (Nambia) ", 6377484, 0.006674372),
19  Ellipsoid(5, "Clarke 1866", 6378206, 0.006768658),
20  Ellipsoid(6, "Clarke 1880", 6378249, 0.006803511),
21  Ellipsoid(7, "Everest", 6377276, 0.006637847),
22  Ellipsoid(8, "Fischer 1960 (Mercury) ", 6378166, 0.006693422),
23  Ellipsoid(9, "Fischer 1968", 6378150, 0.006693422),
24  Ellipsoid(10, "GRS 1967", 6378160, 0.006694605),
25  Ellipsoid(11, "GRS 1980", 6378137, 0.00669438),
26  Ellipsoid(12, "Helmert 1906", 6378200, 0.006693422),
27  Ellipsoid(13, "Hough", 6378270, 0.00672267),
28  Ellipsoid(14, "International", 6378388, 0.00672267),
29  Ellipsoid(15, "Krassovsky", 6378245, 0.006693422),
30  Ellipsoid(16, "Modified Airy", 6377340, 0.00667054),
31  Ellipsoid(17, "Modified Everest", 6377304, 0.006637847),
32  Ellipsoid(18, "Modified Fischer 1960", 6378155, 0.006693422),
33  Ellipsoid(19, "South American 1969", 6378160, 0.006694542),
34  Ellipsoid(20, "WGS 60", 6378165, 0.006693422),
35  Ellipsoid(21, "WGS 66", 6378145, 0.006694542),
36  Ellipsoid(22, "WGS-72", 6378135, 0.006694318),
37  Ellipsoid(23, "WGS-84", 6378137, 0.00669438)
38 };
39 
40 #endif
const double rad2deg
Definition: constants.h:11
const double FOURTHPI
Definition: constants.h:9
const double deg2rad
Definition: constants.h:10
const double PI
Definition: constants.h:8