hydromt.model.components.GridComponent.read#
- GridComponent.read(filename: str | None = None, **kwargs) None[source]#
Read model grid data at <root>/<fn> and add to grid property.
key-word arguments are passed to
open_nc()- 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 (
dict) – Additional keyword arguments to be passed to the open_nc method.