Script Library
BasicWaterAdvanced
Flood Frequency & Risk Mapping
Map flood frequency and risk zones using JRC monthly water history.
Pipeline (1 steps)
- Map flood frequency and risk zones using JRC monthly water history.
Datasets
- jrc-monthly
Simulated previewPaste the script in Earth Engine for live results
Outputs the script produces
map Map layers
map Heatmap
map Area statistics
map Export GeoTIFF
map Zonal stats table
// Flood Frequency & Risk Mapping
var monthly = ee.ImageCollection('JRC/GSW1_4/MonthlyHistory')
.filterBounds(aoi);
var floodFreq = monthly.map(function(img){
return img.select('water').eq(2);
}).sum().divide(monthly.size());
var result = floodFreq.clip(aoi);# Flood Frequency & Risk Mapping
import ee
monthly = (ee.ImageCollection('JRC/GSW1_4/MonthlyHistory')
.filterBounds(aoi))
def get_flood(img):
return img.select('water').eq(2)
flood_freq = monthly.map(get_flood).sum().divide(monthly.size())
result = flood_freq.clip(aoi)