wradlib.zonalstats.get_clip_mask

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

Returns boolean mask of points coords inside polygon clippoly

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 (object) – osr.SpatialReference
Returns:

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