hydromt_delft3dfm.DFlowFMModel.set_mesh#
- DFlowFMModel.set_mesh(data: UgridDataArray | UgridDataset, name: str | None = None, grid_name: str | None = None, overwrite_grid: bool | None = False) None [source]#
Add data to mesh.
All layers of mesh have identical spatial coordinates in Ugrid conventions.
- Parameters:
data (xugrid.UgridDataArray or xugrid.UgridDataset) – new layer to add to mesh
name (str, optional) – Name of new object layer, this is used to overwrite the name of a UgridDataArray.
grid_name (str, optional) – Name of the mesh grid to add data to. If None, inferred from data. Can be used for renaming the grid.
overwrite_grid (bool, optional) – If True, overwrite the grid with the same name as the grid in self.mesh.