hydromt.model.processes.grid.create_rotated_grid_from_geom#

hydromt.model.processes.grid.create_rotated_grid_from_geom(geom: GeoDataFrame, *, res: float, dec_origin: int, dec_rotation: int) DataArray[source]#

Create a rotated grid based on a geometry.

Parameters:
  • geom (gpd.GeoDataFrame) – The geometry to create the grid from.

  • res (float) – The resolution of the grid.

  • dec_origin (int) – The number of significant numbers to round the origin points to.

  • dec_rotation (int) – The number of significant numbers to round the rotation to.

Returns:

A rotated grid based on the geometry.

Return type:

xr.DataArray