Raster Calculations in Python
OverviewTeaching: 30 min
Exercises: 20 minQuestions
How do I subtract one raster from another and extract pixel values for defined locations?Objectives
Perform a subtraction between two rasters using
Export raster data as a GeoTIFF file with
Rasters can be computed on using mathematical functions.
Rasters can be read as numpy arrays, a fast data structure for matrix computations
rasterio.io.Dataset.write()method can be used to write raster data to a file.