hydromt_wflow.WflowModel.read_forcing#

WflowModel.read_forcing(filename: str = None, **kwargs)[source]#

Read forcing.

Checks the path of the file in the config toml using both input.path_forcing and dir_input. If not found uses the default path inmaps.nc in the root folder.

If several files are used using ‘*’ in input.path_forcing, all corresponding files are read and merged into one xarray dataset before being split to one xarray dataaray per forcing variable in the hydromt forcing dictionary.

Parameters:
  • filename (str, optional) – Name or path to the forcing file(s) to be read. This is the path/name relative to the root folder and if present the dir_input folder. By default None.

  • **kwargs (dict) – Additional keyword arguments to be passed to the read_nc method.