hydromt.model.components.SpatialDatasetsComponent.read#

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

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

key-word arguments are passed to hydromt.io.readers.open_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.open_nc function.