Flood Monitoring with Sentinel-1

Flood Monitoring with Sentinel-1: Code Explanation

Flood Monitoring (Sentinel-1)The following code utilizes the Sentinel-1 satellite data within Google Earth Engine (GEE) to monitor flooding in Porto Alegre, Brazil, particularly during the catastrophic floods of 2024. The code applies speckle reduction, generates composites, and visualizes flood impacts.

Key Components of the Code:

Load Sentinel-1 Data

// Load Sentinel-1 data for the specified time period
var raw_collection = ee.ImageCollection('COPERNICUS/S1_GRD')
  .filterBounds(portoAlegrePolygon)
  .filterDate('2023-11-01', '2024-04-30') // Before the flood
  .select('VV');
Speckle Reduction

// Function to apply Lee filter for speckle reduction
function applyLeeFilter(image) {
  // Apply the Lee filter; adjust the kernel size as necessary
  return image.reduceNeighborhood({
    reducer: ee.Reducer.mean(),
    kernel: ee.Kernel.square(3) // Adjust the kernel size based on the desired smoothing
  }).rename('smoothedVV');
}
Median Composites

// Create a median composite before the flood using smoothed images
var compositeBeforeVV = smoothedBefore.median().clip(portoAlegrePolygon);

// Load after flood images
var afterFloodVV = ee.ImageCollection('COPERNICUS/S1_GRD')
  .filterBounds(portoAlegrePolygon)
  .filterDate('2024-05-01', '2024-05-31') // After the flood
  .select('VV');

// Apply Lee filter for after flood images
var smoothedAfter = afterFloodVV.map(applyLeeFilter);

// Create a median composite after the flood using smoothed images
var compositeAfterVV = smoothedAfter.median().clip(portoAlegrePolygon);
Flood Difference Calculation

// Subtract the before flood composite from the after flood composite
var floodDifferenceVV = compositeAfterVV.subtract(compositeBeforeVV);
Visualization

// Create a visualization to emphasize flooded areas in the red channel
var floodVisualization = {
  min: -5, // Adjust these values based on the expected backscatter range
  max: 5,
  palette: ['blue', 'white', 'red'] // Red for flooded areas
};
Create Animation

// Create animation
print('GIF URL:', animationFrames.getVideoThumbURL(gifParams));

Rationale for Remote Sensing in Flood Monitoring

  • Timeliness and Efficiency: Remote sensing allows for rapid assessments of flood impacts across large areas, providing timely information to response teams.
  • Less Pre-processing: In the context of natural disasters, extensive pre-processing may not be feasible. The code emphasizes using existing GEE preprocessing steps, such as noise reduction and cloud masking, which are essential for reliable analysis during urgent situations.
  • Data Availability: The Sentinel-1 mission provides frequent revisit times and all-weather capabilities, making it invaluable for monitoring floods and other disasters.
  • Historical Context: Given the severity of the 2024 Rio Grande do Sul floods, which resulted in significant fatalities and damage, this analysis underscores the need for effective monitoring solutions.

Additional Context

The 2024 Rio Grande do Sul floods are a series of severe floods that affected not only Brazil but also neighboring areas in Uruguay, causing significant loss of life and property damage. The use of remote sensing data during such events helps improve situational awareness and informs recovery efforts.

Reference: 2024 Rio Grande do Sul floods - Wikipedia