hydromt.data_catalog.DataCatalog.from_dict#
- DataCatalog.from_dict(data_dict: Dict, root: Optional[Union[str, Path]] = None, category: Optional[str] = None, mark_used: bool = False) None [source]#
Add data sources based on dictionary.
- Parameters:
Examples
A data dictionary with two entries is provided below, where all the text between <> should be filled by the user. See the specific data adapters for more information about the required and optional arguments.
{ <name1>: { "path": <path>, "data_type": <data_type>, "driver": <driver>, "kwargs": {<key>: <value>}, "crs": <crs>, "nodata": <nodata>, "rename": {<native_variable_name1>: <hydromt_variable_name1>}, "unit_add": {<hydromt_variable_name1>: <float/int>}, "unit_mult": {<hydromt_variable_name1>: <float/int>}, "meta": {...}, "placeholders": {<placeholder_name_1>: <list of names>}, } <name2>: { ... } }