wradlib.zonalstats.get_clip_mask

wradlib.zonalstats.get_clip_mask(coords, clippoly, srs)

Returns boolean mask of points (coords) located inside polygon clippoly

New in version 0.10.0.

Parameters:
  • coords (numpy.ndarray) – array of xy coords with shape […,2]
  • clippoly (numpy.ndarray) – array of xy coords with shape (N,2) representing closed polygon coordinates
  • srs (osr.SpatialReference) –
Returns:

src_mask (numpy.ndarray) – boolean array of shape coords.shape[0:-1]