10.1515 - Jogs 2020 0126
10.1515 - Jogs 2020 0126
10.1515 - Jogs 2020 0126
2021; 11:111–121
where
1 Introduction B = cos2 β +
E2e
sin2 β (4)
E2x
Ellipsoidal coordinates, as a triply orthogonal coordi- and
nate system, have the advantage of decomposing the E2e
L =1− cos2 λ (5)
Laplace partial differential equation into separable func- E2x
tions. Thus, these coordinates are particularly valuable in while
potential theory. Also, the coordinate surface of a triax- 12 21 12
ial ellipsoid, that fits the physical boundary of a problem, E x = a2x − b2 , E y = a2y − b2 , E e = a2x − a2y ,
helps to express a boundary condition in a simple way. (6)
For instance, one may use ellipsoidal coordinates in the are the linear eccentricities (obviously E2e = E2x − E2y ) of the
gravity field which has a triaxial ellipsoid as a level sur- triaxial ellipsoid (u = b):
face. Other examples of the use of these coordinates can
be found in Dassios (2012). x2 y2 z2
+ + = 1, 0 < b < a y < a x (7)
a2x a2y b2
G. Panou: Department of Surveying Engineering, National where a x , a y and b are its three semi-axes.
Technical University of Athens, 15780 Athens, Greece, E-mail:
The geometrical interpretation of these ellipsoidal co-
geopanou@survey.ntua.gr
R. Korakitis: Department of Surveying Engineering, National Techni-
ordinates is given by Panou (2014). Specifically, the ellip-
cal University of Athens, 15780 Athens soidal parameter u is the polar semi-axis of the confocal el-
Open Access. © 2021 G. Panou and R. Korakitis, published by De Gruyter. This work is licensed under the Creative Commons
Attribution alone 4.0 License.
112 | G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates
lipsoid which passes through the point (x, y, z). The ellip- the conversion, the conventions with regard to the proper
soidal latitude β represents the inclination of the asymp- quadrant for the β and λ need to be applied from the signs
totes of the confocal principal hyperbola on the plane x = of x, y, and z. Furthermore, in order to ensure the precision
0. The ellipsoidal longitude λ represents the inclination of the numerical computations, we use functions which
of the asymptotes of the confocal principal hyperbola on are continuous and without singularities within their do-
the plane z = 0. In the case of an oblate spheroid, where main of use and beyond their endpoints if possible, e.g.
a x = a y ≡ a, i.e. E x = E y ≡ E and E e = 0, Eqs. (1)- using absolute values and variants of functions for differ-
(3) reduce to well-known expressions (see Heiskanen and ent domains of space.
Moritz 1967). From Eqs. (2) and (3), we obtain
In the case where u = b, i.e. for points located on the
sin2 λ
surface of a triaxial ellipsoid, Eqs. (1)-(3) reduce to well- tan2 β = M (8)
L
known expressions introduced by Jacobi (1839). These
curvilinear ellipsoidal coordinates (β, λ) constitute an or- and from Eqs. (1) and (2)
thogonal net of curves on the surface of a triaxial ellip-
B
soid, therefore they eliminate cumbersome mathematical tan2 λ = P (9)
cos2 β
expressions for problems like the study of geodesics (e.g.
Panou and Korakitis 2019) and for simple determinations, where
z2 u2 + E2y
such as the surface area. Thus, the problem of converting M= · (10)
y2 u2
the Cartesian coordinates (x, y, z) of a point on the sur-
face of a triaxial ellipsoid to the corresponding ellipsoidal and
y2 u2 + E2x
coordinates (β, λ) is of special importance. For the solu- P= · (11)
x2 u2 + E2y
tion of this problem, an exact analytical and a numerical
method were developed by Panou and Korakitis (2019). In Inverting Eqs. (8)-(11) results to
that work, an extensive test set was used, in order to eval- L
uate the performance of the two methods in double and cot2 β = N (12)
sin2 λ
quad precision. These numerical validations using points
on the surface of the triaxial ellipsoid gave results bet- and
cos2 β
ter than 1 mm for double and 1 nm for quad precision. cot2 λ = Q (13)
B
We should also mention another numerical method which where
was developed by Bektas (2015) and was used in the works y2 u2
N = M −1 = 2
· 2 (14)
of Florinsky (2018) and Pędzich (2019). z u + E2y
In the present work, we attempt to solve the prob- and
lem of converting the Cartesian coordinates (x, y, z) of a x2 u2 + E2y
Q = P−1 = · (15)
point in space to the corresponding ellipsoidal coordinates y2 u2 + E2x
(u, β, λ), using two analytical and two numerical meth- Hence, from Eqs. (8) and (9), we have
ods. In Section 2.1., we present a modification of the ex-
" 1 #
act analytical method described by Panou (2014) with a −1 M 2
change of variable in the relevant cubic equation. In Sec- β = tan sinλ (16)
L
tion 2.2., a new exact analytical method is developed. In
1
" #
Section 3., the numerical methods, developed by Bektas −1 (PB) 2
(2015) and Panou and Korakitis (2019), are generalized for λ = tan (17)
cosβ
points in space (not only located on the surface). Thus,
the coordinate u is needed in the development of the rele- and from Eqs. (12) and (13)
vant algorithms. Finally, both a theoretical and a numeri- " 1
−1 ( NL ) 2
#
π
cal comparative assessment of the four methods is made, β = − tan (18)
2 sinλ
mainly in terms of the accuracy of the resulting ellipsoidal
coordinates. " 1 #
π Q 2
In the remainder of this section, we present the re- λ = − tan−1 cosβ (19)
2 B
quired mathematical formulas for the development of the
methods. Also, for simplicity and without loss of general-
ity, we always assume x ≥ 0, y ≥ 0 and z ≥ 0. Hence, after
G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates | 113
and
2 Analytical methods ! 21
−1 −E2y − t3
λ = tan , if | − E2y − t3 | ≤ |E2x + t2 | (34)
2.1 Case of a triaxial ellipsoid only E2x + t3
or
The ellipsoidal coordinates (u, β, λ) can be obtained from ! 12
the Cartesian coordinates (x, y, z) of a point in space by π E2x + t3
λ = −tan−1 , if |−E2y −t3 | > |E2x +t3 | (35)
solving the following cubic equation in t 2 −E2y − t3
In the case of an oblate spheroid, where E x = E y ≡ E
t3 + c2 t2 + c1 t + c0 = 0 (20)
and therefore t3 = −E2 , the ellipsoidal longitude cannot
where be computed either from Eq. (34) or Eq. (35). Therefore, we
c2 = E2x + E2y − x2 − y2 − z2 (21) cannot avoid the degeneracy of the variable t3 for an oblate
spheroid, thus Eq. (34) or Eq. (35) produce inaccurate re-
c1 = E2x E2y − E2y x2 − E2x y2 − E2x + E2y z2 (22) sults in the case of an almost oblate spheroid. In addition,
the operations for the computation of ellipsoidal latitude
c0 = −E2x E2y z2 (23)
and longitude lead to a loss of precision for points near
Comparing Eq. (20) with the corresponding equation the principal planes (x = 0 or y = 0 or z = 0). All these rea-
presented by Panou (2014), the two cubic equations are sons constitute the motivation for the development of the
related with the transformation s = t − b2 . Here, the coef- following analytical method which uses different mathe-
ficients are expressed in terms of the linear eccentricities matical formulas for such computations. However, for the
and thus keep the magnitude to a moderate size. Also, Eq. development of all other methods of converting Cartesian
(20) has three real roots, which are distributed as follows to ellipsoidal coordinates which will be presented, the el-
lipsoidal parameter u is considered known, as computed
− E2x ≤ t3 ≤ − E2y ≤ t2 ≤ 0 ≤ t1 < +∞ (24) from Eq. (31).
Table 1. Description of the points in the test set (total 7023 points)
𝑏𝑏 1.0° − 0.0 … 1° up to 14
7 B2.1 , 𝑏𝑏, 2𝑏𝑏 0° − 90° every 5° 855
2 decimals
near 𝑥𝑥𝑥𝑥 − plane
𝑏𝑏 89.0° − 89.9 … 9° up to
8 B2.2 , 𝑏𝑏, 2𝑏𝑏 5° − 90° every 5° 810
2 14 decimals
𝑏𝑏 89.0° − 89.9 … 9° up to
9 B3 near 𝑦𝑦𝑦𝑦 − plane , 𝑏𝑏, 2𝑏𝑏 5° − 85° every 5° 765
2 14 decimals
nates x, y and z as input data. From the resulting u′ , β′ and analytical method of Section 2.1. and we recorded the
λ′ at any point, we computed the differences δu = u − u′ , mean and the maximum value of iterations i, which were
δβ = β − β′ and δλ = λ − λ′ , and recorded the maximum needed. As criterion of convergence of the dβ and dλ, the
absolute values, i.e. max |δu| , max |δβ| and max |δλ| for values 10−19 rad and 10−34 rad, for double and quad pre-
every Group. Furthermore, because Eqs. (1)-(3) are numer- cision, respectively, were used.
ically stable, the results at any point were checked
by
All results are presented in Tables 2 to 5, where lengths
comparing the resulting Cartesian coordinates x′ , y′ , z′ δu and δr are expressed in meters and angular quantities
with the original Cartesian coordinates (x, y, z) by the δβ and δλ in arcseconds. Whenever the value of a quantity
simple Euclidean distance formula appears as “0”, this implies that it is less than the corre-
sponding machine precision. Since the values of max |δu|
2 2 2 21
are common in all methods, they appear in Table 2 only.
′ ′ ′
δr = x−x + y−y + z−z (68)
From the values of max |δu| presented in Table 2, we
For every Group, we recorded the maximum value, i.e. conclude that the estimation of u is better than 10−12 m for
maxδr. We remark that only the quantity δr can be com- double and 10−19 m for quad precision (as noted earlier,
puted when starting with knowledge of the Cartesian co- this holds for all methods). On the other hand, comparing
ordinates. the results of max |δβ| , max |δλ| and maxδr, we conclude
Additionally, in the numerical methods we used ap- that only quad precision provides results suitable for most
proximate values of the coordinates β and λ from the practical applications.
G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates | 117
Table 2. Performance of the exact analytical method of Section 2.1., in the case of the Earth, using double and quad precision
double quad
Group
max|𝛿𝛿𝑢𝑢| (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝑢𝑢| (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
1 9.09 · 10−13 6.76 · 10−7 1.40 · 10−4 8.97 · 10−4 4.64 · 10−20 1.20 · 10−21 1.36 · 10−19 8.75 · 10−19
2 9.09 · 10−13 1.61 · 10−2 1.83 · 10−1 11.3 3.99 · 10−20 6.88 · 10−10 4.79 · 10−9 2.96 · 10−7
3 9.09 · 10 −13 40.1 699 18.2 4.99 · 10 −20
9.78 · 10 −3
1.71 · 10 −1
6.71 · 10−7
4 9.09 · 10 −13 2.12 1.24 13.9 4.90 · 10 −20
7.17 · 10 −8
1.47 · 10 −7
7.36 · 10−7
5 9.09 · 10 −13
2.54 · 10 −7
1.66 16.1 4.14 · 10 −20
8.71 · 10 −22
1.00 · 10 −7
7.04 · 10−7
6 9.09 · 10 −13
1.61 · 10 −2
2.83 · 10 −1
17.4 4.98 · 10 −20
6.06 · 10 −10
1.29 · 10 −8
7.94 · 10−7
7 9.09 · 10 −13
40.1 699 18.2 4.99 · 10 −20
1.16 · 10 −2
1.99 · 10 −1
7.72 · 10−7
8 9.09 · 10−13 2.25 4.42 17.8 4.97 · 10−20 1.14 · 10−7 1.78 · 10−7 7.20 · 10−7
9 9.09 · 10−13 3.83 · 10−7 1.66 19.8 4.93 · 10−20 1.06 · 10−21 9.97 · 10−8 7.63 · 10−7
10 9.09 · 10−13 1.44 · 10−2 3.07 · 10−1 19.0 4.97 · 10−20 6.75 · 10−10 1.28 · 10−8 7.91 · 10−7
11 9.09 · 10−13 1.47 · 10−2 2.86 · 10−1 17.6 5.00 · 10−20 6.57 · 10−10 1.10 · 10−8 6.79 · 10−7
12 9.09 · 10−13 2.42 · 10−1 4.42 20.4 5.00 · 10−20 1.32 · 10−8 2.13 · 10−7 8.63 · 10−7
13 9.09 · 10 −13
54.8 920 16.7 4.98 · 10 −20
1.16 · 10 −2
1.99 · 10 −1
7.16 · 10−7
We overemphasize that, the ellipsoidal coordinates The characteristic of the numerical method of Section
are valuable in gravity field related studies and taking into 3.2. is that the coordinates β and λ are computed indepen-
account the current estimates of the related quantities, a dently. Therefore, the worst results are usually observed at
precision better than a millimeter is sufficient. different points.
Comparing the results of max |δβ| , max |δλ| and
maxδr presented in Table 3 between the double and quad
precision, we conclude that both precisions can provide
results suitable for most practical applications (δr better
than 1 cm for double and 10−11 m for quad precision, while
angular coordinates better than 10−4 arcsec for double and
10−8 arcsec for quad precision).
It is worth noting that, in the exact analytical method
of Section 2.2., the one coordinate is computed from the
other. Therefore, the worst results are observed at the same
points.
Comparing the results of max |δβ| , max |δλ| and
maxδr presented in Table 4 between the double and quad
precision, we conclude that only quad precision can pro-
vide results suitable for most practical applications, ex-
cluding the xz-plane and the area near the umbilics.
Equations (46)-(49) may be written using as first ap-
proximate value only the ellipsoidal latitude β0 , i.e. we
first compute λ and then β. Also, these equations may be
written using approximate values for both coordinates β0
and λ0 , as suggested by Bektas (2015). However, in both
cases the results are worse than those of Table 4.
Comparing the results of max |δβ| , max |δλ| and
maxδr presented in Table 5 between the double and quad
precision, we conclude that both precisions can provide
results suitable for most practical applications (δr better
than 10−11 m for double and 10−26 m for quad precision,
Fig. 1. Values of maxδr in log10 scale for every group and method
while angular coordinates better than 10−4 arcsec for dou- in: (top) double precision (bottom) quad precision
ble and 10−8 arcsec for quad precision).
118 | G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates
Table 3. Performance of the exact analytical method of Section 2.2., in the case of the Earth, using double and quad precision
double quad
Group
max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
1 3.75 · 10−14 5.00 · 10−14 3.19 · 10−12 4.78 · 10−22 5.65 · 10−22 4.57 · 10−27
2 0 2.65 · 10−14 1.88 · 10−12 0 3.80 · 10−22 3.23 · 10−27
3 4.24 · 10−6 0 1.29 · 10−12 6.95 · 10−10 8.82 · 10−9 5.78 · 10−12
4 0 1.95 · 10−13 9.58 · 10−13 0 1.06 · 10−20 1.68 · 10−27
5 2.50 · 10−14 0 1.85 · 10−12 3.63 · 10−22 0 3.24 · 10−27
6 1.17 · 10−15 5.00 · 10−14 3.28 · 10−12 1.82 · 10−23 4.39 · 10−22 6.46 · 10−27
7 4.24 · 10−6 3.60 · 10−5 2.22 · 10−4 6.95 · 10−10 8.79 · 10−9 1.17 · 10−12
8 3.60 · 10−7 2.65 · 10−13 2.22 · 10−5 6.66 · 10−17 1.06 · 10−20 4.09 · 10−15
9 2.50 · 10 −14
3.60 · 10 −5 2.21 · 10−3
4.42 · 10 −22
3.79 · 10 −14
2.33 · 10−12
10 3.60 · 10 −6
3.60 · 10 −6
3.14 · 10−4
9.51 · 10 −15 1.89 · 10 −14
1.17 · 10−12
11 3.90 · 10 −16
3.60 · 10 −5
2.22 · 10−3
1.87 · 10 −23
3.79 · 10 −14
2.34 · 10−12
12 3.60 · 10 −7
3.60 · 10 −6
2.56 · 10−5
6.66 · 10 −17
6.66 · 10 −16
4.73 · 10−15
13 4.24 · 10 −6
3.60 · 10 −5
3.88 · 10−6
6.59 · 10 −10
8.79 · 10 −9
2.58 · 10−15
Table 4. Performance of the numerical method (generalized Bektas) of Section 3.1., in the case of the Earth, using double and quad preci-
sion
double quad
Group mean(𝑖𝑖) mean(𝑖𝑖)
max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
/max(𝑖𝑖) /max(𝑖𝑖)
1 2.50 · 10−14 5.00 · 10−14 2.03 · 10−12 8/100 4.78 · 10−22 5.65 · 10−22 4.91 · 10−27 10/150
2 0 2.50 · 10−14 1.88 · 10−12 2/2 0 3.80 · 10−22 2.28 · 10−27 2/2
3 - - - - - - - -
4 - - - - - - - -
5 2.50 · 10−14 0 1.85 · 10−12 3/3 3.63 · 10−22 0 3.24 · 10−27 3/3
6 3.90 · 10−16 2.50 · 10−14 2.03 · 10−12 2/4 1.82 · 10−23 4.39 · 10−22 4.04 · 10−27 2/4
7 2.50 · 10−14 3600 111 2/100 5.11 · 10−22 1.62 · 10−2 7.74 · 10−9 22/150
8 1.15 · 10−4 8.62 · 10−1 2.34 2/100 6.96 · 10−19 1.98 · 10−16 6.09 · 10−17 19/150
9 2.50 · 10−14 2.50 · 10−14 2.10 · 10−12 3/4 4.42 · 10−22 1.62 · 10−23 3.66 · 10−27 3/4
10 1.14 · 10−14 3.90 · 10−16 1.85 · 10−12 4/8 1.47 · 10−23 1.90 · 10−23 3.32 · 10−27 4/9
11 3.90 · 10−16 2.50 · 10−14 2.07 · 10−12 2/3 1.87 · 10−23 1.50 · 10−23 3.55 · 10−27 2/3
12 2.50 · 10−14 3.01 · 10−2 1.06 · 10−1 2/5 1.62 · 10−23 2.00 · 10−23 6.36 · 10−23 2/5
13 3600 919 33067 4/100 3262 1.99 · 10−1 32769 127/150
Comparing the results of all methods of conversion, as As a novel method, we also investigated the perfor-
they are presented in Figure 1, we conclude that only the mance of the exact analytical method of Section 2.2. for the
exact analytical method of Section 2.2. and the numerical two other bodies described in Section 4.1. and the results
method (Panou and Korakitis) of Section 3.2. are adequate are presented in Tables 6 and 7.
to provide excellent results for both precisions. The basic In the case of an almost oblate spheroid (Table 6), the
difference is that, in the numerical method (Table 5), the results of max |δu| are better than 1 · 10−12 m for double
worst results are observed in different points, as indicated and 5 · 10−20 m for quad precision. In this case, the um-
by the values of maxδr, compared with the corresponding bilics are near the z-axis, where the longitude is singular.
values in the analytical method (Table 3).
In Figure 2, we present the values of maxδr for the In the case of the Moon (Table 7), the results of
group 14 of all methods of conversion in the case of the max |δu| are better than 3 · 10−13 m for double and
Earth. We observe that there is a small increase in maxδr 7 · 10−21 m for quad precision.
with increasing u for all methods, except the exact ana- Comparing the results of the analytical method of Sec-
lytical method of Section 2.1., which shows a much bigger tion 2.2. for the three bodies, we observe that this method
deterioration of accuracy with increasing u. provides almost equivalent results for the three bodies, ex-
G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates | 119
Table 5. Performance of the numerical method (generalized Panou and Korakitis) of Section 3.2., in the case of the Earth, using double and
quad precision
double quad
Group mean(𝑖𝑖) mean(𝑖𝑖)
max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
/max(𝑖𝑖) /max(𝑖𝑖)
1 2.50 · 10−14 2.50 · 10−14 1.95 · 10−12 6/30 4.78 · 10−22 5.65 · 10−22 3.64 · 10−27 17/30
2 0 1.25 · 10 −14 1.88 · 10 −12
4/30 0 3.80 · 10 −22
2.28 · 10−27 11/30
3 5.17 · 10−6 7.70 · 10−5 1.29 · 10−12 5/30 6.95 · 10−10 8.82 · 10−9 2.42 · 10−27 12/30
4 0 1.06 · 10−13 9.58 · 10−13 6/30 0 1.06 · 10−20 1.70 · 10−27 14/30
5 1.25 · 10−14 0 1.85 · 10−12 4/30 3.63 · 10−22 0 1.87 · 10−27 11/30
6 3.90 · 10−16 2.50 · 10−14 2.03 · 10−12 4/30 1.82 · 10−23 4.39 · 10−22 4.86 · 10−27 10/30
7 5.17 · 10−6 7.70 · 10−5 2.03 · 10−12 5/30 6.95 · 10−10 8.79 · 10−9 3.61 · 10−27 11/30
8 2.50 · 10−14 4.20 · 10−13 1.83 · 10−12 6/30 1.85 · 10−22 1.06 · 10−20 3.33 · 10−27 19/30
9 2.50 · 10−14 2.50 · 10−14 2.07 · 10−12 4/30 4.42 · 10−22 1.62 · 10−23 3.61 · 10−27 15/30
10 3.90 · 10−16 7.81 · 10−16 2.73 · 10−12 2/3 1.47 · 10−23 1.90 · 10−23 3.23 · 10−27 2/3
11 7.81 · 10−16 2.50 · 10−14 1.92 · 10−12 2/3 1.87 · 10−23 1.50 · 10−23 3.39 · 10−27 8/30
12 2.50 · 10−14 2.50 · 10−14 1.83 · 10−12 3/3 1.62 · 10−23 2.45 · 10−23 3.43 · 10−27 12/30
13 5.17 · 10 −6
7.70 · 10 −5
1.82 · 10 −12
2/30 6.60 · 10 −10
8.79 · 10 −9
3.25 · 10−27 21/30
Table 6. Performance of the exact analytical method of Section 2.2., in the case of an almost oblate spheroid, using double and quad preci-
sion
double quad
Group
max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
1 2.65 · 10−12 1.52 · 10−11 2.67 · 10−12 4.79 · 10−22 5.99 · 10−22 6.27 · 10−27
2 0 2.50 · 10−14 1.74 · 10−12 0 3.87 · 10−22 2.42 · 10−27
3 2.65 · 10−12 1.43 1.29 · 10−12 1.70 · 10−12 1.48 · 10−8 4.04 · 10−27
4 0 5.67 · 10−5 9.63 · 10−13 2.47 · 10−16 7.72 · 10−21 2.73 · 10−15
5 2.50 · 10 −14 0 −12
1.29 · 10 3.47 · 10 −22 0 2.02 · 10−27
6 1.13 · 10 −14
4.50 · 10 −14 −12
2.61 · 10 1.74 · 10 −23
4.33 · 10 −22
6.26 · 10−27
7 2.65 · 10 −12
1.43 2.22 · 10 −4
1.70 · 10 −12
1.47 · 10 −8
1.16 · 10−12
8 6.09 · 10 −9
5.67 · 10 −5 2.22 · 10 −7
1.53 · 10 −21
1.28 · 10 −20
9.11 · 10−20
9 2.50 · 10 −14
3.60 · 10 −5 2.21 · 10 −3
4.54 · 10 −22
3.79 · 10 −14
2.20 · 10−12
10 3.60 · 10−6 3.60 · 10−6 3.14 · 10−4 9.51 · 10−15 1.89 · 10−14 1.17 · 10−12
11 3.90 · 10−16 3.60 · 10−5 2.22 · 10−3 1.90 · 10−23 3.79 · 10−14 2.34 · 10−12
12 3.60 · 10−9 3.60 · 10−6 2.27 · 10−7 1.53 · 10−21 1.66 · 10−19 9.44 · 10−20
13 1.76 · 10 −4
1.43 3.88 · 10 −6
1.62 · 10 −13
1.30 · 10 −10
2.04 · 10−14
hibiting a slightly better performance in the case of the lipsoidal latitude and longitude are different. In the first
Moon. exact analytical method the formulas for such calculations
are well-known but in the second exact analytical method
the corresponding formulas are developed for the first time
in this work. The first numerical method is a generalization
6 Conclusions of a method of Bektas (2015) and the second of a method of
Panou and Korakitis (2019), in order to enable both meth-
In this work, a theoretical and a numerical comparative as-
ods to be applicable for points in space, not only on the
sessment of four methods (two analytical and two numer-
surface of a triaxial ellipsoid.
ical) of converting Cartesian (x, y, z) to ellipsoidal coor-
Theoretically, the precision of the two exact analyti-
dinates (u, β, λ) of a point in space have been presented.
cal methods is limited only when one approaches singu-
In all four methods the ellipsoidal parameter u is calcu-
lar points in the cumbersome expressions involved. On the
lated by the same formula, while the computations of el-
other hand, numerical methods with iterative approxima-
120 | G. Panou and R. Korakitis, Analytical and numerical methods of converting Cartesian to ellipsoidal coordinates
Table 7. Performance of the exact analytical method of Section 2.2., in the case of the Moon, using double and quad precision
double quad
Group
max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m) max|𝛿𝛿𝛿𝛿| (") max|𝛿𝛿𝛿𝛿| (") max 𝛿𝛿𝑟𝑟 (m)
1 2.50 · 10−14 4.50 · 10−14 5.12 · 10−13 7.74 · 10−22 1.49 · 10−21 1.28 · 10−27
2 0 2.50 · 10−14 3.22 · 10−13 0 3.27 · 10−22 1.18 · 10−27
3 1.70 · 10 −5 0 4.69 · 10−13
2.98 · 10 −9
1.56 · 10 −8
5.96 · 10−12
4 0 2.60 · 10 −13
2.41 · 10−13
3.58 · 10 −13
4.03 · 10 −21
2.31 · 10−12
5 2.50 · 10 −14 0 2.57 · 10−13
3.75 · 10 −22 0 5.08 · 10−28
6 1.17 · 10 −15
2.65 · 10 −14
6.65 · 10−13
1.43 · 10 −23
7.08 · 10 −22
1.86 · 10−27
7 1.70 · 10 −5
7.14 · 10 −5
1.01 · 10 −4
2.98 · 10 −9
1.56 · 10 −8
3.18 · 10−13
8 3.60 · 10 −6
2.73 · 10 −13
6.06 · 10 −5
2.40 · 10 −15 6.87 · 10 −21
3.98 · 10−14
9 2.50 · 10 −14
3.60 · 10 −5 6.04 · 10 −4
7.06 · 10 −22
3.79 · 10 −14
6.37 · 10−13
10 3.60 · 10−6 3.60 · 10−6 8.39 · 10−5 9.51 · 10−15 1.89 · 10−14 3.19 · 10−13
11 3.90 · 10−16 3.60 · 10−5 6.06 · 10−4 1.15 · 10−23 3.79 · 10−14 6.39 · 10−13
12 3.60 · 10−6 3.60 · 10−6 6.31 · 10−5 2.40 · 10−15 2.40 · 10−15 4.20 · 10−14
13 1.70 · 10−5 7.15 · 10−5 1.06 · 10−7 3.59 · 10−9 1.56 · 10−8 1.31 · 10−17
Fig. 2. Values of maxδr in log10 scale for the group 14 and all meth- Fig. 3. Values of maxδr in log10 scale for every group of the exact
ods in: (top) double precision (bottom) quad precision analytical method of Section 2.2. for the three bodies in: (top) dou-
ble precision (bottom) quad precision
numerical method (Panou and Korakitis) of Section 3.2. Panou G., 2014. A Study on Geodetic Boundary Value Problems in
are adequate to provide excellent results for both preci- Ellipsoidal Geometry. Ph.D. Thesis, Department of Surveying
Engineering, National Technical University of Athens, Greece.
sions. Specifically, the numerical validations of the analyt-
Panou G. and Korakitis R., 2019. Geodesic equations and their nu-
ical method produce values of δr better than 1 cm for dou-
merical solution in Cartesian coordinates on a triaxial ellip-
ble and 10−11 m for quad precision, whereas in the numeri- soid. Journal of Geodetic Science, 9, 1-12.
cal method the values of δr are better than 10−11 m for dou- Panou G., Korakitis R. and Pantazis G., 2020. Fitting a triaxial ellip-
ble and 10−26 m for quad precision. Through the analytical soid to a geoid model. Journal of Geodetic Science, 10, 69-82.
method, we also have at hand formulas for the calculation Pędzich P., 2019. A low distortion conformal projection of a tri-axial
ellipsoid and its application for mapping of extra-terrestrial
of ellipsoidal latitude and longitude useful for other cal-
objects. Planetary and Space Science, 178, 104697.
culations, such as the derivatives etc., while the numerical Tabanov M.B., 1999. Normal forms of equations of wave functions
method provides only a way of computation. Also, another in new natural ellipsoidal coordinates. In: Uraltseva N.N. (Ed.),
difference is that, in the numerical method, the worst re- Proceedings of the St. Petersburg Mathematical Society, Vol-
sults for β and λ are observed in different points compared ume V. American Mathematical Society Translations – Series 2,
193, 225-238.
with the analytical method.
We also investigated the performance of all methods
of conversion with respect to a wide range of values of
ellipsoidal parameter u (300 points for the Earth). Again,
the two aforementioned methods provide reliable results.
Also, as a novel exact analytical method, which can
provide approximate values for the numerical method,
we also analyzed its performance for two other bodies
(an almost oblate spheroid and the Moon), with almost
equivalent results. Finally, considering all above detailed
comparisons, we conclude that the generalized Panou and
Korakitis’ numerical method (Section 3.2.), starting with
approximate values from the new exact analytical method
(Section 2.2.), is the best choice in terms of accuracy of the
resulting ellipsoidal coordinates.
References
Bektas S., 2015. Geodetic computations on triaxial ellipsoid. Inter-
national Journal of Mining Science, 1, 25-34.
Dassios G., 2012. Ellipsoidal Harmonics: Theory and Applications.
Cambridge University Press, Cambridge.
Florinsky I.V., 2018. Geomorphometry on the surface of a triaxial
ellipsoid: towards the solution of the problem. International
Journal of Geographical Information Science, 32, 1558-1571.
Ghilani C. and Wolf P., 2006. Adjustment Computations: Spatial
Data Analysis. 4th ed., John Wiley & Sons, Inc.
Heiskanen W.A. and Moritz H., 1967. Physical Geodesy. W.H. Free-
man and Co., San Francisco and London.
Iz H. Bâki., 2009. New parameters of geometrically best fitting lunar
figures. Journal of Applied Geodesy, 3, 155-162.
Jacobi C.G.J., 1839. Note von der geodätischen Linie auf einem El-
lipsoid und den verschiedenen Anwendungen einer merk-
würdigen analytischen Substitution. Journal für die Reine und
Angewandte Mathematik, 1839, 309-313.