# Sky Viewer: data sources and licences

## Milky Way image (`sky-4k.jpg`, `sky-2k.jpg`)
- Source: "Milky Way 360 equirectangular rendering with foreground stars removed", rendered by Kevin M. Loch with bsrender from ESA Gaia Early Data Release 3 (ESA/Gaia/DPAC).
  https://commons.wikimedia.org/wiki/File:Milky_Way_360_equirectangular_rendering_with_foreground_stars_removed.png
- Licence: Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/
- Obtained from the npm package `astraeus-data` 0.12.0 (`src/textures/milky-way.jpg`, 3840 x 1920, the Wikimedia Commons resize of the 8000 x 4000 original). Its NOTICE records the same source and licence.
- Our changes (so these files are an adaptation, shared under CC BY-SA 4.0): slight de-blocking blur and resize to 4096 x 2048 and 2048 x 1024; noise smoothing in the faint halo only; the brightest emission nebulae (Lagoon, Trifid, Omega, Eagle, NGC 6357, NGC 6334, NGC 6188, IC 4628, Eta Carinae, IC 2944, NGC 3603, Orion, Tarantula, NGC 346, NGC 2264, Rosette, North America, and the Rho Ophiuchi reflection glow) painted softly at their J2000 catalogue positions, because Gaia does not record hydrogen-alpha glow; saturation reduced to 80%; local contrast on luminance; a soft highlight shoulder so the core never clips. In the browser a further luminance contrast curve and warm highlight tint are applied.
- Projection: galactic coordinates, equirectangular, l = 0 at the centre, l increasing to the left, b = +90 at the top. Checked against the Large Magellanic Cloud's position (l 280.5, b -32.9).

## Stars (`stars.b64.txt`, the binary star table stored as base64)
- Source: `data/stars.8.json` from the npm package `d3-celestial` 0.7.35 by Olaf Frohn, BSD 3-Clause licence (copyright 2015 Olaf Frohn). Its readme gives the star data source as XHIP: An Extended Hipparcos Compilation (Anderson and Francis 2012, VizieR V/137D).
- 41,411 stars to visual magnitude 8.0, J2000 positions, with B-V colour. Packed as 8 bytes per star (int16 unit vector x, y, z; magnitude byte; B-V byte), sorted bright to faint. Proper motion is not propagated (under 5 arcminutes for any star over 27 years).

## Positions
- Astronomy Engine 2.1.19 by Don Cross, MIT licence (`assets/vendor/astronomy-2.1.19.min.js`, shared). Used for the J2000-to-horizon rotation (precession and nutation to the date: `Rotation_EQJ_HOR`), J2000-to-galactic (`Rotation_EQJ_GAL`), the Sun, Moon and planets (`Equator` with aberration, topocentric), lunar phase and distance.
- Night data, key times and the verdict rules come from the shared `MWAstro` engine so every tool agrees.
- Checked against Astronomy Engine in node for Sydney and Perth at 8 instants: core and Moon altitude and azimuth agree to within 0.006 degrees of arc.

## Not data
- The landscape is procedural (seeded noise ridgelines and trees drawn in the shader). It is an illustration, not a terrain survey.
- The Moon's surface is a simple shaded albedo map of the main maria at their selenographic positions, oriented by the ecliptic pole.
- No David Magro photographs are used on this page.

## Processing scripts
Kept outside the site (build scratchpad): `make_sky.py` (texture tone mapping) and `make_stars.py` (catalogue packing).
