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

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…

Contents