Operations with Raster Data I
Content for Monday, October 2, 2023
Now that we’ve learned about predicates and measures with raster data, it’s time to learn more about some of the transformations that we can conduct with terra
. We’ll start with some of the basic transformations that operate on the entire dataset then move to some of the important cell-wise operations.
Readings
The
terra
package vignette describes the new raster functions available interra
, their relationship to those in theraster
package, and the changes in syntax between the two.The Raster GIS Operations in R with terra chapter from Jasper Slingsby’s “A Minimal Introduction to GIS (in R)” bookdown project has worked examples of many of the operations we’ll learn today.
Objectives
By the end of today, you should be able to:
Align rasters for spatial processing
Adjust the resolution of raster data
Combine (or reduce) rasters to match the extent of your analysis
Slides
The slides for today’s lesson are available online as an HTML file. Use the buttons below to open the slides either as an interactive website or as a static PDF (for printing or storing for later). You can also click in the slides below and navigate through them with your left and right arrow keys.