2

How do star locator applications such as SkyGuide, SkySafari and Stellarium get the current and future positions of moons, planets, stars and artificial satellites in the sky?

Is there a public database that keeps track of all the positions of celestial objects in the sky that they call access to? If so is there an API that can be interacted in JavaScript or Python? For context I’m trying to make a website the tracks the positions of artificial satellites.

User44356
  • 23
  • 3
  • We tend to focus on natural bodies on this site, although satellites that carry astronomical instruments are on-topic here. There's info about artificial satellites on Space.SE, eg https://space.stackexchange.com/q/24444/38535 – PM 2Ring May 26 '23 at 14:26
  • For natural Solar System bodies, see Horizons: https://ssd.jpl.nasa.gov/horizons/ (which also has data for various spacecraft). – PM 2Ring May 26 '23 at 14:29
  • Search for the Hipparcos and Tycho catalogs. There are a lot of different catalogs, but that's a descent place to start. This has the Hipparcos catalog in some easy to use formats: https://github.com/gmiller123456/hip2000 – Greg Miller May 26 '23 at 15:36

2 Answers2

2

Not really an answer to your question, but you may still find some of these resources helpful/interesting:

How to find the numerical positions of (moons, planets, stars and artificial satellites) in the sky?

The positions and velocities of moons and planets os first calculated by a big program that uses numerical integration to solve the n-body problem using an n-body simulation for thousands of years into the past and into the future.

The positions and velocities at lots of points in time are stored as a giant table in a computer file called an ephemeris. The most commonly used ones now are the Jet Propulsion Laboratory (JPL) Development Ephemerides

Star positions and distances, and their proper motions are stored in a variety of star catalogs the most famous of which is recently the GAIA catalogs.

Artificial satellites of Earth are constantly tracked by radar and optical observations by government agencies and short-term ephemerides are generated by Two Line Element Sets (TLEs) that are regularly updated1 because the orbits of artificial satellites of Earth are constantly changing primarily due to atmospheric drag, Earth's lumpy gravity field, and propulsive maneuvers that they might be commanded to do to adjust their orbits. (same goes for the larger pieces of space junk)

TLEs and more info can be found at Celestrak.org (open access) and Space-Track.org which requires (free) registration and a working email address.

TLEs are most useful for a few days to a few weeks - maybe longer for those that are higher up and away from atmospheric drag, but they are never super-accurate - a few kilometers at best, usually tens of kilometers off after several days.


1generally by the US government, but see also


...is there an API that can be interacted in JavaScript or Python?

For Python for almost all of these the best one-stop shopping solution is Skyfield.

There are Skyfield tagged questions in:

The "main place" to go is JPL's Horizions which is based on the JPL Development Ephemerides and also has calculated trajectories for deep space missions from some Apollo missions all the way to an occasional projected (planned) trajectory for a future mission.

There are API interfaces for Horizons as well, both from NASA (I think) and some home-grown ones discussed here in Astronomy SE and in Space Exploration SE.

uhoh
  • 31,151
  • 9
  • 89
  • 293
1

Astronomical objects, including stars, planets and the surface of the Earth, move in a very regular and predictable way. This means that their positions can be calculated and predicted years (sometimes millennia) in advance.

An observer on Earth with move with the surface of the Earth. The Earth is rotating (at a very regular rate) and moving around the sun in an orbit that mostly obey's Kepler's laws and so can be calculated

Satellites orbit the Earth, they do so in elliptical orbits that obey Kepler's laws. So to find the position of a satellite you must use the description of its orbit, solve Kepler's equations and combine this with a calculated position of the observer.

Planets move around the sun in orbits that mostly obey Kepler's laws. Again this allows you to calculate the relative position of the planet to the Earth. These calculations are called astronomical algorithms and are described in a famous book by Meeus (and elsewhere).

Stars hardly move at all. Their apparent motion is entirely due to the movement of the Earth.

Apps that display the positions of astronomical bodies implement these algorithms.

James K
  • 120,702
  • 5
  • 298
  • 423