hydromt.Model.set_maps#

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

Add raster data to the maps component.

Dataset can either be added as is (default) or split into several DataArrays using the split_dataset argument.

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

  • name (str, optional) – Variable name, only in case data is of type DataArray or if a Dataset is added as is (split_dataset=False).

  • split_dataset (bool, optional) – If data is a xarray.Dataset split it into several xarray.DataArrays.