odc.stac.RasterCollectionMetadata

class odc.stac.RasterCollectionMetadata(name, meta, has_proj, band2grid)[source]

Information about raster data in a collection.

We assume that assets with the same names have the same kind of raster data across items within a collection. This is built from the combination of data collected from STAC and user configuration if supplied.

__init__(name, meta, has_proj, band2grid)

Methods

__init__(name, meta, has_proj, band2grid)

band_aliases([unique])

Compute inverse of alias mapping.

band_key(band)

Compute canonical band key for an alias/band.

canonical_name(band)

Canonical name for an alias.

get(k[,d])

items()

keys()

meta_for([bands])

Extract raster group metadata for a subset of bands.

normalize_band_query([bands])

rtype:

List[str]

resolve_bands([bands])

Query bands taking care of aliases.

values()

Attributes

aliases

all_bands

bands

name

Collection name.

meta

Band, aliases and extra dimensions metadata.

has_proj

Whether to expect/look for proj extension on item assets.

band2grid

Band name to grid name mapping.