sta2stac.creator module#

class sta2stac.creator.Creator(logger_properties: dict)[source]#

Bases: object

A class to create the STAC-Catalog, STAC-Collection, and STAC-Item. :param logger_properties: A dictionary of logger properties. :type logger_properties: dict

STACCatalog(sta_link: str, stac_id: str, stac_title: str, stac_description: str, stac_dir: str, default_catalog_name: str = 'catalog.json', stac_existance_catalog: bool = False)[source]#

Create the STAC-Catalog.

STACCollection(stac_id: str, stac_title: str, stac_description: str, harvesting_vars: dict, stac_existance_collection: bool, extra_metadata: dict = {}, asset_properties: dict = {})[source]#

Create the STAC-Collection.

STACItem(harvesting_vars: dict, extra_metadata: dict = {}, datacube_extension: bool = False, asset_properties: dict = {}) None[source]#

Create the STAC-Item.

SaveCatalog(catalog: Catalog, stac_dir: str)[source]#

Save the STAC-Catalog.