eomatch.Matchup#
- class eomatch.Matchup(products: scrappi.ProductItemSet | None = None, context: EOMatchContext | None = None, assets: Dict[str, Asset] | None = None)[source]#
Interface collocated products
- Parameters:
products – list of product info dictionaries (from
scrappi.return()
- __init__(products: scrappi.ProductItemSet | None = None, context: EOMatchContext | None = None, assets: Dict[str, Asset] | None = None) None[source]#
Methods
__init__([products, context, assets])from_stac_item(item)Reconstruct a Matchup from a STAC Item.
plot_geometries([ax])plot geometries in matchup set
return_matchup_dataset([collection_read_args])Return match-up dataset by downloading the products if required, reading in data for each product and assembling a match-up DataTree.
time_diff([collection1, collection2])Returns the time difference
collection2 - collection1in total seconds.to_stac_item([event_id])Return a STAC Item representing this matchup.
Attributes
Returns polygon of collocation region for matchup products
Returns earliest start time and latest stop time of matchup products
productsSTAC Item ID for this matchup, or
Noneif no products are set.Returns the absolute time difference between matchup product start times in seconds