hydromt.model.processes.mesh.create_mesh2d_from_geom#

hydromt.model.processes.mesh.create_mesh2d_from_geom(geom: GeoDataFrame, *, res: float, align: bool, clip_to_geom: bool) UgridDataset[source]#

Create a regular 2D mesh from a boundary geometry.

Parameters:
  • geom (gpd.GeoDataFrame) – Boundary geometry.

  • res (float) – Resolution of the mesh.

  • align (bool) – Align the mesh to the resolution.

  • clip_to_geom (bool) – Mask inactive cells of the mesh to the boundary geometry.

Returns:

mesh2d – Generated mesh2d.

Return type:

xu.UgridDataset