1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
use crate::;
/*
**
** Earth reference ellipsoids.
**
** Given:
** n int ellipsoid identifier (Note 1)
**
** Returned:
** a double equatorial radius (meters, Note 2)
** f double flattening (Note 2)
**
** Returned (function value):
** int status: 0 = OK
** -1 = illegal identifier (Note 3)
**
** Notes:
**
** 1) The identifier n is a number that specifies the choice of
** reference ellipsoid. The following are supported:
**
** n ellipsoid
**
** 1 ERFA_WGS84
** 2 ERFA_GRS80
** 3 ERFA_WGS72
**
** The n value has no significance outside the ERFA software. For
** convenience, symbols ERFA_WGS84 etc. are defined in erfam.h.
**
** 2) The ellipsoid parameters are returned in the form of equatorial
** radius in meters (a) and flattening (f). The latter is a number
** around 0.00335, i.e. around 1/298.
**
** 3) For the case where an unsupported n value is supplied, zero a and
** f are returned, as well as error status.
**
** References:
**
** Department of Defense World Geodetic System 1984, National
** Imagery and Mapping Agency Technical Report 8350.2, Third
** Edition, p3-2.
**
** Moritz, H., Bull. Geodesique 66-2, 187 (1992).
**
** The Department of Defense World Geodetic System 1972, World
** Geodetic System Committee, May 1974.
**
** Explanatory Supplement to the Astronomical Almanac,
** P. Kenneth Seidelmann (ed), University Science Books (1992),
** p220.
**
*/