Browse the EUMETSAT catalog (no network)¶
The curated catalog resolves a friendly key to the real Data Store EO:EUM:DAT:… id, its group, output kind, and on-disk format — entirely offline.
Setup¶
Import Catalog from the EUMETSAT backend and Counter for the group tally below. No credentials or network are needed — the catalog ships as package data.
from collections import Counter
from earthlens.eumetsat import Catalog
Load the catalog¶
Instantiate Catalog() and compare the curated collections (rows with band/format metadata) against the larger available_datasets index of every known Data Store id.
cat = Catalog()
print(
len(cat.datasets),
'curated collections;',
len(cat.available_datasets),
'in the available index',
)
Collections by group¶
Tally the curated collections by their group to see how the catalog is organised across product families.
groups = Counter(c.group.value for c in cat.datasets.values())
for g, n in sorted(groups.items()):
print(f'{g:14s} {n}')
List every curated collection¶
Print each friendly key alongside its group, on-disk format, and the real Data Store collection_id it resolves to.
for key, col in sorted(cat.datasets.items()):
print(f'{key:34s} {col.group.value:12s} {col.format:8s} {col.collection_id}')
Friendly misses suggest the closest key¶
Looking up an unknown key raises a ValueError whose message points at the nearest valid key, so typos are easy to fix.
# A friendly miss suggests the closest key.
try:
cat.get_dataset('msg-hrsevir')
except ValueError as exc:
print(exc)
Next steps¶
Pass any of these keys in variables={key: [selector]} to the EUMETSAT backend — see the live-fetch notebooks in this section.