eomatch.mu_stac.MatchupCatalogue.add_event_asset

eomatch.mu_stac.MatchupCatalogue.add_event_asset#

MatchupCatalogue.add_event_asset(event: MatchupEvent, asset_key: str, asset: Asset) bool[source]#

Add or replace a STAC asset on a matchup event Item in the catalogue.

Also updates event.assets so the in-memory object stays in sync.

Parameters:
  • event – the MatchupEvent whose catalogue Item to update.

  • asset_key – asset key, e.g. "thumbnail".

  • assetpystac.Asset to register.

Returns:

True if the item was found and updated, False if not found.