odc.stac.extract_collection_metadata

odc.stac.extract_collection_metadata(item, cfg=None, md_plugin=None)[source]

Use sample item to figure out raster bands within the collection.

  1. Decide which assets contain raster data

  2. Extract metadata about about rasters from STAC or from cfg

  3. See if proj data is available and group bands by resolution

  4. Construct alias map from common names and user config

Parameters:
  • item (Item) – Representative STAC item from a collection.

  • cfg (Optional[Dict[str, Any]]) – Optional user configuration

Return type:

RasterCollectionMetadata

Returns:

RasterCollectionMetadata