wradlib.georef.rect.grid_to_polyvert

Contents

wradlib.georef.rect.grid_to_polyvert#

wradlib.georef.rect.grid_to_polyvert(grid, *, ravel=False)[source]#

Get polygonal vertices from rectangular grid coordinates.

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

  • ravel (bool, optional) – option to flatten the grid, defaults to False.

Returns:

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