hydromt.model.components.DatasetsComponent.set#
- DatasetsComponent.set(data: Dataset | DataArray, name: str | None = None, split_dataset: bool = False)[source]#
Add data to the xarray component.
- Parameters:
data (
xarray.Dataset
orxarray.DataArray
) – New xarray object to addname (
str
) – name of the xarray.