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