Introducing Open Sky Atlas

Open Sky Atlas is a browser-only planetarium that draws the sky for any place and time, as a 2D chart or a 3D sphere. It has about 83,000 stars, about 13,000 deep-sky objects and a gallery of openly licensed photographs, and it now lives in this blog at sky_atlas.html.

Some author3 min read

Open Sky Atlas is a planetarium that runs entirely in the browser. Choose a place and a time, and it draws the sky as seen from there: the stars, the constellations, the Milky Way, the Sun, the Moon and the planets, and deep-sky objects such as nebulae, star clusters and galaxies. There is nothing to install. The page loads a few static data files and draws the sky from them.

The Open Sky Atlas 2D chart of the sky over Greenwich, with constellations, stars and deep-sky objects

Two ways to look at the sky

The 2D chart is a map of the sky in one of five projections: stereographic, gnomonic, orthographic, azimuthal equidistant and Lambert equal-area. Each one stretches the sky differently, so you can choose the one that suits a wide view or a small patch. The field of view runs from a few degrees to nearly the whole sky.

The 3D view puts you inside a sphere of stars drawn from the same catalogue. You can look around it and zoom in and out.

The same sky in the 3D sphere view

Finding things

Press / to search. The index covers the stars, the deep-sky objects and the constellations, so a search for "Orion" lists the constellation first and then the nebulae.

Search results for "Orion": the constellation first, then the nebulae

Choosing a result moves the view to it and opens a card. The card shows the object's catalogue numbers, magnitude, size and coordinates, its altitude and azimuth right now, and its rise, transit and set times for today. Where the gallery has a photograph of the object, the card shows it too.

The card for the Orion Nebula, with its photograph and rise, transit and set times

Time and place

The time bar at the top steps the clock by hours, plays time forward at up to 3600 times normal speed, and jumps back to now. The location panel sets the date and time exactly and holds the observing site. It starts at the Royal Observatory, Greenwich. "Use my location" asks the browser for your position, and you can add your own named sites.

The location and time panel, with the observing site and playback controls

Drawing on the chart

Use "Drop pins" and "Draw path" to mark your own points and lines on the chart. "PNG 1×" and "PNG 2×" export the chart as an image. "Save workspace" writes the view, layers, style, site, time, pins and paths to a JSON file, and "Load workspace" opens it again later.

Gallery and themes

The gallery holds 55 openly licensed photographs: the Sun, the phases of the Moon, the planets, and many Messier and other deep-sky objects. Selecting one shows its credits, and "Show in sky" jumps to the object it shows.

The gallery, with the Sun, the Moon's phases and the planets

There are six colour themes, including a paper chart, a deep-space look and an atlas blueprint. Night vision is different: it overrides the theme with a red palette, so your eyes stay dark-adapted while you observe.

The chart in night-vision mode

On a phone

On narrow screens the side tool rail becomes a bar along the bottom of the screen, and the time and search controls compact into the top bar.

The chart on a phone, with the tool bar along the bottom

Where the data comes from

The catalogue is built from open data, and the build can be repeated from the raw downloads:

  • Stars: the HYG database v4.4, with IAU star names (CC BY-SA 4.0).
  • Deep-sky objects: OpenNGC (CC BY-SA 4.0).
  • Constellations and the Milky Way: d3-celestial (BSD 3-Clause).
  • Photographs: Wikimedia Commons, each under its own licence.

The catalogue is about 4 MB. npm run sky-atlas:data rebuilds it, and public/sky-atlas/CREDITS.md lists every source and photo credit. The About dialog links to that file.

The atlas began as a separate project. It now lives in this blog: open the Sky Atlas link in the header, or the footer on a phone.