diff --git a/index.Rmd b/index.Rmd index 4989fad..1b84560 100644 --- a/index.Rmd +++ b/index.Rmd @@ -2,7 +2,7 @@ author: "David Swinkels" contributors: "Andrei Mirt" date: "`r format(Sys.time(), '%d %B, %Y')`" -pagetitle: "Lesson 12: Google Earth Engine" +pagetitle: "Lesson 8: Google Earth Engine" output: knitrBootstrap::bootstrap_document: theme: "simplex" @@ -14,7 +14,7 @@ output: # [WUR Geoscripting](https://geoscripting-wur.github.io/) WUR logo -# Week 3, Lesson 12: Google Earth Engine +# Week 2, Lesson 8: Google Earth Engine Good morning! Today we will start working with Google Earth Engine. @@ -85,15 +85,16 @@ This [presentation](https://docs.google.com/presentation/d/1MVVeyCdm-FrMVRPop6wB Earth Engine normally uses Python 2.7. However Earth Engine is trying to make code compatible for both Python 2 and Python 3. Since Python 3 is the future, we will use Python 3. Your Google account needs to be accepted to authenticate your local Earth Engine Python module. So we need to setup the Python environment and get authenticated: +```{block2, type="alert alert-warning"} +**Warning:** The code below will likely not work without running some scripts in your Linux VM. Please first go to [the Python Refresher of next week](https://geoscripting-wur.github.io/PythonRefresher/) and follow the steps under 'Conda installation'. +``` + ```{r, engine = 'bash', eval = FALSE} # Create Conda environment conda create -n ee_py3 -c conda-forge python=3 google-api-python-client pyCrypto spyder jupyter source activate ee_py3 -# Ensure that a crypto library is available -python -c "from oauth2client import crypt" - # Install earthengine-api pip install earthengine-api @@ -108,6 +109,10 @@ python -c "import ee; ee.Initialize()" After setting up the Python environment, you can start a jupyter notebook or spyder and run some Python code. +```{block2, type="alert alert-info"} +ProTip: Don't know how to start Spyder or a Jupyter Notebook? Take a look at [the Python Refresher of next week](https://geoscripting-wur.github.io/PythonRefresher/). +``` + ```{r, engine = 'python', eval = FALSE} # Import the Earth Engine Python Package import ee diff --git a/index.html b/index.html index 23f9f6b..c1acd0f 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,17 @@ - - + + - + + - - Lesson 12: Google Earth Engine - - @@ -875,7 +872,7 @@

WUR Geoscripting WUR logo

-

Week 3, Lesson 12: Google Earth Engine

+

Week 2, Lesson 8: Google Earth Engine

Good morning! Today we will start working with Google Earth Engine.