eomatch.mu_stac.MatchupCatalogue.add_collection_asset

eomatch.mu_stac.MatchupCatalogue.add_collection_asset#

MatchupCatalogue.add_collection_asset(collection_id: str, asset_key: str, file_path: str, media_type: str | None = None, title: str | None = None, roles: List[str] | None = None) → bool[source]#

Add or replace a STAC asset on a child Collection.

Parameters:
  • collection_id – ID of the child Collection to update.

  • asset_key – asset key to set, e.g. "report".

  • file_path – path to the asset file.

  • media_type – media type of the asset.

  • title – title of the asset.

  • roles – roles of the asset.

Returns:

True if the collection was found and updated, False if not found.