# DSS2 photographic sky and Gaia DR3 interaction data

Published 2026-10-04. The prior NASA/Hipparcos implementation is retained below as historical build provenance; it is no longer the active background/catalogue.

## Current catalogue

`sky-catalog-v20261004.json` contains 482,186 interaction records: 482,106 Gaia DR3 sources with G <= 10 and 80 unmatched bright Hipparcos/XHIP supplement records. There are 6,845 records through magnitude 6 in the opening catalogue, and 475,341 deeper records in 288 local tiles under `sky-stars-v20261004/`. No extra star dots are drawn over the photograph.

Gaia DR3 was released 2022-06-13; coordinates are ICRS in J2000 axes at epoch J2016.0. The `epoch` field distinguishes axes from observation epoch. `pmra` already includes cos(dec), and `pmdec` is declination proper motion; both are mas/year. The browser linearly advances the tangent vector and normalizes it at the saved snapshot's Julian year. This omits radial-velocity perspective acceleration and annual parallax. Hipparcos supplement positions retain their original J2000 epoch without invented proper motion. Tile caps include a bound for catalogue proper motion. Catalogue hover positions can differ from historical photographs, especially for high-motion stars; not every photographed faint star is in the G <= 10 selection.

Photometry is Gaia G (or supplement V); `bp_rp` is BP−RP, not B−V. Inverse-parallax distance is shown only for positive parallax with signal-to-noise >= 5 and is labelled approximate. Gaia source IDs are stored as strings to retain 64-bit precision. Bright names are retained via a 25-arcsecond positional crossmatch to the pinned Hipparcos list; 88 traditional constellation figures retain their original geometry. Binary/variable stars and old epochs can limit this positional association.

