hydromt.model.processes.grid.rotated_grid#

hydromt.model.processes.grid.rotated_grid(pol: Polygon, res: float, dec_origin=0, dec_rotation=3) Tuple[float, float, int, int, float][source]#

Return the origin (x0, y0), shape (mmax, nmax) and rotation of the rotated grid.

The grid is fitted to the minimum rotated rectangle around the area of interest (pol). The grid shape is defined by the resolution (res).

Parameters:
  • pol (Polygon) – Polygon of the area of interest

  • res (float) – Resolution of the grid

  • dec_origin – Number of signifiant numbers to round the origin points to.

  • dec_rotation – Number of signifiant numbers to round the rotation to.