hydromt.Model.write_data_catalog#
- Model.write_data_catalog(root: str | Path | None = None, data_lib_fn: str | Path = 'hydromt_data.yml', used_only: bool = True, append: bool = True)[source]#
Write the data catalog to data_lib_fn
- Parameters:
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
.data_lib_fn (str, Path, optional) – Path of output yml file, absolute or relative to the model root, by default “hydromt_data.yml”.
used_only (bool, optional) – If True, export only data entries kept in used_data list. By default True
append (bool, optional) – If True, append to an existing