From the course: Advanced Geospatial Data Analytics in Python

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Change detection on raster data

Change detection on raster data

- [Instructor] To do change detection on raster data, let's pick two example epochs. For instance, 2005 and 25. This way, we will go after the pixel-level population change throughout 20 years across Germany. First, let's define the two epochs and the two corresponding file locations. Then, we are going to read the two raster grids and store them in two layers, a1 and a2. Then, within the same batch of code, we will simply create their difference by subtracting the raster grid of 2000 from the raster grid of 2025. This way, we will have a new, single-band raster grid called diff which stores the difference between the two snapshots. After running this short script, we will have the difference grid of the two snapshots. Then, for the sake of easier interpretability, let's normalize the absolute change levels to relative percentage scores and use a red-blue color map where we will visualize it. After preparing the normalization factor, then let's visualize the difference raster grid…

Contents