compute NDWI and select a threshold from histogram to extract water and land
BSD 2-Clause "Simplified" LicenseBSD-2-Clause