Workshop
Spatio-Temporal Workshop – Oslo, Norway
NEON & Data Carpentry
-
This two day workshop, taught at the University of Oslo on March 15-16, 2016, will cover shell and spatio-temporal data in R.
Software
R & RStudio
To participant in this workshop, you will need a laptop with the most current version of R, and, preferably, RStudio loaded on your computer. You will also need the bash shell installed
If you already have these installed on your laptop, please be sure that you are running the most current version of RStudio, R and all packages that we'll be using in the workshop (listed below).
For details on installing RStudio in Mac, PC, or Linux operating systems, please see the Additional Set Up Instructions section at the bottom of this page.
Bash shell
You will need bash shell to complete this workshop. If you use a Mac, this is the default shell ("Terminal") on your computer. If you use a PC or Linux operating system you may need to install it. For complete installation instructions, please see the Additional Set Up Instructions section below.
Download Data
To be prepared for this workshop, please download & unzip the following files in advance:
[[nid:6355]] [[nid:6345]] [[nid:6351]]
Optional: you can download the global boundary files below if you wish to follow along with the data management demonstration on Coordinate Reference Systems.
-
Download "land" - Natural Earth Global Continent Boundary Layer
-
Download all Graticules - Natural Earth Global Graticules Layer
So that your code will mirror that of the instructors, your R working directory should be set to a parent directory data that contains all of the above data files (unzipped). For complete directions, please see the Additional Set Up Instructions section below.
Install R Packages
You can chose to install each library individually if you already have some installed.
-
raster:
install.packages("raster")
-
rgdal (windows):
install.packages("rgdal")
-
rgdal (mac):
install.packages("rgdal",configure.args="--with-proj-include=/Library/Frameworks/PROJ.framework/unix/include --with-gdal-config=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config --with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib")
-
rasterVis:
install.packages("rasterVis")
-
ggplot2:
install.packages("ggplot2")
-
sp:
install.packages("sp")
-
rgeos
install.packages
("rgeos")
Optional installation If you want to work through the metadata lesson which includes a section on the Ecological Metadata Language (EML), please install the following:
-
devtools:
install.packages("devtools")
-
eml
install_github("ropensci/EML", build=FALSE, dependencies=c("DEPENDS", "IMPORTS"))
NOTE: You have to run the devtools librarylibrary(devtools)
first, and theninstall_github
will work the EML package is under development which is why the install occurs from GitHub and not can!
Update R Packages
In RStudio, you can go to Tools --> Check for package updates
to update already installed libraries on your computer! Or, you can use update.packages()
to update all packages that are installed in R automatically.
Workshop Instructors
- Leah Wasser; @leahawasser, Supervising Scientist, NEON, Inc
- Michael Heeremans
- Anne Claire Fouilloux
- Arnstein Orten
- Hans Peter Verne
Please get in touch with the instructors prior to the workshop with any questions.
Twitter?
Please tweet @NEON_sci and with the #WorkWithData hashtag during the workshop.
Schedule
Please note that the schedule listed below may change depending upon the pace of the workshop!
Day One
Time | Topic | Instructor |
---|---|---|
8:00 | Please come early if you have any setup or installation issues | |
9:00 | The Shell - command line for data exploration | Michael, Anne |
10:30 | ------- Coffee & Tea Break ------- | |
10:45 | Data Management: Spatial Data Formats | Michael |
11:30 | Data Management: Coordinate Reference Systems | Michael |
12:00 - 1:00 PM | Lunch | |
1:00 | Introduction to Vector Data in R | Leah |
3:00 | ------- BREAK ------- | |
3:15 | Introduction to Vector Data in R | Leah |
4:45 | Wrap-Up Day 1 |
Day Two
Time | Topic | Instructor |
---|---|---|
9:00 | Questions From Previous Day | |
9:15 | Getting Started with Raster Data in R | Leah |
10:30 | ------ BREAK ------ | |
10:45 | Getting Started with Raster Data in R | Leah |
12:00 - 1:00 PM | Lunch | |
1:00 - 1:30 PM | Data Management: Understanding Metadata | Michael |
1:00 | Raster Time Series Data in R | Leah |
3:00 | ------ BREAK ------ | |
3:15 | Raster Time Series Data in R | Leah |
4:45 | Wrap-Up Day Two! |
Additional Set Up Resources
[[nid:6408]]
***
[[nid:6512]]
***
***
GDAL installation for MAC
You may need to install GDAL in order for rgdal to work properly. Click
<a href="https://www.youtube.com/watch?v=G6r46OhNlqw" target="_blank">here to watch a video on installing gdal using homebrew on your Mac.</a>
Or, you can visit
<a href="http://www.kyngchaos.com/software/frameworks" target="_blank">this link to install GDAL 1.11 complete.</a>
***
Day One
Time | Topic | Instructor |
---|---|---|
8:00 | Please come early if you have any setup or installation issues | |
9:00 | The Shell - command line for data exploration | Michael, Anne |
10:30 | ------- Coffee / Tea BREAK ------- | |
10:45 | Data Management: Spatial Data Formats | Michael |
11:30 | Data Management: Coordinate Reference Systems | Michael |
12:00 - 1:00 PM | Lunch | |
1:00 | Introduction to Vector Data in R | Leah |
3:00 | ------- BREAK ------- | |
3:15 | Introduction to Vector Data in R | Leah |
4:45 | Wrap-Up Day 1 |
Intro to Vector Data in R
Day Two
Time | Topic | Instructor |
---|---|---|
9:00 | Questions From Previous Day | |
9:15 | Getting Started with Raster Data in R | Leah |
10:30 | ------ BREAK ------ | |
10:45 | Getting Started with Raster Data in R | Leah |
12:00 - 1:00 PM | Lunch | |
1:00 - 1:30 PM | Data Management: Understanding Metadata | Michael |
1:00 | Raster Time Series Data in R | Leah |
3:00 | ------ BREAK ------ | |
3:15 | Raster Time Series Data in R | Leah |
4:45 | Wrap-Up Day Two! |