hugging-science/mmu-crossmatch
0
MultimodalUniverse catalog crossmatch explorer
A Gradio app for exploring which MultimodalUniverse catalogs overlap on the sky, and crossmatching them — for real — on a single HEALPix pixel.
How it works
- Catalog 1 — pick any MMU catalog.
- Catalog 2 — the dropdown is trimmed to only the catalogs that actually share sky coverage with catalog 1.
- HEALPix pixel — trimmed to the pixels both catalogs cover. Selecting one draws it on an instant all-sky coverage map.
- Run crossmatch — downloads exactly that HEALPix partition of each catalog from HuggingFace and runs a real lsdb spatial crossmatch (like the showcase notebook), then plots the matched source pairs.
- Show code — prints the exact lsdb snippet for the current selection so you can reproduce it.
The overlap lookup comes from the stored catalog_healpix.csv. MMU v1 partitions every catalog on the same HEALPix order 4 / nside 16 (NESTED) scheme (3072 pixels, 0–3071), so two catalogs overlap exactly when they share a healpix value. The HuggingFace datasets are named UniverseTBD/mmu_{catalog}_{subcatalog}.
Files
Regenerating the lookup
python build_lookup.py # all catalogs
python build_lookup.py gaia chandra # just twoRun locally
pip install -r requirements.txt
python app.pyNote: the crossmatch downloads the selected HEALPix partition from HuggingFace at run time, so the first match for a pixel takes a little while (≈1 min for a large catalog like Gaia); the instant coverage map needs no download.
