eomatch.Matchup.return_matchup_dataset#
- Matchup.return_matchup_dataset(collection_read_args: dict | None = None) DataTree[source]#
Return match-up dataset by downloading the products if required, reading in data for each product and assembling a match-up DataTree.
Per-collection
vars_sel,read_params, andprocessorsdefaults are read from thereadsection of the context config (see_resolve_read_kwargs()for the full merge order).collection_read_argsoverrides those defaults at call time.Basic usage — rely entirely on config defaults:
dt = matchup.return_matchup_dataset()
Select specific bands per collection — each collection has its own variable names, so override per collection keyed by STAC collection ID.
vars_selwithin a collection is a full replacement:dt = matchup.return_matchup_dataset( collection_read_args={ "S2_MSI_L1C": {"vars_sel": {"meas": ["B02", "B03", "B04", "B08"]}}, "LANDSAT_C2L1": {"vars_sel": {"meas": ["B2", "B3", "B4", "B5" ]}}, } )
Apply specific processors per collection:
dt = matchup.return_matchup_dataset( collection_read_args={ "S2_MSI_L1C": {"processors": {"toa_reflectance": {}}}, } )
Nudge a read parameter for one collection —
read_paramswithin a collection entry is merged at the sub-key level:dt = matchup.return_matchup_dataset( collection_read_args={ "LANDSAT_C2L1": {"read_params": {"use_chunks": True}}, } )
- Parameters:
collection_read_args – per-collection call-time overrides, keyed by STAC collection ID. Each value is a dict with any of the keys
vars_sel(full replacement),read_params(sub-key merge), andprocessors(full replacement). Takes precedence over config defaults for that collection.- Returns:
match-up DataTree with one node per sensor (
sensor_1,sensor_2, …)- Raises:
ValueError – if no products are set on this matchup