wradlib.georef.rect.grid_to_polyvert

wradlib.georef.rect.grid_to_polyvert(grid, ravel=False)

Get polygonal vertices from rectangular grid coordinates.

Parameters:
  • grid (numpy.ndarray) – grid edge coordinates

  • ravel (bool) – option to flatten the grid

Returns:

polyvert (numpy.ndarray) – A 3-d array of polygon vertices with shape (…, 5, 2).