odc.stac.RasterBandMetadata
- class odc.stac.RasterBandMetadata(data_type=None, nodata=None, units='1', dims=(), driver_data=None, attrs=<factory>)[source]
Common raster metadata per band.
We assume that all assets of the same name have the same “structure” across different items within a collection. Specifically, that they encode pixels with the same data type, use the same
nodatavalue and have common units.These values are extracted from the
eo:bandsextension, but can also be supplied by the user from the config.- __init__(data_type=None, nodata=None, units='1', dims=(), driver_data=None, attrs=<factory>)
Methods
__init__([data_type, nodata, units, dims, ...])patch(**kwargs)Return a new object with updated fields.
with_defaults(defaults)Merge with another metadata object, using self as the primary source.
Attributes
data_typeNumpy compatible dtype string.
dimsDimension names for this band.
driver_dataIO Driver specific extra data.
dtypeAlias for data_type.
extra_dimsNon-spatial dimension names.
ndimNumber of dimensions.
nodataNodata marker/fill_value.
unitAlias for units.
unitsUnits of the pixel data.
ydimIndex of y dimension, typically 0.
attrsAdditional raster band attributes.