eomatch.mu_stac.MatchupCatalogue.add_matchup_asset

eomatch.mu_stac.MatchupCatalogue.add_matchup_asset#

MatchupCatalogue.add_matchup_asset(matchup: Matchup, asset_key: str, asset: Asset) bool[source]#

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

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

Parameters:
  • matchup – the Matchup whose catalogue Item to update.

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

  • assetpystac.Asset to register.

Returns:

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