See a summary blogpost here: https://loreabad6.github.io/posts/2023-10-17-stac-across-languages/
Intro slides here.
Wednesday, Aug. 31th & Sept. 1st 2023
During this session we will take a look at Sentinel-1 data, specifically tools to query data for subsequent large processing and some basic data analysis in Python.
You can browse the material here.
On Friday, we will focus on Sentinel-2 data and the STAC API going back and forth between R and Python environments.
You can browse the R material here and the Python material here.
Since installations of R, but mostly Python, can be complicated, I recommend using Docker for this tutorial. To use them, please download and install Docker Engine/Desktop:
Once you have installed this, start the docker engine.
There are two Dockerfiles for this tutorial.
We will work on a minimal Jupyter notebook image enhanced with some geospatial flavor and the specific requirements for this lesson.
Go to your terminal and navigate to your desired directory.
git clone https://github.com/loreabad6/ogh23.git
cd dockerfiles/pyenv
docker build -t pyenv .
--rm
will remove the container when you quit.
cd ../..
docker run --name ogh-pyenv --rm -it -p 8888:8888 -v $PWD/:/home/jovyan pyenv
To stop the notebook environment go back to the terminal and CTRL+C
.
For the R environment we will run a RStudio cloud instance. Given that you already followed steps 1 and 2 for the Python environment:
cd dockerfiles/renv
docker build -t renv .
cd ../..
docker run --name ogh-renv --rm -e DISABLE_AUTH=TRUE -e USERID=$UID -p 8786:8787 -v $PWD/:/home/rstudio/ogh23/ renv
To stop the RStudio environment go back to the terminal and CTRL+C
.
Since we are going back and forth with the tutorials, it would be good if you can run both containers at the same time. In simple terms this means you can execute docker run in two different command line windows and then have Jupyter Notebooks and RStudio cloud open in two tabs. Please test that this works for you before the tutorial.
If you want to work on your own local machine and do the manual installations, refer to the Dockerfiles for the specific requirements for the R and Python environments.