skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.4k stars 211 forks source link

I know how to calculate the difference in angles between 2 planets. However, I want to get rahu and ketu positions as well which are not in the list #687

Closed anuragreddygv323 closed 2 years ago

brandon-rhodes commented 2 years ago

The dates and positions of the lunar nodes can be calculated using the almanac routine:

https://stackoverflow.com/questions/45909580/longitude-of-lunar-nodes-using-skyfield

To compute culture-specific interpolations of the lunar nodes, you will need to consult a reference work that describes how that particular culture decided to measure the Moon's orbit and position, and then build Python code that re-enacts that computation. The only think Skyfield can tell you is where the Moon and Sun really were; it cannot, alas, be of any assistance in figuring out what human societies computed based on those physical positions.

Since I don't think there are any new Skyfield features needed here, I'll close this issue, but feel free to comment further here if you have trouble getting the Skyfield routine to give you lunar crossings of the equator!

anuragreddygv323 commented 2 years ago

im calculating the angles between two planets in eph as below

t = ts.utc(2022, 1, 4) jup,sun,saturn,venus,mars,moon, earth, mercury = eph[5],eph[10],eph[6],eph[299],eph[499], eph[301], eph[399],eph[199]

Angle between sun and saturn on 01/04/2022

e = earth.at(t) s = e.observe(sun).apparent() v = e.observe(saturn).apparent()

s.separation_from(v).degrees

I want to compute the angle between planets and lunar nodes .... can u tell me how ?

anuragreddygv323 commented 2 years ago

I want to know how to compute the angles difference between Rahu and SUN in degrees... plz help

Answer shud be 135 for Jan 4th 2022

anuragreddygv323 commented 2 years ago

@brandon-rhodes any suggestions plz

brandon-rhodes commented 2 years ago

I don't, alas, have any suggestion, because I don't know how ancient astronomers turned raw observations of the Moon into the position in the sky that they call “Rahu”? All Skyfield can tell you is where the Moon really is. You will have to take those longitudes, and do something to fill in longitudes in the dates where the Moon isn't at its node.