This practice uses the outputs from the Global Food Monitoring Database, as it provides timely and state-of the art flood delineations. Furthermore, it also fulfills the requirement of an exclusion mask.
Still, it is also possible and encouraged, to use own flood delineations in this practice. If you want to use your own flood delineation, we ask you, to use the original script developed by Andrea Betterle, accessible via this link:
The code runs in the same environment. You will still need an exclusion mask, a DTM and if available a mask for the permanent and seasonal waterbodies.
6. Download the Input Layers from GFM
On the task bar, go to Products, select your created AOI and set the Start and End date. If you select „Retrieve latest product“, you will get the latest acquisitions overlapping with your AOI.
Select one of the scenes, ideally the scene should be acquired only a few days after the flooding. In the example the scene from 2024-11-02 over the Philippines is selected. The Sentinel-1 footprint will show within a dashed line. Care that the AOI is completely covered by the footprint as in the example.
You can browse through the different layers. In the example, the exclusion mask is visualized.
Now, click on „Download Layers“. The download will start automatically.
7. The Likelihood Layer vs. The Flood Extend
This is useful in case there are not enough pixels classified as flooded in the Observed Flood Extent Layer. In that case this layer is thresholded with a likelihood threshold, for example pixels with a likelihood > 40% are considered as flooded.
Also, the Reference Water Mask is used in the FLEXTH tool. Like that, water bodies will not be detected as flood.
Now we will go again into our Python environment. Therefore, execute the code below as you did before during the Python setup.
mamba activate flexth_env
9. Prepare Input and Output directories
Unzip the downloaded folder from GFM and Google Drive and move them to your directory. In the same directory, create a folder called „output“. The directory should look something like this:
Copy the folder paths to the script, input_dir being the unzipped download folder from GFM, and output_dir being the newly created output folder.
Unzip the downloaded folder and move them to your directory. In the same directory, create a folder called „output“. Copy the file paths into the FLEXTH script.
Under „Setting further Parameters“, you can specify a few more things:
In order not to process the entire Sentinel-1 scene, it is possible to specify an AOI, which should be either a geopackage (.gpkg) or a shapefile (.shp).
Specify the path to your AOI in roi_path.
If you do not wish to select an AOI, just write None.
Specify the path to your dtm in the variable dtm_path. It should be a tif, for example the FABDEM, which we downloaded with the Google Earth Engine during the first steps of this practice.
11. Hydrological Parameters

Testing showed that the default values are effective and robust in a wide range of settings. Nonetheless, parameters can be tweaked to match specific needs and/or use cases.
Parameters may require adjustments for resolutions much larger/smaller than 10m.
If the flood does not propagate far enough into urban and vegetated areas, the parameter A1/2 (param_distance_range) is the most responsive one. The parameter can be interpreted like: if you have an area of 10 km2 flooded, then the water will propagate 5 km into areas of the exclusion mask. If you lower the size of the area or increase the maximum propagation distance, the flooded area will increase.