eomatch.Matchup

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 - collection1 in total seconds.

to_stac_item([event_id])

Return a STAC Item representing this matchup.

Attributes

collocation_region

Returns polygon of collocation region for matchup products

product_time_bounds

Returns earliest start time and latest stop time of matchup products

products

stac_id

STAC Item ID for this matchup, or None if no products are set.

time_diff_abs

Returns the absolute time difference between matchup product start times in seconds