Skip to content

Chart what the catalog knows from a survey, and what it estimates - #20

Merged
loggger101 merged 1 commit into
mainfrom
catalog-coverage-chart
Nov 30, 2026
Merged

loggger101 merged 1 commit into
mainfrom
catalog-coverage-chart

Conversation

@loggger101

Copy link
Copy Markdown
Owner

Summary

  • New chart in Space economics, after the surveys chart: for each property of AsteroidCatalog's data-2026-11-13 release, the bodies a survey supplied it for (gold) and those the catalog estimates it for (hollow), on a log scale. Every asteroid has an orbit, 9.5% have a measured diameter, 46,159 a rotation period, and only 524 a measured mass, which is the headline. Desktop and phone versions.
  • tools/catalog_profile.py counts this by hand from the release's 218 MB parquet (pyarrow) into a 2 KB tools/catalog_profile.json, as belt_profile.py does for the footer. CI never needs the parquet; coverage.py draws from the JSON and writes the README sentence and alt text.
  • check.py --fresh, run by the weekly links job, turns red when the release named in the catalog manifest (refreshed weekly) is newer than the one the JSON counts. A new release can't block the weekly refresh itself.

Test plan

  • Downloaded parquet's sha256 matches the release manifest's
  • python tools/check.py --fresh passes
  • python tools/test_tools.py (156 ok) and python tools/test_loc.py pass
  • Planting an older release in catalog_profile.json flags the stale chart, README and release
  • Both SVGs rendered and looked at

🤖 Generated with Claude Code

coverage.py draws, for each property of AsteroidCatalog's latest release,
the bodies a survey supplied it for (filled) and those the catalog
estimates it for (hollow), on a log scale: every asteroid has an orbit,
9.5% a measured diameter and 524 a measured mass. catalog_profile.py
counts it by hand from the release's parquet into catalog_profile.json,
like the footer's belt, and check.py --fresh turns red when the manifest
the weekly refresh reads names a newer release than the JSON counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@loggger101
loggger101 merged commit 01a94bb into main Nov 30, 2026
2 checks passed
@loggger101
loggger101 deleted the catalog-coverage-chart branch November 30, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant