Closed VaasuDevanS closed 1 month ago
Hi @VaasuDevanS ,
In WaterDetect, Mir2 = B12 (Sentinel2).
Although you are not using it for the clustering process, it is still being used in your .ini
file, to clip outliers (look below).
You can change the band to NIR
or just set None
to all thresholds.
Hope that helps.
just set
None
to all thresholds
Setting clip_band
to None
helped. Thanks very much for your comment.
Hello @cordmaur, Thanks very much for open sourcing this work.
I was following the code from this blog (https://www.geocorner.net/post/water-detection-in-high-resolution-satellite-images-using-the-waterdetect-python-package) especially
Running without GDAL
section for my own Sentinel-2 L2A image.I modified the .ini file to produce this output
But when generating the result,
OSError: Required bands not informed: {'Mir2'}
error occurs. I tried debugging the source code but couldn't find why Mir2 is required.Associated files for reproducing the issue: