This lesson is still being designed and assembled (Pre-Alpha version)

Work With Multi-Band Rasters in Python

Overview

Teaching: 40 min
Exercises: 20 min
Questions
  • How can I visualize individual and multiple bands in a raster object?

Objectives
  • Identify a single vs. a multi-band raster file.

  • Import multi-band rasters into Python using the rasterio package.

  • Plot multi-band color image rasters in R using the earthpy package.

FIXME

Key Points

  • A single raster file can contain multiple bands or layers.

  • Use the earthpy.stack() function to load all bands spread across individual files into Python

  • Individual bands within a stack can be accessed, analyzed, and visualized using the same functions as single bands.