odc.stac.RasterBandMetadata

class odc.stac.RasterBandMetadata(data_type=None, nodata=None, units='1', dims=())[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 nodata value and have common units.

These values are extracted from the eo:bands extension, but can also be supplied by the user from the config.

__init__(data_type=None, nodata=None, units='1', dims=())

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_type

Numpy compatible dtype string.

dims

Dimension names for this band.

dtype

Alias for data_type.

extra_dims

Non-spatial dimension names.

ndim

Number of dimensions.

nodata

Nodata marker/fill_value.

unit

Alias for units.

units

Units of the pixel data.

ydim

Index of y dimension, typically 0.