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

Day 3: Introduction to Raster Data

Overview

Teaching: min
Exercises: 3 min
Questions
  • What is the average of the minimum and maximum values of your raster and what patterns do you observe?

Objectives
  • Import and explore multiple rasters and develop initial geospatial insights. Use raster math to to calculate different summary statistics.

  • Load in and explore the rasters, describe the patterns you observe. Perform raster math.

Outline

In this capstone lesson, we use the following capstone data:

If you are using your own data, please identify two (3) rasters with continuous values that are unprojected. You may use the same 2 rasters from the previous section.

1) Load, summarize, and visualize

Load in the precipitation raster for Wisconsin and explore the raster. Plot the raster and describe the patterns you observe.

Solution

plot of chunk unnamed-chunk-1

Annual precipitation is highest near the Illinois border and near Iron county. It is lowest near Douglas and Washburn county.

2) Raster math using overlay(): calculating the difference

Load in the maximum and minimum temperature rasters for Wisconsin. Subtract the minimum temperature from the maximum temperature using the overlay() function and plot your results. Note what you observe.

Solution

plot of chunk unnamed-chunk-2

Near Lake Michigan, the difference between maximum and minimum temperature was lowest, again possibly due to the lake effect. The largest differences in maximum and minimum temperatures was near the Minnesota border.

3) Raster math using overlay(): calculating the average

Use the overlay() function again to calculate the average temperature, using the maximum and minimum temperature rasters. Plot your results and note what you observe.

Solution

plot of chunk unnamed-chunk-3

The average temperatures are higher toward the Illinois border and lower up north.

Key Points

  • Always explore your data and note initial geospatial insights.

  • The overlay() function can be used to calculate different summary statistics for your raster.

  • With the overlay() function, you can begin to develop your skills in writing functions.