hydromt.data_catalog.DataCatalog.to_yml#

DataCatalog.to_yml(path: Union[str, Path], root: str = 'auto', source_names: List = [], used_only: bool = False) None[source]#

Write data catalog to yaml format.

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

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

  • source_names (list, optional) – List of source names to export; ignored if used_only=True

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