imod.util.ones_like_ugrid#
- imod.util.ones_like_ugrid(grid: Ugrid2d) UgridDataArray [source]#
Create an UgridDataArray of ones with the same shape and coordinates as the given Ugrid2d.
- Parameters:
grid (xu.Ugrid2d) – The unstructured grid to create an array for.
- Returns:
An array of ones with the same shape and coordinates as the grid.
- Return type:
xu.UgridDataArray