Re: Numpy error when masking a Landsat image with a polygon [Rasterio 1.0.28]


Alan Snow
 

After looking at the docs, I think you need to remove `.read(1)` as that returns a numpy array and `mask` expects a dataset: https://rasterio.readthedocs.io/en/stable/api/rasterio.mask.html#rasterio.mask.mask

Join main@rasterio.groups.io to automatically receive all group messages.