eomatch.mu_stac.MatchupCatalogue.open

eomatch.mu_stac.MatchupCatalogue.open#

classmethod MatchupCatalogue.open(path: str, context: EOMatchContext | None = None) → MatchupCatalogue[source]#

Open an existing catalogue from a root catalog.json path.

The catalogue root directory is inferred from path and used to initialise product_fs so that download_products() works without further configuration.

Parameters:
  • path – path to the catalogue’s root catalog.json (or its directory).

  • context – EOMatchContext to attach to the reopened catalogue – passed on to the products it reconstructs (see from_stac_item()), since a product rebuilt from a STAC item has only a bare default context, so the archive path / provider pinning / site registry a run configured has to come from here. Defaults to EOMatchContext() (package defaults + user config only).

Returns:

the reopened catalogue.