From the course: Geospatial Raster Data Analytics in Python
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Applying complex functions on raster data - Python Tutorial
From the course: Geospatial Raster Data Analytics in Python
Applying complex functions on raster data
- In this final analytical lecture of the course, we combine the previously learned materials to answer a more advanced question. Namely, we will work our way to compute the number of people in Germany living above different elevation thresholds using all the previously created roster files and functions. In this notebook, we are only going to use libraries which have already imported before, so just stick to your usual workspace. Let's define the input path first, which is going to be the combined Germany roster, which contains population and elevation data as well. Now, let's set an example threshold, for instance, hundred meters. Then let's open the roster file and create an elevation mask, which will be an umpire array containing true and false values based on whether the corresponding pixels in the elevation grid are above the threshold. Let's see how the mask looks like. As you can see, it has many false values, and if we look at the random element around the center, we might…
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)
Prepare real-world raster data3m 35s
-
(Locked)
Elevation raster data4m 48s
-
(Locked)
Reprojecting raster data8m 57s
-
(Locked)
Resampling raster data6m 20s
-
(Locked)
Create multiband raster data4m 16s
-
(Locked)
Applying simple functions on raster data: Part 13m 48s
-
(Locked)
Applying simple functions on raster data: Part 23m 57s
-
(Locked)
Applying simple functions on raster data: Part 34m 33s
-
(Locked)
Applying complex functions on raster data4m 55s
-
(Locked)
-