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 - Python Tutorial
From the course: Advanced Geospatial Data Analytics in Python
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Chapter 3 overview1m 10s
-
(Locked)
Overview of spatio-temporal data3m 19s
-
(Locked)
Data acquisition3m 54s
-
(Locked)
Data preprocessing5m 17s
-
(Locked)
Visualize the temporal changes in spatial data4m 19s
-
(Locked)
Change detection on raster data2m 59s
-
(Locked)
NetCDF: An advanced file format5m 41s
-
(Locked)
Read and visualize NetCDF data5m 11s
-
(Locked)
-
-