Skip to main content
Describe an asset and its primary and alternate locations.

Fields

str
The asset’s unique key within its datapoint.
AssetLocation
The primary asset location.
Mapping[str, AssetLocation]
Alternate locations keyed by their STAC alternate-assets key.
MediaType | str | None
The exact media type.
frozenset[KnownAssetRole | str]
Known or custom STAC asset roles.
tuple[Band, ...]
Ordered band metadata.
The other fields contain optional STAC metadata defined by extensions such as Electro-Optical, Projection, and Raster.

Media types

Import MediaType with the authoring types from tilebox.datasets.assets. Its members are strings, such as MediaType.GEOTIFF, MediaType.CLOUD_OPTIMIZED_GEOTIFF, MediaType.PNG, and MediaType.NETCDF. You can also pass a custom media type string.
Python