# Earth as an ellipsoid

**URL:** <https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147>\
**Category:** Offtopic\
**Tags:** geo\
**Created:** [May 1, 2023, 2:03am UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147 "2023-05-01T02:03:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [May 1, 2023, 2:03am UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/1 "2023-05-01T02:03:40Z")

</div>

Hi everybody.

I need help. I had model the planet Earth as a perfect sphere.

Now I want to model planet Earth as an ellipsoid. However I got stump by a mystery.

If Earth is an ellipsoid and I am standing at point P (see diagram), then where is my Zenith as far as Astronomy is concerned?

There are two possible answers.

Answer1 is my feet points to (xc,yc) ie. the center of the Earth

Answer2 is my feet points to (xn,yn) ie the normal to the surface of the ellipsoid

I am really confused.

 ![Earth_ellipsoid](https://global.discourse-cdn.com/julialang/original/3X/e/7/e7d00f8d978da527d92b4db998b96b5885584da7.png)

Regards

---

<div class="post-metadata">

**Author:** ![PeterSimon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petersimon/32/25193_2.png) [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Post date:** [May 1, 2023, 3:08am UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/2 "2023-05-01T03:08:53Z")

</div>

This is not really a Julia language problem. You need a little background in geodesy. Look up “earth ellipsoid” and “geodetic coordinates” in Wikipedia. You might also consult some books on astrodynamics which treat these ideas. Example: Fundamentals of Astrodynamics and Applications, by David A. Vallado.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 1, 2023, 7:01am UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/3 "2023-05-01T07:01:05Z")

</div>

See also: _Umland (2019) A short guide to celestial navigation_.

A zip with the corresponding PDF can be downloaded from the [author’s public website](https://www.celnav.de/page2.htm).

According to the reference above, that is the difference between geodetic and geocentric latitude. In celestial navigation, the zenith distances and altitudes refer to the local plumb line, which aligns itself with gravity and points to the astronomical zenith. Assuming a homogeneous mass distribution, the plumb line coincides with the local normal to the ellipsoid which points to the geodetic zenith. Astronomical and geodetic zenith are then identical.

---

<div class="post-metadata">

**Author:** ![Dan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dan/32/42581_2.png) [@Dan](https://discourse.julialang.org/u/Dan)\
**Post date:** [May 1, 2023, 12:10pm UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/4 "2023-05-01T12:10:53Z")

</div>

> [@StevenSiew](#):
>
> Answer2 is my feet points to (xn,yn) ie the normal to the surface of the ellipsoid

might be better, because the zenith concept originates from the position of the Sun for an observer on the Earth. The Sun is at zenith when it is directly overhead. To maintain this interpretation, Answer2 i.e. normal to surface is preferable.

---

<div class="post-metadata">

**Author:** ![John\_Gibson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_gibson/32/5321_2.png) [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Post date:** [May 1, 2023, 12:14pm UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/5 "2023-05-01T12:14:53Z")

</div>

Wow, that’s interesting. I know it’s a quirk (or deep consequence) of the inverse square law that the gravitational attraction of a uniform sphere is the same as a point mass at the sphere’s center outside the sphere, and that at any point inside a spherical shell the gravity from opposing portions cut off by a cone cancels exactly. But I am a little surprised that the gravitational center of an ellipse is the ellipse center. Perhaps it follows simply from the same inverse-square oppositional principle,

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [May 1, 2023, 11:03pm UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/6 "2023-05-01T23:03:11Z")

</div>

> Wow, that’s interesting. I know it’s a quirk (or deep consequence) of the inverse square law that the gravitational attraction of a uniform sphere is the same as a point mass at the sphere’s center outside the sphere, and that at any point inside a spherical shell the gravity from opposing portions cut off by a cone cancels exactly. But I am a little surprised that the gravitational center of an ellipse is the ellipse center. Perhaps it follows simply from the same inverse-square oppositional principle,

The inverse square law applies BUT you forgot that the earth is SPINNING.

To the total force (of person at point P) is Gravity\_vector + Centripetal\_vector

That is why the total force points to the (xn,yn) instead of the center of the Earth

Perhaps the best way to think about it is to IMAGINE if the earth is made out of water (ie. water world). So what would the shape of the earth/waterworld be? It would be an ellipsoid so the answer2 is CORRECT because otherwise the water at point P would be rising up against the Gravitional Potential on one side (and going down the Gravitional Potential on the OTHER side) and this is of course ridiculous.

Postscript: I would prefer the term “ **centre of the earth** ” as the term “center of the earth” makes me imagine there is a shopping center on earth somewhere.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 2, 2023, 4:08am UTC](https://discourse.julialang.org/t/earth-as-an-ellipsoid/98147/7 "2023-05-02T04:08:46Z")

</div>

For a general ellipsoid of revolution not rotating, the gravity force at surface may point somewhere else. See this [reference](https://www.google.com/url?sa=t&source=web&rct=j&url=https://smallpond.ca/jim/misc/rockDrop/Hvozdara2012.pdf&ved=2ahUKEwi__smZ3NX-AhUgh_0HHSfPCow4FBAWegQIBBAB&usg=AOvVaw3RU9C-vVZJsSG4dPNuHGUN).
