Flood Risk Data LULC In Urban Areas

Output File
/data/bangkok_flood_native
Requirements
Files Created
High-Level Workflow Steps
1. Setup and Define AOI
Define Bangkok’s location and buffer by 10 km to create an Area of Interest (AOI).2. Export SRTM Elevation
- Use the USGS/SRTMGL1_003 dataset
- Export as
dem_srtm.tifat 30 m resolution
3. Export Landcover (Water & Built)
- Use the Google Dynamic World dataset for 2023
- Use
.mode()to get the most frequent class - Remap values: 0 → Water (1), 6 → Built (2), others → 0
- Export as
dw_water_built_mask.tifat 10 m resolution
4. Export Rainfall
- Use CHIRPS Daily rainfall dataset
- Sum rainfall for October 2023
- Export as
rainfall_oct2023_chirps.tifat ~5.5 km resolution
Flood Risk Classification
This script generates a flood risk classification map of Bangkok using:- SRTM DEM (Elevation at 30m) to identify low-lying areas (< 5 meters elevation)
- Dynamic World Landcover (10m) to locate built-up and water regions
Output: Flood-Prone Map
You get a matplotlib map showing flood-prone areas based on both elevation and landcover:Legend Explained
🚀 Ready to implement this solution?
Access the complete code, step-by-step instructions, and interactive notebook in Nika Hub.
View Full Solution →