Script Library
BasicDisasterIntermediate
Fire Scar Mapping
Map burned areas using NBR differencing.
Pipeline (1 steps)
- Map burned areas using NBR differencing.
Datasets
- sentinel2-l2a
Simulated previewPaste the script in Earth Engine for live results
Outputs the script produces
map Map layers
map Area statistics
map Export GeoTIFF
map Histogram
// Fire Scar Mapping (dNBR)
var pre = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
.filterDate('2019-01-01','2019-06-30').filterBounds(aoi).median();
var post = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
.filterDate(startDate, endDate).filterBounds(aoi).median();
var nbrPre = pre.normalizedDifference(['B8','B12']);
var nbrPost = post.normalizedDifference(['B8','B12']);
var dnbr = nbrPre.subtract(nbrPost).rename('dNBR');
var result = dnbr.clip(aoi);# Fire Scar Mapping (dNBR)
import ee
pre = (ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
.filterDate('2019-01-01','2019-06-30').filterBounds(aoi).median())
post = (ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
.filterDate(start_date, end_date).filterBounds(aoi).median())
nbr_pre = pre.normalizedDifference(['B8','B12'])
nbr_post = post.normalizedDifference(['B8','B12'])
dnbr = nbr_pre.subtract(nbr_post).rename('dNBR')
result = dnbr.clip(aoi)