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- Keyword Arguments
ravel (
bool
) – option to flatten the grid- Returns
polyvert (
numpy.ndarray
) – A 3-d array of polygon vertices with shape (…, 5, 2).