DEV Community

Tek Kshetri
Tek Kshetri

Posted on

How to calculate land use area change over time in GEE?

In this article, I am going to write about how to generate land use area changes over time using Google Earth Engine (GEE).

VIDEO TUTORIAL || FULL CODE

1. Input Dataset

For this example, I am going to use the Landsat Imagery. I am going to use Landsat 4-9.

2. Preprocess Imagery

Pre-processing imagery steps include selecting the appropriate image (cloud-free images), and mosaic and taking a mean or median value, clip image to an area of interest.

3. Calculate Area

The next step is to iterate over each year from 1984 to calculate the area of the appropriate area pixel. If no image was suitable in particular imagery, remove that from the analysis and replace the value with nan.

4. Generate Graph

In the final step, we can easily generate the graph using the ui.Chart module. The final output graph will look something like below,

Vegetation area timeseries

Top comments (0)