From the course: Geospatial Raster Data Analytics in Python
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Applying simple functions on raster data: Part 1 - Python Tutorial
From the course: Geospatial Raster Data Analytics in Python
Applying simple functions on raster data: Part 1
- [Instructor] After learning the basics of raster files, we now move on to conduct a few simple computational and analytical steps on raster data. This way, we will acquire skills mandatory to conduct deeper analysis on real life raster data. In this notebook, we are going to use libraries which we have already introduced, so just stick to your previous workspace. The first simple function that we are going to apply on our raster file is to normalize the values of the grid, which means that we map each and every pixel value of the grid to the zero-one range. First, let's define our input file, which is going to be the combined raster of Germany. Then we open the raster file and store the two bands in two separate variables. Then we use a simple mathematical method to normalize both of these arrays containing the raster values. We are going to call the normalized rasters band1_norm and band2_norm. Now let's take a quick look for instance on the normalized first band and see how the…
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)
-