eomatch.datatree.BuildMUDT

eomatch.datatree.BuildMUDT#

class eomatch.datatree.BuildMUDT(context: EOMatchContext | None = None)[source]#

Utility class for building matchup DataTree datasets.

Reads each product in a Matchup via eoio and assembles the results into an xarray.DataTree with one node per sensor, keyed by the STAC collection ID.

Example usage:

from eomatch.datatree import BuildMUDT

builder = BuildMUDT()
mudt = builder.run(matchup)
# mudt["LANDSAT_C2L1"], mudt["S2_MSI_L1C"], …
__init__(context: EOMatchContext | None = None) → None[source]#

Initialise the builder.

Parameters:

context – optional EOMatchContext supplying read config; defaults to EOMatchContext().

Methods

__init__([context])

Initialise the builder.

download_products(product[, download])

Download a product via scrappi.

read_products(product_item_set, roi[, ...])

Read each product in product_item_set, subsetting spatial (raster) products to roi.

run(matchup[, collection_read_args, ...])

Build a matchup DataTree from a Matchup.

to_datatree(product_ds[, opt_attrs, ...])

Assemble an xarray.DataTree from a list of per-sensor datasets.