Introduction to Raster Data in Python


Section Three - Intro to Raster Data in Python

In section three of this textbook, you will learn how to work with and plot raster data using the rasterio package for Python.

Learning Objectives

After completing this section of the textbook, you will be able to:

  • Open raster data using Python.
  • Be able to list and identify 3 spatial attributes of a raster dataset: extent, crs and resolution.
  • Explore and plot the distribution of values within a raster using histograms.
  • Access metadata stored within a GeoTIFF raster file via TIF tags in Python.
  • Use raster math in Python to derive new rasters.
  • Reclassify a raster dataset in Python using a set of defined values.
  • Crop a raster dataset in Python using a vector extent object derived from a shapefile.
  • Reproject a raster using rasterio.
Section 3. Introduction to Raster Data in Python
Chapter 4 : Intro to Raster Data in Python
Chapter 5 : Processing Raster Data in Python