eomatch.mu_stac.MatchupCatalogue.remove_product_asset

eomatch.mu_stac.MatchupCatalogue.remove_product_asset#

MatchupCatalogue.remove_product_asset(product: scrappi.ProductItem, asset_key: str, delete_file: bool = True) bool[source]#

Remove a STAC asset from a product Item, optionally deleting the local file.

Parameters:
  • product – the ProductItem whose catalogue Item to update.

  • asset_key – asset key to remove, e.g. "data".

  • delete_file – if True (default), delete the local file or directory that the asset href points to. Remote URLs are never deleted.

Returns:

True if the asset was found and removed, False if the item or asset was not found.