eomatch.datatree.BuildMUDT#
- class eomatch.datatree.BuildMUDT(context: EOMatchContext | None = None)[source]#
Utility class for building matchup DataTree datasets.
Reads each product in a
Matchupviaeoioand assembles the results into anxarray.DataTreewith 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
EOMatchContextsupplyingreadconfig; defaults toEOMatchContext().
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.DataTreefrom a list of per-sensor datasets.