Script Library
BasicLand CoverIntermediate
LULC Change Matrix
Create a land use/land cover change transition matrix between two periods.
Pipeline (1 steps)
- Create a land use/land cover change transition matrix between two periods.
Datasets
- dynamic-world
Simulated previewPaste the script in Earth Engine for live results
Outputs the script produces
map Map layers
map Change matrix
map Area statistics
map Export GeoTIFF
// LULC Change Matrix
var dw1 = ee.ImageCollection('GOOGLE/DYNAMICWORLD/V1')
.filterDate('2018-01-01','2018-12-31').filterBounds(aoi).select('label').mode();
var dw2 = ee.ImageCollection('GOOGLE/DYNAMICWORLD/V1')
.filterDate('2023-01-01','2023-12-31').filterBounds(aoi).select('label').mode();
var change = dw1.multiply(10).add(dw2).rename('change');
var result = change.clip(aoi);# LULC Change Matrix
import ee
dw1 = (ee.ImageCollection('GOOGLE/DYNAMICWORLD/V1')
.filterDate('2018-01-01','2018-12-31').filterBounds(aoi).select('label').mode())
dw2 = (ee.ImageCollection('GOOGLE/DYNAMICWORLD/V1')
.filterDate('2023-01-01','2023-12-31').filterBounds(aoi).select('label').mode())
change = dw1.multiply(10).add(dw2).rename('change')
result = change.clip(aoi)