- odc.stac.eo3.stac2ds(items, cfg=None, product_cache=None)[source]¶
Given a lazy sequence of STAC
Itemobjects turn it into a lazy sequence of
Itemfor a given collection is used to construct
datacubeproduct definition. After that, all subsequent items from the same collection are interpreted according to that product spec. Specifically this means that every item is expected to have the same set of bands. If product contains bands with different resolutions, it is assumed that the same set of bands share common resolution across all items in the collection.
Any]]) – Supply metadata missing from STAC, configure aliases, control warnings
DatasetType]]) – Input/Output parameter, contains mapping from collection name to deduced product definition, i.e.
sentinel-2-l2a: # < name of the collection, i.e. `.collection_id` assets: "*": # Band named "*" contains band info for "most" bands data_type: uint16 nodata: 0 unit: "1" SCL: # Those bands that are different than "most" data_type: uint8 nodata: 0 unit: "1" aliases: #< unique alias -> canonical map rededge: B05 rededge1: B05 rededge2: B06 rededge3: B07 uuid: # Rules for constructing UUID for Datasets mode: auto # auto|random|native(expect .id to contain valid UUID string) extras: # List of extra keys from properties to include (mode=auto) - "s2:generation_time" warnings: ignore # ignore|all (default all) some-other-collection: assets: #... "*": # Applies to all collections if not defined on a collection warnings: ignore