hydromt.model.components.DatasetsComponent.read#

DatasetsComponent.read(filename: str | None = None, **kwargs) None[source]#

Read model dataset files at <root>/<filename>.

key-word arguments are passed to hydromt.readers.open_ncs()

Parameters:
  • filename (str, optional) – Filename relative to model root. Should contain either a * wildcard character or a {name} placeholder to read multiple files into the data dictionary. All files matching the glob pattern defined by filename will be read. If a {name} placeholder is used, that name will be used as the key in the data dictionary. If no {name} placeholder is used, the filename without extension will be used as the key in the data dictionary. If None, the path that was provided at init will be used.

  • **kwargs – Additional keyword arguments that are passed to the hydromt.readers.open_ncs function.