Skip to content
Create my star map now
Astronomy

How a Personalized Star Map Is Generated (The Science Behind It)

Théo·Founder & Software Engineer···7 min read
Astronomy desk with star charts and instruments

The Short Answer

A personalized star map is generated through a seven-step pipeline that turns three user inputs — date, time, and GPS location — into a printable image of exactly which stars were above the horizon at that moment. The system calculates local sidereal time with a standard sidereal time formula, projects the celestial sphere onto a flat 2D disc using a stereographic projection, keeps the stars above the horizon from a HYG-derived catalog limited to magnitude 6.5 (the naked-eye visibility limit), overlays conventional line figures for the 88 IAU-recognized constellations, applies one of 14 aesthetic styles, and outputs a 300 DPI print-ready file at 4960×7016 pixels (A3 size). No artistic license is taken with star positions — every dot on the map corresponds to a real star that was genuinely overhead.

Why Anyone Should Care How It Works

A star map's value depends on whether the data behind it is real. A star map rendered from catalog data means something verifiably different from a decorative print — that night, that place, those stars. The seven steps below describe exactly what happens between clicking "generate" and the moment the PDF is available in your customer area.

Step 1 — User Input

The user provides three things in the configurator:

  • Date (year, month, day)
  • Time (hour and minute, 24-hour)
  • Location (a city or address, geocoded into latitude and longitude)

That's the entire astronomical input. Aesthetic choices (style, inscription) don't affect the calculation — only how the data is rendered.

The location is converted to decimal degrees (New York City: 40.7128°, −74.0060°). The time is converted to UTC using the historical time zone for that location, handling daylight saving correctly including pre-1970 rules.

Step 2 — Calculate Local Sidereal Time

The Earth rotates relative to the stars in about 23 hours 56 minutes — slightly faster than the 24-hour solar day. To know which stars are overhead, the system computes local sidereal time (LST), the right ascension currently transiting the local meridian.

OwnStarMap uses a standard sidereal time formula:

  1. Compute the Julian Date from UTC
  2. Compute Greenwich Mean Sidereal Time from the Julian centuries elapsed since J2000.0
  3. Add the observer's longitude (in time units) to get LST

The method page documents this step and its limits.

Step 3 — Project the Celestial Sphere

The sky is a sphere; a printed page is flat. The system uses a stereographic projection centered on the user's location.

Stereographic projection preserves angles (constellation shapes stay correct) and maps small circles on the sphere to small circles on the plane (the visible sky becomes a clean disc). The horizon maps to the boundary of the disc; the zenith maps to the center.

Each star's celestial coordinates are converted to altitude and azimuth using the LST from step 2, then projected onto the disc. Stars below the horizon are discarded — they weren't visible.

Step 4 — Filter the Star Catalog

The system uses a HYG-derived catalog; HYG combines three foundational catalogs:

  • Hipparcos (ESA satellite astrometry, 1989–1993)
  • Yale Bright Star Catalog (traditional bright-star designations)
  • Gliese (nearby stars including faint red dwarfs)

HYG contains over 119,000 stars in total. The bundled file contains 8,921 records (including the Sun, which is skipped), down to magnitude 6.5, the naked-eye limit. Only the stars above the horizon at the chosen place and time are plotted, so their number varies from one map to another.

Each star's apparent magnitude determines how large and bright its rendered dot will be — Sirius and Vega become noticeable points; magnitude-5 stars become faint specks contributing to the texture of the sky.

Step 5 — Overlay Constellation Lines

The 88 IAU-recognized constellations are drawn as conventional line figures connecting member stars. The IAU formalized the boundaries in 1930 (Eugène Delporte's work); the line patterns are not part of that standard and follow traditional figure conventions.

For each constellation visible above the horizon, the system loads the predefined line list, verifies both endpoints are above the horizon, draws the visible segments at low opacity, and labels the brightest named stars (Sirius, Betelgeuse, Polaris).

If part of a constellation has set, only the connecting lines that remain are drawn — you'll see truncated figures near the horizon, which is astronomically correct.

Step 6 — Apply Visual Style

The astronomical layer is complete: a projection of every catalog star above the horizon, with constellation lines drawn. The visual style layer turns this scientific output into art.

OwnStarMap offers 14 styles, including Classic Navy, Midnight Black, Watercolor, Aurora, Vintage Map, Minimal White, Cosmic Pink, and Bohemian. Each defines colors, line weights, typography, and atmospheric effects.

The underlying star positions are identical across all 14 styles. The science doesn't change, only the presentation.

Step 7 — Render to Print-Ready File

The final step is rasterization at print resolution.

For digital downloads, the output is a 4960×7016 pixel PNG or PDF at 300 DPI — the standard for fine-art printing at A3 (11.7×16.5 inch). This prints sharply up to 18×24 inches without visible pixelation.

For physical orders, the same vector data is sent to our production partner, who prints it in the format selected at checkout. The 300 DPI threshold keeps the smallest features — magnitude-6 stars and fine constellation lines — crisp at arm's-length distance.

The whole pipeline runs in under 30 seconds on the server.

Verifying the Output

A useful sanity check anyone can run: compare a generated star map against a planetarium app (Stellarium, Sky Safari, Sky Guide) set to the same date, time, and location. The constellations should be in the same positions, the same brightest stars should be visible, and the same asterisms (Orion's Belt, the Big Dipper handle) should appear at the same orientation. If your generated star map matches a planetarium app, the data is real.

For a side-by-side accuracy summary of our data sources and algorithms, see our accuracy page.

FAQ

Why magnitude 6.5 as the cutoff?

That's roughly the faintest a star can be while still being visible to the naked human eye under perfectly dark conditions (Bortle 1 sky). Including stars fainter than that would add dots no one could ever have seen on the date in question.

Are planets shown on a star map?

Not by default. Planets move relative to the stellar background and their positions need to be calculated separately using orbital ephemerides. OwnStarMap maps focus on the fixed stars; planet overlays may be added as an optional layer in future versions. The Moon is not plotted either.

Does the algorithm account for atmospheric effects?

The astronomical calculation is for the geometric position of each star above the horizon. Atmospheric extinction (stars dimming near the horizon) is not simulated visually — the printed map represents the geometric sky, not how it would appear to a human eye dealing with haze and light pollution.

Does the algorithm account for precession?

No. Each star is plotted at its position for the catalog's epoch (J2000.0); precession is not applied. For dates centuries from now or centuries ago, this matters — the constellations slowly drift over millennia.

How long does it take to generate one star map?

Server-side, the calculation runs in 1–2 seconds. The bulk of the response time is rendering the high-resolution image. The PDF is then available in your customer area after payment confirmation.

Make It

The pipeline above is what runs behind every OwnStarMap order — no artistic shortcuts, no decorative dots, no fake stars. Every point on your print corresponds to a real star that was genuinely overhead at the moment you chose. When you're ready to see it work on a date that matters to you, open the configurator. For the deeper algorithmic story, our algorithm guide goes one level into the math.

Ready to capture your special moment?

Create a personalized star map in minutes.

Design my Star Map, from 12,00 €

Ready to capture your special moment?

Create a personalized star map in minutes.

Design my Star Map, from 12,00 €
Théo

Founder & Software Engineer

Théo is the founder of OwnStarMap and the maintainer of its renderer. He documents how the software turns a date, time, and place into a commemorative star chart, together with the data sources, tests, and limits of the calculation.

You might also like