eomatch.mu_stac.MatchupCatalogue.add_product_asset#
- MatchupCatalogue.add_product_asset(product: scrappi.ProductItem, asset_key: str, asset: Asset) bool[source]#
Add or replace a STAC asset on a product Item in the catalogue.
- Parameters:
product – the
ProductItemwhose 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.