This repository serves as central point for public discussions, examples, and code related to creating virtual zarr stores for CMIP7 data.
uv syncThe ESGF STAC catalogs we build against are operated by other people and change
without notice. cmip7_virtualization.catalog wraps them:
from cmip7_virtualization.catalog import STAC_BASES, collection_counts
collection_counts("https://api.stac.esgf.ceda.ac.uk")
# {'CMIP6': 390739, 'CMIP6Plus': 0, 'CMIP7': 0, 'CORDEX-CMIP6': 990, 'obs4REF': 0}STAC_BASES holds the read/write endpoints for test and production on both the
East (CEDA) and West federations. notebooks/catalog-discovery/catalog-check.ipynb
prints the full matrix in one go.
uv run pytest # everything, including live network tests
uv run pytest -m "not live" # offline only — no network
uv run pytest -m "live and not watch" # live hard invariants only
uv run pytest -m watch # "did the catalogs change?" checkstests/test_live_catalogs.py hits the real catalogs. It is split by marker:
live— hard invariants. Every endpoint is a reachable STAC API, collection discovery works, per-collection counts reconcile against the unfiltered total, and the collections we depend on have not been emptied (floors sit ~10% below observed, so ordinary publication never trips them).watch— assertions that the catalogs are still as last observed. A failure here is a signal, not a defect: it means something moved and a decision is due. Currently watched: West integration's/collections500, West's collection-id case sensitivity, the fact that no catalog serves virtual-Zarr reference assets, collections that are still empty (notably CMIP7 on East prod), and the retiredintegration-testingWest host.
Each watch failure message says what to do about it. The most consequential are
CMIP7 appearing on East prod and reference assets reappearing anywhere.
All the code in this repository is MIT-licensed, but we request that you please provide attribution if reusing any of our digital content (graphics, logo, articles, etc.).
CarbonPlan is a nonprofit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of climate solutions with open data and tools. Find out more at carbonplan.org or get in touch by opening an issue or sending us an email.