Topocentric elongation of moon. #241
-
Hi, using the elongation function here I can return the geocentric elongation of the moon (from the centre of the Earth). Is there a way to return the topocentric elongation as well (for a given location)? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi @hidp123! Yes, I can help you with this. Here is the simplest way I can think of right now. Call the Equator function twice, once with Then pass both vectors to AngleBetween, which returns the angle between the vectors expressed in degrees. Does this help? |
Beta Was this translation helpful? Give feedback.
-
I'm a bit confused regarding the following terms:
(the above terms are from Skyfield python package) |
Beta Was this translation helpful? Give feedback.
Hi @hidp123! Yes, I can help you with this. Here is the simplest way I can think of right now.
Call the Equator function twice, once with
Body.Sun
, again withBody.Moon
. In both calls, pass the desired geographic coordinates in theobserver
parameter. These calls will return type Equatorial, which contains a vector calledvec
.Then pass both vectors to AngleBetween, which returns the angle between the vectors expressed in degrees.
Does this help?