wradlib.zonalstats.get_clip_mask¶
- wradlib.zonalstats.get_clip_mask(coords, clippoly, srs=None)¶
Returns boolean mask of points
coordsinside polygonclippoly- Parameters
coords (
numpy:numpy.ndarray) – array of xy coords with shape […,2]clippoly (
numpy:numpy.ndarray) – array of xy coords with shape (N,2) representing closed polygon coordinatessrs (object) – osr.SpatialReference
- Returns
src_mask (
numpy:numpy.ndarray) – boolean array of shape coords.shape[0:-1]