eomatch.mu_stac.MatchupCatalogue.add_product_asset

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 ProductItem 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.