default_asset_bands#

geodesic.boson.default_asset_bands(default_asset_bands)[source]#

Sets the default value of asset_bands in a pixels request on a Dataset.

This is useful for when you are creating a static dataset and want to set the default bands that will be used in the pixels request or for when you have a dataset that has multiple bands and you want to set the default bands that will be used in the pixels request.

Parameters:
  • default_asset_bands (List[AssetBands]) – list of AssetBands objects that will be used as the default bands

  • request (in the pixels)

Example

>>> # Set the default asset bands to be the first band of the rasterized asset
>>> default_asset_transform = Middleware.default_asset_bands(
...     [AssetBands(asset="rasterized", bands=[0])]
... )