Re: Numpy error when masking a Landsat image with a polygon [Rasterio 1.0.28]
Alan Snow
I wonder if you are looking for `from rasterio.features import geometry_mask`?
https://rasterio.readthedocs.io/en/stable/api/rasterio.features.html#rasterio.features.geometry_mask Example code: https://github.com/corteva/rioxarray/blob/83e321c0b3597cc484fb6445d055e4c0ca893f89/rioxarray/rioxarray.py#L934-L1012 Example rioxarray usage: https://corteva.github.io/rioxarray/html/examples/clip_geom.html
|
|