hydromt.data_catalog.DataCatalog.to_stac_catalog#

DataCatalog.to_stac_catalog(root: str | Path, source_names: List[str] | None = None, meta: Dict[str, Any] | None = None, catalog_name: str = 'hydromt-stac-catalog', description: str = 'The stac catalog of hydromt', used_only: bool = False, catalog_type: CatalogType = 'RELATIVE_PUBLISHED', handle_nodata: NoDataStrategy = NoDataStrategy.IGNORE)[source]#

Write data catalog to STAC format.

Parameters:
  • path (str, Path) – stac output path.

  • root (str, Path, optional) – Global root for all relative paths in yaml file. If “auto” (default) the data source paths are relative to the yaml output path.

  • source_names (list, optional) – List of source names to export, by default None in which case all sources are exported. This argument is ignored if used_only=True.

  • used_only (bool, optional) – If True, export only data entries kept in used_data list, by default False.

  • meta (dict, optional) – key-value pairs to add to the data catalog meta section, such as ‘version’, by default empty.