This repository contains a Python script designed for wildfire analysis and mapping using pre- and post-fire Sentinel-2 satellite imagery. The script processes Sentinel-2 data to calculate the Normalized Burn Ratio (NBR) and the Relativized Burn Ratio (RBR), which are essential for assessing the severity of fire impacts.
The primary purpose of this script is to automate the processing of Sentinel-2 imagery to identify and classify areas affected by fire. This script is particularly useful for environmental scientists, GIS analysts, and forestry professionals who need to monitor and evaluate fire severity over large areas efficiently.
- Prompts the user to enter the paths for pre-fire and post-fire Sentinel-2 image zip files and the study area shapefile.
- Unzips the provided Sentinel-2 image files into temporary directories for further processing.
- Resamples the Sentinel-2 bands to a 10-meter resolution.
- Clips the resampled images to the specified study area.
- Removes water bodies from the study area using the Normalized Difference Water Index (NDWI).
- Computes the NBR for both pre-fire and post-fire images to assess fire impact.
- Calculates the RBR to determine the severity of the fire.
- Allows the user to reclassify the RBR based on a specified threshold.
- Provides predefined reclassification ranges based on USGS standards.
- Computes the total burnt area in hectares based on the reclassified RBR.
- Generates a plot of the fire severity classification and saves it as a PNG file.
- Cleans up temporary directories and unnecessary files to maintain a tidy workspace.
This project is licensed under the MIT License.
Make sure to read the User Manual
before using the script.