\(~\)
In this exercise, you will:
Note that this exercise gives only a very quick overview. For more detailed background and practice, I highly recommend these lessons from Software Carpentry:
\(~\)
As with species occurrence data, it is critical to begin by thinking carefully about the variables you will use to build your models. Key questions include:
Clear answers to these questions will help you immensely in the modeling process and beyond.
\(~\)
There is a wide range of environmental variables readily available for download. The list below mentions some of the most commonly used sources (that cover the global scale) but remember that there may be higher resolution or higher quality data sets available for a particular study area. Take a little time to explore the links that seem most relevant to your interests and then proceed to the next section, Working with raster data in R.
*Note: working with large and high resolution raster data in R can lead to computational challenges, which are outside the scope of this exercise. Some of the datasets listed above are very large and so you need to select a certain region before downloading.
**Note: The resources above are heavily biased towards terrestrial ecosystems. For marine variables, see this video lecture by Hannah Owens (data sources are covered in the 2nd half).
In general, the resources above can be downloaded from the web, saved to your computer, and later read into R for visualization and analysis. Alternatively, there are several R packages that allow you to download some of these data sources directly in R. For example:
getData function)\(~\)
For the rest of this exercise, you should work through this tutorial from NEON. To start, you will need to:
raster and rgdal
packages installed\(~\)
The following series of video lectures (from the ENM2020 course organized by T. Peterson) provide much more background on environmental data for SDMs/ENMs: