odc.stac.RasterCollectionMetadata¶
- class odc.stac.RasterCollectionMetadata(name, bands, aliases, 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, bands, aliases, has_proj, band2grid)¶
Methods
__init__
(name, bands, aliases, has_proj, …)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
()normalize_band_query
([bands])resolve_bands
([bands])Query bands taking care of aliases.
values
()Attributes
all_bands
name
Collection name.
bands
Bands are assets that contain raster data.
aliases
Alias map
alias -> [(asset, idx),...]
.has_proj
Whether to expect/look for
proj
extension on item assets.band2grid
Band name to grid name mapping.