1.2.1. tds2stac.assets module#

class tds2stac.assets.Assets[source]#

Bases: object

This class is tasked with the responsibility of incorporating assets into STAC-Collections and STAC-Items.

collection(harvesting_vars: dict, collection_dict: dict, stac_catalog: Catalog, asset_properties: dict = {}, logger_properties: dict = {})[source]#

This is a function for adding assets to STAC-Collections.

Parameters:
  • asset_properties (dict) – A dictionary containing the properties of the assets for more information refer to asset_properties.

  • harvesting_vars (dict) – A dictionary containing the variables required for harvesting.

  • collection_dict (dict) – A dictionary containing the properties of the collection.

  • stac_catalog (pystac.Catalog) – A STAC-Catalog.

  • logger_properties (dict) – A dictionary containing the properties of the logger for more information refer to logger_properties.

item(harvesting_vars: dict, item: Item, url: str, Recognizer_output: str | None = None, aggregated_dataset_url: str | None = None, asset_properties: dict | None = {}, logger_properties: dict = {})[source]#

This is a function for adding assets to STAC-Items.

Parameters:
  • harvesting_vars (dict) – A dictionary containing the variables required for harvesting.

  • item (pystac.Item) – A STAC-Item.

  • Recognizer_output (dict) – A dictionary containing the scenario output of the Recognizer.

  • aggregated_dataset_url (str) – The URL of the aggregated dataset.

  • url (str) – The URL of the catalog. It will be used for thumbnails

  • asset_properties (dict) – A dictionary containing the properties of the assets for more information refer to asset_properties.

  • logger_properties (dict) – A dictionary containing the properties of the logger for more information refer to logger_properties.