hydromt.Model.set_states#

Model.set_states(data: DataArray | Dataset, name: str | None = None, split_dataset: bool | None = True)#

Add data to states attribute.

Parameters:
  • data (xarray.Dataset or xarray.DataArray) – New forcing data to add

  • name (str, optional) – Results name, required if data is xarray.Dataset and split_dataset=False.

  • split_dataset (bool, optional) – If True (default), split a Dataset to store each variable as a DataArray.