Coding for EO (Python & R)
Webinar with Steffen Kothe (DWD), Danny Parsons (IDEMS International), David Moffat (PML); Co-instructors: Hayley Evers-King (EUMETSAT), Oliver Clements (PML)
8 December 2021; 12:00 UTC; Register here
This course is aimed at demystifying Earth Observation satellite data use through code. The course will focus on the flow that is used, regardless of programming language, to produce statistics or imagery from raw data files. We will also highlight resources that are available in multiple programming languages to further your exploration of coding for EO.
In the short course we will use python and R. However, the principles can be applied to many other programming languages.
You will learn the basic principles of coding with gridded EO data: Opening a file, plotting a map, doing calculations and plotting the results. The structure of the course is described below in the agenda. There will be time for you to play with the code and then ask question.
All times UTC
- 12:00 – 13:00 First web session including theory presentation and examples in Python and R
- 13:00 – 15:00 time for self-experiment with example Python and R code provided
- 15:00 – 16:00 Q&A session to answer any questions you have generated in previous 2 hours
Your Questions on Slido: During the webinar, we'll use Slido to answer your questions. Go to Slido.com and use #EUMSC22 or click here.
Below are two videos that walk you through installing Python via the Anaconda system. We then provide you a config file that can be used to "import" an environment
Configuration file for Anaconda environment: https://training.eumetsat.int/pluginfile.php/44654/course/section/4434/shortcourse_env.yml
Installing R and RStudio
To try out the R examples yourself you will need to install R, and RStudio as the environment to work in R. R and RStudio are available on Windows, Linux and Mac operating systems and are free.
1. Download R
Go to https://cran.r-project.org/ and choose the download link for your operating system e.g. for Windows use this link https://cran.r-project.org/bin/windows/base/ Follow the steps which will guide you through the installation process.
2. Download RStudio
RStudio is a development environment to help you use R and work with scripts. Go to https://www.rstudio.com/products/rstudio/download/ and select "Download" under the Free version. It should provide you with a link to download the installer for your operating system. Run this and follow the installation steps.
The video below walks through the installation of R and RStudio for Windows.
- For Mac, see here https://www.youtube.com/watch?v=Y20P3u3c_1c
- For Ubuntu, see here https://www.youtube.com/watch?v=kF0-FH-xBiE
Similar videos for other operating systems can be found on YouTube.