Script Library
BasicDisasterBasic
Flood Mapping (Sentinel-1)
Map flood extent using Sentinel-1 SAR data.
Pipeline (1 steps)
- Map flood extent using Sentinel-1 SAR data.
Datasets
- sentinel1
Simulated previewPaste the script in Earth Engine for live results
Outputs the script produces
map Map layers
map Area statistics
map Export GeoTIFF
// Flood Mapping (Sentinel-1)
var before = ee.ImageCollection('COPERNICUS/S1_GRD')
.filterDate('2019-01-01','2019-03-31').filterBounds(aoi)
.filter(ee.Filter.eq('instrumentMode','IW')).select('VV').mean();
var after = ee.ImageCollection('COPERNICUS/S1_GRD')
.filterDate(startDate, endDate).filterBounds(aoi)
.filter(ee.Filter.eq('instrumentMode','IW')).select('VV').mean();
var diff = before.subtract(after);
var flood = diff.gt(3).rename('flood');
var result = flood.clip(aoi);# Flood Mapping (Sentinel-1)
import ee
before = (ee.ImageCollection('COPERNICUS/S1_GRD')
.filterDate('2019-01-01','2019-03-31').filterBounds(aoi)
.filter(ee.Filter.eq('instrumentMode','IW')).select('VV').mean())
after = (ee.ImageCollection('COPERNICUS/S1_GRD')
.filterDate(start_date, end_date).filterBounds(aoi)
.filter(ee.Filter.eq('instrumentMode','IW')).select('VV').mean())
diff = before.subtract(after)
flood = diff.gt(3).rename('flood')
result = flood.clip(aoi)