Operations With Raster Data II
Content for Wednesday, September 28, 2022
Readings
One of the most attractive reasons for using the raster data model (and terra, specifically) is the relative ease and speed with which you can manipulate values within a raster or combine multiple rasters to generate new data. We’ll focus on that today.
The
terrapackage vignette describes the new raster functions available interra, their relationship to those in therasterpackage, 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:
Access and manipulate cell values of a raster
Generate new rasters using mathematical functions
Summarize rasters using global functions
Generate new rasters describing the spatial context of individual cells
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.
View all slides in new window Download PDF of all slides