- Ruby 95.5%
- Shell 4.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| data | ||
| out | ||
| .gitignore | ||
| AGENTS.md | ||
| DERIVED.sha256 | ||
| fetch-sources.sh | ||
| histogram.rb | ||
| poster.pdf | ||
| poster.rb | ||
| prepare.rb | ||
| PROVENANCE.md | ||
| README.md | ||
| SOURCES.sha256 | ||
| UPSTREAM_SHA | ||
| verify.sh | ||
The Inner Solar System and the Main Asteroid Belt
A1 poster (594 × 841 mm) of everything larger than 10 km inside 3.6 AU, generated from NASA JPL orbital elements.
Files
| File | What it is |
|---|---|
out/inner_system_A1.svg |
Master — layered for Inkscape |
out/inner_system_A1.pdf |
Print-ready, A1 page size |
data/*.csv |
Generated inputs — see PROVENANCE.md |
poster.rb |
Draws the poster |
AGENTS.md |
Decisions, rejected approaches, gotchas — read this first |
prepare.rb |
Source CSVs → belt_10km.csv |
histogram.rb |
Full catalogue → kirkwood_hist.csv |
fetch-sources.sh / verify.sh |
Provenance — see PROVENANCE.md |
Generating
ruby poster.rb
ruby poster.rb --seed 12345 # reshuffle asteroid longitudes
ruby poster.rb --marks streak # see note below
ruby poster.rb --radius instant # see note below
Tunables
All the knobs — radius cut, seed, colour boundary, label thresholds, size-row
count, systems-panel geometry — are in one block at the top of poster.rb.
The seed
SEED at the top of poster.rb is pinned to 20261024. It fixes the
randomised longitudes, so reruns are identical. It is recorded in three places
so a given poster can always be traced back: the data-seed attribute on the
root <svg>, the last line of the colophon, and here.
Each asteroid's longitude is derived from SHA256(seed + designation) rather
than from a sequential draw, so the map does not depend on row order. Adding a
newly discovered asteroid moves that asteroid and nothing else.
Marker modes
--marks dot (default) draws one sampled position per object. --marks streak
draws a radial segment from perihelion to aphelion, which removes the sampling
entirely — but at 7,938 objects it saturates into a solid fan and the Kirkwood
structure disappears. It is worth using only at a much higher diameter cut
(roughly 50 km and up, a few hundred objects), where each streak is legible.
Rasterising
No rasteriser is bundled. Any of these work:
inkscape out/inner_system_A1.svg --export-filename=poster.pdf
rsvg-convert -f pdf -o poster.pdf out/inner_system_A1.svg
python3 -c "import cairosvg; cairosvg.svg2pdf(url='out/inner_system_A1.svg', write_to='poster.pdf')"
For a 300 dpi raster at A1, export at 7016 px wide.
Optional: upstream as a submodule
Only needed to re-derive data/. fetch-sources.sh is the lighter path.
git submodule add --depth 1 https://github.com/eleanorlutz/asteroids_atlas_of_space vendor/atlas-of-space
git -C vendor/atlas-of-space checkout $(cat UPSTREAM_SHA)
The repository is ~80 MB and frozen since 2019, which is why a plain clone is not a build dependency.
Editing in Inkscape
The SVG is authored with Inkscape layers — 15 of them, flat at the top level, in millimetre document units. Each asteroid class is its own layer, so the outer belt can be hidden or recoloured independently of the main belt.
Treat the SVG as build output: ruby poster.rb overwrites it. Either stop
regenerating once you start editing by hand, or push changes back into the
script.
If a print shop substitutes an ugly font, convert text to paths first
(Path → Object to Path) before sending.
Cartographic notes
- Radial scale is linear, 0–3.6 AU. The belt keeps its true proportions; a log scale is only needed once the outer planets are in frame.
- Radius is the orbit's semi-major axis (
--radius semimajor, the default). Nothing is sampled radially, the resonance gaps appear on the disc itself, and the colour boundary falls inside one of them.--radius instantinstead places each object at a sampled instantaneous distance: that shows the belt's true radial spread — about five times wider, 1.10–4.79 AU against 2.45–3.23 — and the 433 objects that reach inside 2.0 AU at perihelion, but it hides the gaps and makes the disc restate what the histogram already says. - Planetary orbits are true ellipses, Sun at a focus, oriented by each planet's real longitude of perihelion (J2000, JPL SSD), with each planet at aphelion. Eccentricity reads as an off-centre Sun rather than a flattened ring: Mercury's focus is 5.6 mm off centre but its ellipse is only 2.1% flatter than a circle.
- The sixteen named objects sit on evenly spaced longitudes, assigned rather than hashed, since angle carries no information here.
- Every other longitude is randomised. The belt is very nearly axisymmetric, so the distribution is faithful even though no individual position is. The map is not a snapshot of any date.
- Colour splits at the 2:1 Kirkwood gap, 3.279 AU, not at JPL's 3.2. The JPL figure is a round number for database bookkeeping: 77% of the objects it files as "outer main-belt" are still on the main belt's dense outer slope. The 2:1 resonance is the belt's real outer edge, and past it lies the Cybele region — 232 of these objects.
- Named callouts are chosen by threshold,
FEATURED_MIN_KM = 250.0, read from the data rather than listed by hand. That catches eleven, from Ceres down to Sylvia. Labels carry the designation, because 52 Europa is a main-belt asteroid and not Jupiter's moon. The scale strip uses the same selection. - Four innermost objects get small labels,
INNER_MAX_AU = 2.10. They are the only objects over 10 km orbiting inside 2.1 AU, against 7,934 in the belt proper. - The three lower panels share one height,
BAND_H: histogram peak, systems orbits and Luna are all 53 mm. - The lower band is the only part drawn to scale. Three satellite systems on the left, each at its own stated scale, with true elliptical orbits and each moon at apoapsis; Luna and the largest asteroids on the right at one shared scale. Everywhere else markers are enlarged so 10 km objects remain visible.
Data: NASA JPL Small-Body Database. Resonance radii after Kirkwood. Belt mass
after Pitjeva. See PROVENANCE.md for pinning and reproduction.