hydromt_sfincs.utils.rotated_grid#

hydromt_sfincs.utils.rotated_grid(pol: Polygon, res: float, dec_origin=0, dec_rotation=3) Tuple[float, float, int, int, float][source]#

Returns the origin (x0, y0), shape (mmax, nmax) and rotation of the rotated grid 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