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.assetsso the in-memory object stays in sync.- Parameters:
event – the
MatchupEventwhose catalogue Item to update.asset_key – asset key, e.g.
"thumbnail".asset –
pystac.Assetto register.
- Returns:
Trueif the item was found and updated,Falseif not found.