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
orxarray.DataArray
) – New forcing data to addname (
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.