[Gaia DR3 documentation](https://gea.esac.esa.int/archive/documentation/GDR3/) · [ESA release](https://www.cosmos.esa.int/web/gaia/data-release-3) · [ARI TAP](https://gaia.ari.uni-heidelberg.de/tap.html).
Credit: ESA/Gaia/DPAC. Gaia processing funding acknowledgement: https://www.cosmos.esa.int/web/gaia/dpac/consortium . Data DOI: https://doi.org/10.5270/esa-qa4lep3 . Catalogue adaptation retains the d3-celestial BSD notice in `vendor/d3-celestial-LICENSE.txt`.

Query (MAXREC=1,000,000; verified against a separate COUNT):

```sql
SELECT source_id,ra,dec,ref_epoch,phot_g_mean_mag,bp_rp,pmra,pmdec,parallax,parallax_error FROM gaiadr3.gaia_source WHERE phot_g_mean_mag<=10
```

Saved CSV SHA-256: `c61f09f9de0e220f96bccc4e36b9bc097fc05ab6f0d548c899ada28db27d5721`. Build with `ops/prepare-cc-gaia.py --csv /path/to/gaia.csv --hip /path/to/stars.6.json --names /path/to/starnames.json`. Sources use d3-celestial commit `7e720a3de062059d4c5400a379146a601d9010e0`; names are not invented for unnamed sources.

## Current imagery

DSS2 colour: https://alasky.cds.unistra.fr/DSS/DSSColor/ . Exact survey properties and acknowledgement are retained in `dss2-properties.txt`. The red channel uses POSS-II F, AAO-SES/SR and SERC-ER plates; blue uses POSS-II J and SERC-J/EJ; green is derived from red/blue. Some blue plate coverage is missing. Historical observations span approximately 1975–1999, not today's weather or illumination. Credit: Digitized Sky Survey — STScI/NASA; colour composition/HiPS by CDS/CNRS/Université de Strasbourg. [DSS acknowledgement](https://archive.stsci.edu/dss/copyright.html). HiPS metadata declares ODbL-1.0; the exact attribution and survey acknowledgement are retained.

`ops/prepare-cc-dss.py` requests ICRS north-up/east-left CDS HiPS2FITS cutouts, caches their original JPEGs, then losslessly tiles them. It preserves the source colours and adds no blur. A 4096 × 2048 CAR overview covers the full sky. The stored Moon field has 16°/3072px, 4°/3072px and 1.5°/2048px TAN views, or about 18.75, 4.69 and 2.64 arcseconds per sample; these are resampling scales, not claims of telescope resolution. All dimensions, exact URLs, source hashes and local tile hashes are in `sky-dss-current.json`.

Independent FITS/JPEG checks verify the service’s one-based CRPIX values and vertical image flip. Tangent-plane pixel scale is `2*tan(fov/2)/width`, with reference coordinates `x=width/2−1`, `y=height/2` in the served JPEG. TAN projection is sampled in the same fixed sky axes and transformed through the saved observer matrix. A local Web Worker continuously reprojects the photographs while scroll or pinch zoom is active, coalescing camera frames to the latest requested view. Between completed rasters the cached view follows the exact affine camera transform. The raster covers the screen at up to 2048 pixels per side, and arriving photographic tiles trigger progressive detail updates. New detail rasters blend over 240ms in an isolated layer using complementary premultiplied weights, preserving brightness and the shared celestial projection. Interrupted transitions retain their visible mixture. Browsers without workers use the synchronous renderer. Photo tiles have 1px true-neighbour gutters. An outer source edge is duplicated only at the patch perimeter. The garden adapts brightness with the existing 0.72 overlay factor. A selection ring appears only on the inspected star. No schematic galaxy ellipse is painted over DSS photography.

`moonlit-cc-sky.timer` updates local fields every 15 minutes, snapping their centres to a 0.25° grid. Only the server contacts CDS. New images are stored before the metadata is atomically replaced; failures preserve the previous complete field and overview. Old revisions remain for two days. The frontend checks for a new complete revision every minute and preserves a usable image on failure. Network access belongs to this separate service; the lunar renderer retains its original isolation.

The OpenNGC M31 interaction record remains CC BY-SA 4.0 and credited as below; its photographic appearance comes from DSS2.

---

# Historical NASA / Hipparcos build notes

# Stored sky catalogue

`sky-catalog.json` stores 5,044 stars through apparent visual magnitude 6,
the line figures of all 88 IAU constellations, and a tile index for another
113,172 measured stars. It is 352,021 bytes (94,113 bytes with gzip). The
288 files in `sky-stars-v20261003/` cover the full sky through the source's
faintest magnitude, 13.78, for 118,216 stars in total. This is the deeper
Hipparcos-based selection, **not a complete survey to magnitude 13.78**.
ESA describes the Hipparcos survey selection in its
[catalogue documentation](https://www.cosmos.esa.int/documents/532822/552851/vol1_all.pdf).
The browser loads nearby tiles locally; viewing the sky requires no
third-party catalogue API.

## Sources and permission

The source is Olaf Frohn's [d3-celestial repository](https://github.com/ofrohn/d3-celestial/tree/7e720a3de062059d4c5400a379146a601d9010e0),
pinned to commit `7e720a3de062059d4c5400a379146a601d9010e0` (2022-07-05),
downloaded 2026-09-26, with the deeper `stars.14.json` fetched 2026-10-03.
Its BSD-3-Clause license permits redistribution and
modification with the retained notice and conditions. The complete, unchanged
notice is stored in [`../vendor/d3-celestial-LICENSE.txt`](../vendor/d3-celestial-LICENSE.txt).

The [upstream attribution](https://github.com/ofrohn/d3-celestial/blob/7e720a3de062059d4c5400a379146a601d9010e0/readme.md#files)
credits the stars to **XHIP: An Extended Hipparcos Compilation**, Anderson E. and
Francis C. (2012), [VizieR V/137D](https://cdsarc.cds.unistra.fr/viz-bin/cat/V/137D).
Constellation information is credited to the IAU, with line modifications by
Frohn. These files contain catalogue measurements and conventional line figures,
not photographs. English meanings have a small set of clarifications checked
against the [IAU constellation list](https://iauarchive.eso.org/public/themes/constellations/),
recorded explicitly in the build script, including Great Bear and Little Bear
rather than their Dipper asterisms.

Original SHA-256 checksums (all relative to the pinned repository):

| File | SHA-256 |
| --- | --- |
| `data/stars.14.json` | `8e76cd774d38f8d232cfccfb0b72d6fba5832d36eeff1f514e46c25423e2ecb8` |
| `data/constellations.lines.json` | `294f66bef5d5cf50b1e17f16d2efa1d97a15131612c68dd935adef6e7373e13c` |
| `data/constellations.json` | `ab4ae692027cbc042c0d6791a84456a65eb7c55656107fd00c58ff6e55d4d8b2` |
| `LICENSE` | `a8c79239001ad4bea243d1796b85084e1fc39309c5c5a663930a1b46320254c6` |

The stored catalogue SHA-256 is
`1d1c61fc8ea3c6243a0026c3daec9c11450fdc310dfa45678641ea55119502e0`.

## Coordinates and conversion

The JSON schema is:

```text
{
  schema: 1,
  frame: "EQJ",
  stars: [{ra, dec, mag, bv?}, ...],
  constellations: [{id, name, meaning, lines: [[[ra, dec], ...], ...]}, ...],
  deepStars: {
    sourceCount: 118216,
    starCount: 113172,
    minMagnitudeExclusive: 6,
    maxMagnitude: 13.78,
    tiles: [{url, ra, dec, radius, count}, ...]
  }
}
```

`EQJ` means equatorial J2000. Both `ra` and `dec` are radians; right ascension
is in `[0, 2π)`, declination in `[-π/2, π/2]`. The upstream J2000 GeoJSON
longitudes are converted from degrees, with negative longitude wrapped back to
positive RA. Coordinates are rounded to eight decimal places in radians,
finer than the upstream precision. Stellar proper motion is not applied.

`mag` is visual apparent magnitude; `bv` is the measured blue-minus-visual
color index. Two bright stars and 1,277 deeper stars have no B-V value, so
the property is absent. Stars are sorted by increasing magnitude, then RA and
declination, within each file. No random stars or artificial density layers
are added to the catalogue. Faint-star contrast is enhanced for this magnified
chart; it does not predict naked-eye visibility beside a bright Moon.

Tiles use a 15° right-ascension by 15° declination grid. Their filenames contain
the zero-based RA and declination bins, starting at 0° RA and −90° declination.
Each tile has `{schema: 1, frame: "EQJ", stars: [...]}` with the same star
records as the main file, but with `mag > 6`, avoiding duplicates. The tiles
total 6,461,798 bytes; individual files range from 3,256 to 43,982 bytes
(median 25,670). Gzip sizes range from 1,013 to 11,719 bytes. The browser
requests only regions overlapping its opening viewport and caches them for
zooming; it does not download the all-sky extension at once.

Each index entry's `ra` and `dec` specify the grid center in J2000 radians.
`radius` is the greatest measured spherical separation between that center
and any final stored star in its tile, plus `1e-7` radians. Every star is
therefore inside its advertised cap, including at the poles and across the
RA wrap. By the spherical triangle inequality, any viewport cap containing
a star must overlap the star's tile cap. This permits conservative selection
without assuming rectangular cells are planar. The versioned folder ensures
the index and cached tile content belong to the same catalogue revision.

Constellation IDs retain the IAU abbreviations. Serpens Caput and Serpens Cauda
become one `Ser` entry while keeping their disconnected lines. Corona Australis
uses the spelling from the IAU list. All original line vertices are preserved,
including endpoints on stars fainter than the star catalogue cutoff. The lines
are illustrative patterns; they are not official constellation boundaries.

## Rebuild and verification

The script requires only Python's standard library. From the source directory:

```sh
python3 ops/prepare-cc-sky.py
python3 ops/prepare-cc-sky.py --check
```

It downloads only from the pinned commit, verifies every input checksum, and
writes the compact catalogue, deeper tiles, and unchanged license. `--check`
compares every output byte-for-byte with the stored files. To rebuild without a network,
use `--source-dir /path/to/pinned/d3-celestial`, containing the original
`data/` files and `LICENSE`.

## Milky Way imagery and Andromeda

The live sky uses **Deep Star Maps 2020 — Milky Way**, by NASA/Goddard Space
Flight Center Scientific Visualization Studio (Ernie Wright), with Gaia DR2
measurements credited to **ESA/Gaia/DPAC**.

- [NASA source and coordinate documentation](https://svs.gsfc.nasa.gov/4851/)
- [Original 16K linear RGB OpenEXR](https://svs.gsfc.nasa.gov/vis/a000000/a004800/a004851/milkyway_2020_16k.exr)
- [NASA SVS public-domain usage policy](https://svs.gsfc.nasa.gov/help/#can-i-use-your-visualizations)
- Source SHA-256: `9d60e58075bcbce9cd03f8115e5635533a0a910007348a485755630a3927b97a`

This is an observational raster made by plotting measured stellar positions,
brightness and color, primarily from Gaia DR2, not a single photographic
exposure or a generated/decorative galaxy. NASA omits the bright Hipparcos and
Tycho stars from this layer. Their interactive markers come from our separate
catalogue. The real stellar density reveals the Milky Way's clouds and dark
lanes; the map must never be stretched or relocated to put the galactic centre
beside a Moon that is elsewhere.

`sky-background-v20261003mw2.json` describes a 16384 × 8192 RGB map, the
2048 × 1024 overview and 512 local, lossless WebP tiles in
`sky-milkyway-v20261003mw2/`. Each tile has 512 × 512 core pixels and a one-pixel
border on all sides. Opposite edges wrap in RA, and celestial poles clamp.
The manifest records byte lengths and SHA-256 hashes for all 513 images.

NASA's ICRF/J2000 equatorial plate carrée layout is preserved:
`x = ((0.5 − RA / 2π) mod 1) × width − 0.5`,
`y = (0.5 − Dec / π) × height − 0.5`.
North is up; RA=0 is at the centre and RA increases to the left. The runtime
inverse-projects through exactly the same observer/precession rotation and
stereographic view as the catalogue. It caches a field large enough for the
complete zoom/recentering path. Scroll/pinch applies one shared affine transform
so a dust lane stays fixed relative to its neighbouring stars.

Processing uses a uniform linear exposure of 2, `1 − exp(−2 × RGB)`, followed
by the standard sRGB transfer and 8-bit encoding. A two-source-pixel Gaussian
smooth combines unresolved stellar points into diffuse light, avoiding large
blurry star blobs at the close Moon scale. Smoothing wraps the RA seam before
tiling. It preserves sky coordinates, large-scale clouds and dust lanes; it
is not a model of atmosphere, moonlight glare or naked-eye visibility. Runtime
RGB ratios are preserved in an intensity-based transparent overlay, with
contrast chosen for the garden. No invented nebulae or sky features are added.

The browser loads the overview first and only requests the tiles intersecting
the current opening field, including the area exposed during recentering.
Concurrent tile requests are limited to four. Old tiles are evicted as the
field changes. An unavailable tile leaves the usable overview in place and
retries after a minute; it cannot hide the catalogue stars. Only same-origin
stored assets are requested at runtime.

Reproduce with Python, NumPy, OpenEXR and Pillow (with WebP support):

```sh
curl -4 -fL https://svs.gsfc.nasa.gov/vis/a000000/a004800/a004851/milkyway_2020_16k.exr -o /tmp/milkyway_2020_16k.exr
python3 ops/prepare-cc-milkyway.py --source-file /tmp/milkyway_2020_16k.exr
python3 ops/prepare-cc-milkyway.py --source-file /tmp/milkyway_2020_16k.exr --check
node tests/cc-sky-background.cjs
python3 tests/cc-milkyway-browser.py
```

The checked build uses NumPy 2.5.3, OpenEXR 3.5.2, Pillow 12.3.0 and libwebp
1.6.0. The source checksum is checked before any outputs are written. Generated
pixel data and overlapping tile borders are lossless. The build-only EXR is
not served to browsers. The older `sky-background-v20261003.png` contour atlas
and its builder remain for historical reproducibility; the live renderer no
longer loads that approximation.

### Andromeda record

The metadata also preserves the M31 record from the `NGC0224` row of
[OpenNGC at commit `75ca7ff090e1d0081a5b08be70eb3bc45ccd9e06`](https://github.com/mattiaverga/OpenNGC/tree/75ca7ff090e1d0081a5b08be70eb3bc45ccd9e06).
It records 00h 42m 44.35s, +41° 16′ 08.6″, V magnitude 3.44,
177.83′ × 69.66′, and position angle 35° east of north. Angles in JSON are
radians. Position, dimensions and magnitude are attributed upstream to NED,
HyperLEDA and SIMBAD respectively. The soft outline is schematic. M31 lies
far from the Moon's path and remains outside this close Moon-centered view.

The adapted OpenNGC record credits **© 2023 Mattia Verga** under
[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/), with the full
license at [`../vendor/openngc-LICENSE.txt`](../vendor/openngc-LICENSE.txt).
Changes select one row, convert units and rename fields. This data license
applies to that record; NASA's separate usage terms apply to the Milky Way.
The original OpenNGC CSV SHA-256 is
`d3cd7f1ab83122e81b3453d765d93b6dbbb15c910716c9e4ff99c7e916cb2218`.

## Moon, planets and the displayed chart

The stored Moon snapshot includes geocentric, light-time corrected J2000
coordinates for the Moon, Sun, Mercury, Venus, Mars, Jupiter, Saturn, Uranus and
Neptune, computed with the bundled [Astronomy Engine 2.1.19](https://github.com/cosinekitty/astronomy/blob/master/source/js/README.md).
Its MIT license is in `/vendor/astronomy-LICENSE.txt`. The server calculates this
alongside the lunar image every fifteen minutes and publishes both through one
atomic manifest, including body distances and Greenwich apparent sidereal time.
The browser applies precession/nutation to the catalogue and body directions.

`sky-observer.js` places an observer at the selected device or approximate IP latitude and longitude
on the [WGS 84 ellipsoid](https://earth-info.nga.mil/?action=wgs84&dir=wgs84), with
semi-major axis 6378.137 km and inverse flattening 298.257223563; elevation
defaults to zero. Subtracting this observer vector from each Moon, Sun and
planet vector gives topocentric center directions, distances and parallax.
The observer vector and local vertical use the snapshot's saved sidereal time,
so all bodies and the catalogue share one epoch and stereographic projection.
Without location, the chart is explicitly labeled Earth-center with north up.

`sky-constellations.js` contains Astronomy Engine's 357 boundary rows and 88
names, with its MIT notice, plus the fixed J2000-to-B1875 rotation used by its
constellation classifier. The browser reclassifies observer-relative body
directions: lunar parallax can place the Moon in a different constellation
from its Earth-center direction. These boundaries determine labels; the visible
connecting lines remain traditional figures.

Scroll and pinch scale the Moon, planetary disks and their angular separations
together. The opening view is the minimum zoom; the Moon cannot shrink below
its opening size. Garden scenery magnifies and moves out of view while zooming
in, with nearby leaves and flowers moving faster than the distant woodland.
The Moon moves toward the center along one continuous path throughout the
zoom. Wheel and keyboard changes ease toward their target; pinch follows the
fingers directly. Reduced-motion preferences make zoom changes immediate.
With the garden focused, **+** and **−** zoom, and **Home** restores the
opening view. Moon information floats in two groups beside the Moon, or above
or below it on narrow screens. Arrival and tap trigger a 1.5-second fade in,
eight readable seconds, then a 5-second fade out; hover holds the details
until the pointer leaves. Reduced-motion preferences remove the fades.
Hover or tap sky objects directly; with the garden focused, left and right
arrows cycle through visible objects and **L** toggles constellation lines.
The footer's **About the sky** link opens the public source page.
Angular diameters are `2 * asin(radius / observerDistance)`.
The Moon uses a [1737.4 km mean radius](https://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact.html).
Planetary circles use [JPL mean radii](https://ssd.jpl.nasa.gov/planets/phys_par.html):
Mercury 2439.4, Venus 6051.8, Mars 3389.5, Jupiter 69911, Saturn 58232,
Uranus 25362 and Neptune 24622 km. These approximate spherical disks omit
oblateness and Saturn's rings. Star dots and planet glow indicate brightness;
selection markers and labels are guides, not physical diameters. Planets outside
the view or covered by the Moon remain listed in the accessible sky description.
The sky, Moon and sky-object tooltips render behind the garden foliage; the
Moon fact overlay stays above it for readability.

The saved geocentric photograph is a loading/failure fallback. The local lunar
worker uses the saved body frame and sunlight to render 1024–2048 pixels with
finite-distance observer perspective and topocentric libration. Device location
and available elevation can be selected on click; coordinates stay local.
The spherical outline does not model terrain limb occlusion or precise
limb occultations. Atmospheric refraction, stellar proper motion and parallax,
weather, glare and visibility limits are not simulated. Garden fireflies and
occasional shooting-star effects are decorative.
The garden's depth effect comes from separate illustrated planes for the
backdrop, woodland, ground, haze, plants, foreground and lights. These planes
use different zoom and translation rates. Their decorative parallax does not
change the observer parallax or common angular scale of astronomical objects.

The conventional northern hemisphere full-Moon name identifies the current
new-Moon-to-new-Moon lunation; it does not imply the Moon is currently full.
[Harvest Moon](https://science.nasa.gov/resource/harvest-moon/) is the full Moon
nearest the September equinox; [Hunter's Moon](https://www.nasa.gov/blogs/watch-the-skies/2019/09/19/out-with-the-harvest-in-with-the-hunt/)
follows it. Other names follow the full Moon's UTC month. These are naming
conventions, not universal names. The displayed phase and illumination are
calculated separately for the snapshot's timestamp.

Current name-source hashes: `stars.6.json` SHA-256 `0297b8fa3adfbce1dc26566f61c4abcc1df4f29c6a28729ca06b56d1c6d25602`; `starnames.json` SHA-256 `19c84bc885f8a97c3b8e1f6a380084c575a9758dedfe35256e911a823ec3a695`.
