hydromt_wflow.WflowModel.set_states#
- WflowModel.set_states(data: DataArray | Dataset, name: str | None = None)[source]#
Add data to states.
All layers of states must have identical spatial coordinates. This is an inherited method from HydroMT-core’s StatesModel.set_states with some fixes. If basin data is available the states will be masked to that upon setting.
- Parameters:
data (xarray.DataArray or xarray.Dataset) – new map layer to add to states
name (str, optional) – Name of new map layer, this is used to overwrite the name of a DataArray and ignored if data is a Dataset