API reference#
This page provides an auto-generated summary of eomatch’s API. For more details and examples, refer to the relevant chapters in the user guide.
Domain model#
|
Interface event of satellites crossing each other |
Return a STAC Item representing this matchup event. |
|
Reconstruct a MatchupEvent from a STAC Item. |
|
Prepare one scrappi query per collection/platform pair in this MatchupEvent. |
|
STAC Item ID for this matchup event. |
|
Return platform names joined by underscore. |
|
|
Plot the product footprints for all matchups in this event's matchup_set, coloured by collection. |
|
Container for |
|
Interface collocated products |
Returns polygon of collocation region for matchup products |
|
|
plot geometries in matchup set |
Returns earliest start time and latest stop time of matchup products |
|
Returns the absolute time difference between matchup product start times in seconds |
|
|
Returns the time difference |
Return match-up dataset by downloading the products if required, reading in data for each product and assembling a match-up DataTree. |
|
|
Return a STAC Item representing this matchup. |
|
Reconstruct a Matchup from a STAC Item. |
STAC Item ID for this matchup, or |
|
|
Container for |
Returns collection sets of matchups within matchup set |
Discovery#
|
Finder for collocated pairs of satellite image products. |
Run the full matchup discovery pipeline. |
|
Return an |
|
Filter a list of raw orbitx events against the bounds in the context config. |
|
|
Convert raw orbitx event dicts to |
|
Query scrappi for each event and build per-event |
|
Finder for collocated pairs of satellite and in-situ (ground-based) products. |
Run the full matchup discovery pipeline. |
|
Identify candidate matchup events between the satellite and in-situ site. |
|
|
Split products into clusters by time gap, returning cluster boundary indices. |
|
Query scrappi for each event and build per-event |
Cataloguing#
|
STAC catalogue organising matchup events and matchup items. |
|
Add a MatchupEvent to the catalogue, returning its STAC Item. |
|
Add a Matchup and its source products to the catalogue, returning its STAC Item. |
|
Return MatchupEvents from the catalogue, each with its MatchupSet populated. |
|
Remove a matchup Item from the catalogue by ID, tolerating a missing or corrupted item file. |
|
Normalise hrefs and write the catalogue to disk. |
|
Open an existing catalogue from a root |
Download all source products for the given events and register each as a |
|
|
Add or replace a STAC asset on a product Item in the catalogue. |
|
Add or replace a STAC asset on an item identified by collection and item ID. |
|
Add or replace a STAC asset on a matchup event Item in the catalogue. |
|
Add or replace a STAC asset on a matchup Item in the catalogue. |
Add or replace a STAC asset on the matchup Collection (e.g. |
|
Add or replace a STAC asset on the matchup-events Collection (e.g. |
|
|
Remove a STAC asset from a product Item, optionally deleting the local file. |
|
Remove a STAC asset from a matchup event Item, optionally deleting the local file. |
|
Remove a STAC asset from a matchup Item, optionally deleting the local file. |
Remove a STAC asset from the matchup Collection, optionally deleting the local file. |
|
Remove a STAC asset from the matchup-events Collection, optionally deleting the local file. |
|
|
Add or replace a STAC asset on a child Collection. |
Remove a STAC asset from a child Collection, optionally deleting the local file. |
Central catalogue#
|
Push a local pystac catalogue into a pgSTAC database. |
|
Pull items from a STAC API and write them to a local pystac catalogue. |
Enrichment#
|
Apply enrichers to matchup items in catalogue. |
|
Return the highest cloud fraction among this matchup's products. |
|
Return the real-data proximity of this matchup's in-situ product(s) to the crossover. |
|
Return the percentage of this matchup's collocation region flagged as cloud. |
|
Return the fraction of this matchup's collocation region with valid satellite data. |
|
Return the signed time difference between the two sensor overpasses. |
|
Return the area and centroid of the collocation region. |
|
Return the solar elevation angle at the collocation centroid midpoint. |
|
Return the fraction of the collocation region that lies over land. |
Pipeline#
|
Run |
|
Run |
Datasets and previews#
|
Utility class for building matchup DataTree datasets. |
|
Build a matchup DataTree from a |
|
Read each product in product_item_set, subsetting spatial (raster) products to roi. |
|
Assemble an |
|
Resolve the local filesystem path for product, downloading it first if needed. |
|
Generate a side-by-side preview image for a matchup. |
|
Generate preview thumbnails for matchups and events in a STAC catalogue. |
Managing assets and products#
|
Register an analysis output file as versioned STAC assets on a matchup item. |
|
Generate and register asset_key for every item in items that doesn't already have it. |
|
Download source products for catalogue events matching the given filters. |
|
Remove downloaded product files for catalogue events matching the given filters. |
|
Print a status summary of the central catalogue to stdout. |
Utilities#
|
Crop gridded products to the lat/lon bounding box where all of them have valid measurement data. |