Chapter 8: Raster Data with NumPy and rasterio¶
Part II — Geographic Data Science
Learning Objectives¶
By the end of this chapter you will be able to:
- Read and write GeoTIFF files with rasterio
- Apply raster algebra and focal operations with NumPy
- Understand the NumPy array as a simulation substrate
{note}
Last section bridges into Part III — NumPy array as RasterBackend substrate.
In [ ]:
Copied!
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
Raster Data Model¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Raster Data Model
# Code for section: Raster Data Model
Reading GeoTIFFs with rasterio¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Reading GeoTIFFs with rasterio
# Code for section: Reading GeoTIFFs with rasterio
Raster Algebra¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Raster Algebra
# Code for section: Raster Algebra
Focal Operations with NumPy¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Focal Operations with NumPy
# Code for section: Focal Operations with NumPy
Multi-band Imagery¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Multi-band Imagery
# Code for section: Multi-band Imagery
NumPy Array as a Simulation Grid¶
TODO: write content.
In [ ]:
Copied!
# Code for section: NumPy Array as a Simulation Grid
# Code for section: NumPy Array as a Simulation Grid
Exercises¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Exercises
# Code for section: Exercises
Further Reading¶
- TODO: add references.