eomatch.mu_stac.MatchupCatalogue.remove_matchup_asset#
- MatchupCatalogue.remove_matchup_asset(matchup: Matchup, asset_key: str, delete_file: bool = True) bool[source]#
Remove a STAC asset from a matchup Item, optionally deleting the local file.
Also removes the key from
matchup.assetsif present.- Parameters:
matchup – the
Matchupwhose catalogue Item to update.asset_key – asset key to remove.
delete_file – if
True(default), delete the local file or directory.
- Returns:
Trueif the asset was found and removed,Falseotherwise.