Welcome to the Spatial Covariates Workshop! This is a workshop for the Space-use Ecology Lab at Utah State University. This workshop was created in February 2021 to help give an overview of the diversity of approaches to downloading some common spatial covariates that we commonly use in our analyses. The workshop content was authored by Brian J. Smith (so now you know who to blame if it’s terribly confusing! 😉).
This workshop will, of course, focus on the data we need for our analyses. But it is also focused on building the skills to download the remote data, efficiently, from wherever it may be housed. Our focus will be on downloading data programmatically and reproducibly. We will accomplish this by working from R, and this workshop and all of its associated materials are written almost entirely in R (with R Markdown).
As I just mentioned, this workshop is mostly focused on using R. I will assume throughout that you have basic familiarity with R and RStudio. If you haven’t updated your R and/or RStudio in a while, I’d recommend that you do that.
You can download R for your platform from CRAN. You can download the RStudio IDE here.
Other software you will need are (1) utilities to build R packages from source and (2) GDAL. Unfortunately, installation of both will vary by operating system.
If you’re on Windows:
If you’re on Mac:
brew install gdal
). I’ve never used Homebrew, but if I had a Mac, that’s the route I’d go. Package managers make installing technical software much easier, and this is likely not the last time you’ll use it.If you’re on Linux:
All the materials for this workshop are available on GitHub. You can get the entire directory with all of the content from the workshop’s GitHub repository (repo): https://github.com/bsmity13/spatial_covars/
You can also view the workshop materials as a website: https://bsmity13.github.io/spatial_covars/
Both the repo and the website link to each other. You’ll probably want to make sure you bookmark one or the other to find your way back.
Happy coding!