eomatch.mu_stac.MatchupCatalogue.add_event

eomatch.mu_stac.MatchupCatalogue.add_event#

MatchupCatalogue.add_event(event: MatchupEvent) Item[source]#

Add a MatchupEvent to the catalogue, returning its STAC Item.

If the event has a registered matchup_set, its matchups are also added to the catalogue. The event Item carries a related link (matchup:role=matchup) for each matchup Item, so that get_events() can navigate forward from event to matchups without scanning the whole matchup collection.

If an Item with the same ID already exists in the catalogue the existing Item is returned unchanged (idempotent).