<p>How can I calculate current position of planet in sky from earth's point of view. I want to calculate based on given DATETIME and Location</p>
<p>For example, if I see current position of planets on &quot;23 Jan 2024 22:46:28&quot; From Location India,
Sun    Capricorn   08° 59' 37&quot; and
Saturn Aquarius    11° 19' 11&quot;</p>
<p>I tried to search online but unable to understand if am referring to the correct content. Are there any algorithms which I can learn and implement that in Python scripting.</p>

CC BY-SA 4.0
2024-01-23T22:51:19.793Z
It's a lot of work if you want high precision, especially for the Moon. But a good place to start is https://stjarnhimlen.se/comp/ppcomp.html which has algorithms & a turorial. Also see https://ssd.jpl.nasa.gov/planets/approx_pos.html
PM 2Ring
CC BY-SA 4.0
2024-01-23T22:53:42.293Z
You have to look for ephemeris calculation (plural ephemerides). There are entire books on that. Looking for python code, start with astropy.
planetmaker
CC BY-SA 4.0
2024-01-23T22:54:46.423Z
Is there some reason you don't want to use existing code, or some online service? BTW, it looks like you're using Indian ecliptic coordinates, which are roughly 23° behind Western coordinates. But that's just a minor issue.
PM 2Ring
CC BY-SA 4.0
2024-01-24T02:44:12.183Z
One popular algorithm is VSOP87, implementations in multiple languages are here: https://github.com/gmiller123456/vsop87-multilang
Greg Miller
CC BY-SA 4.0
2024-01-24T08:36:54.687Z
Paul Schlyter has also updated webpage with worked examples: https://stjarnhimlen.se/comp/tutorial.html
Leos Ondra
CC BY-SA 4.0
2024-01-24T09:28:07.953Z
@Leos I linked to Paul Schlyter's stuff earlier.
PM 2Ring
CC BY-SA 4.0
2024-01-24T09:41:56.917Z
I know. I linked to his better webpage (worked examples are invaluable).
Leos Ondra
CC BY-SA 4.0
2024-01-26T05:04:09.440Z
Thanks a lot guys! i will go though and work on it..
Mangesh Sathe
CC BY-SA 4.0
2024-01-26T05:06:50.560Z
@PM2Ring yes, am searching Indian ecliptic coordinates...that's why I was unable to understand content on few websites. I also tried some of their calculations on paper
Mangesh Sathe
<planet><planetary-science><planetary-transits>
How can I calculate current position of planet in sky
Mangesh Sathe
# How can I calculate current position of planet in sky

(Asked by: username_0 on 2024-01-23)

How can I calculate current position of planet in sky from earth's point of view. I want to calculate based on given DATETIME and Location

For example, if I see current position of planets on "23 Jan 2024 22:46:28" From Location India,
Sun Capricorn 08° 59' 37" and
Saturn Aquarius 11° 19' 11"

I tried to search online but unable to understand if am referring to the correct content. Are there any algorithms which I can learn and implement that in Python scripting.

**Tags:** planet, planetary-science, planetary-transits

> **Comments:**
> **username_1**: It's a lot of work if you want high precision, especially for the Moon. But a good place to start is https://stjarnhimlen.se/comp/ppcomp.html which has algorithms & a turorial. Also see https://ssd.jpl.nasa.gov/planets/approx_pos.html  
> **username_2**: You have to look for ephemeris calculation (plural ephemerides). There are entire books on that. Looking for python code, start with astropy.  
> **username_1**: Is there some reason you don't want to use existing code, or some online service? BTW, it looks like you're using Indian ecliptic coordinates, which are roughly 23° behind Western coordinates. But that's just a minor issue.  
> **username_3**: One popular algorithm is VSOP87, implementations in multiple languages are here: https://github.com/gmiller123456/vsop87-multilang  
> **username_4**: Paul Schlyter has also updated webpage with worked examples: https://stjarnhimlen.se/comp/tutorial.html  
> **username_1**: @username_4 I linked to Paul Schlyter's stuff earlier.  
> **username_4**: I know. I linked to his better webpage (worked examples are invaluable).  
> **username_0**: Thanks a lot guys! i will go though and work on it..  
> **username_0**: @username_1 yes, am searching Indian ecliptic coordinates...that's why I was unable to understand content on few websites. I also tried some of their calculations on paper  

---

## 0 answers

