hydromt.model.components.SpatialDatasetsComponent.read#

SpatialDatasetsComponent.read(filename: str | None = None, single_var_as_array: bool = True, **kwargs) None[source]#

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

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

Parameters:
  • filename (str, optional) – filename relative to model root. should contain a {name} placeholder which will be used to determine the names/keys of the datasets. if None, the path that was provided at init will be used.

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