From NDVI data with OpenEO to time series visualisation with Holoviews
Author(s) | Marie Josse |
OverviewQuestions:Objectives:
What’s the NDVI ?
How to evaluate the NDVI through out time ?
Requirements:
Use OpenEo technologies and learn how to download data with them
Learn to use Holoviz environment to process csv data
Create timeseries and visualisation of the NDVI
Handle going form one interactive tool to another
Time estimation: 1 hourSupporting Materials:Published: Jan 24, 2024Last modification: Jun 29, 2024License: Tutorial Content is licensed under Creative Commons Attribution 4.0 International License. The GTN Framework is licensed under MITpurl PURL: https://gxy.io/GTN:T00400version Revision: 3
Through this tutorial you will learn here how to access and download Copernicus Data Space Ecosystem (CDSE) data through a jupyterlab Galaxy interactive tool :
This tool enables you to leverage the Copernicus Data Space Ecosystem services and access data effortlessly. The JupyterLab service allows you to dive into data exploration, visualization, and analysis without the hassle of installing dependencies or downloading large data sets.
You will also apprehend how to use the Holoviz ecosysytem by plotting and visualising NDVI (from the CDSE) timeseries : HoloViz provides high-level Python tools that are designed to work together to solve the entire problem of visualization, from conducting exploratory data analysis to deploying complex dashboards.
AgendaIn this tutorial, we will cover:
Context on Galaxy
Interactive tools work differently than classical tools as it allows the user to interact with a dedicated graphical interface. This kind of tools is used to give access to Jupyter notebooks, RStudio or R Shiny apps for example.
You can come back to where you left off the tutorial anytime by clicking level.
Hands-on: Log in to Galaxy
- Open your favorite browser (Chrome, Safari or Firefox as your browser, not Internet Explorer!)
- Browse to your Galaxy instance
- On the top pannel go to Login or Register
The Galaxy homepage is divided into three panels:
- Tools on the left
- Viewing panel in the middle
- History of analysis and files on the right
The first time you use Galaxy, there will be no files in your history panel.
Copernicus Data Space Ecosystem
Hands-on: Launch the interactive tool
- Copernicus Data Space Ecosystem with the following parameters:
- “Do you already have a notebook?”:
Start with a fresh notebook
- “Include data into the environment - optional “: You don’t need anything
Click on Run Tool
- Go to User > Active InteractiveTools
- Wait for the Copernicus Data Space Ecosystem to be running (Job Info)
- Click on Copernicus Data Space Ecosystem
- Once you are in the jupyterlab go to :
- notebooks
- Then, openeo
- Open the notebook NDVI_Timeseries.ipynb
- You can start running your notebook. To do so you can go on the pannel displaying button right above the notebook and click on the workflow-run. Everytime you press this button you can excecute a one by one the cells.
- In the Setup section when you execute the connection cell you’ll have some actions to conduct.
- First click ont the link appearing, you’re notebook should look like the following :
- Once you clicked a new window opens. If you don’t have a copernicus account please create one and follow the instructions given.
- If you have an account sign in and then press the green YES
- You’ll be redirected to a page letting you know the connection was a success
- Now, you can go back on your jupyterlab and execute the rest of the notebook.
- Once you executed the entire notebook you should have a new folder in the left pannel named ndvi-results go in it.
- Select the 3 files (timeseries-basic.csv, timeseries-masked.csv, timeseries-smoothed.csv) there and click right, and then copy
- Then go back to the root of your path and go in the ouputs folder. There you can click right and paste the 3 NDVI files (timeseries-basic.csv, timeseries-masked.csv, timeseries-smoothed.csv).
- This part is now finished you just have to correctly close this notebook. On the top left click on files and then on Shut down.
Go back on your Galaxy window. After a couple minutes you should see your outputs turning green in your history.
Check that your data are in csv format.
galaxy-pencil, it should be
csv
- Click on the galaxy-pencil pencil icon for the dataset to edit its attributes
- In the central panel, click galaxy-chart-select-data Datatypes tab on the top
- In the galaxy-chart-select-data Assign Datatype, select
csv
from “New type” dropdown
- Tip: you can start typing the datatype into the field to filter the dropdown menu
- Click the Save button
Holoviz
Hands-on: Launch Holoviz
- Holoviz with the following parameters:
- “Do you already have a notebook?”:
Start with a fresh notebook
- “Include data into the environment - optional “: Select
timeseries-basic
,timeseries-masked
andtimeseries-smoothed
Click on Run Tool
- Go to User > Active InteractiveTools
- Wait for the Holoviz to be running (Job Info)
- Click on Holoviz
- Once, you are in the jupyterlab go in the the notebooks folder
- Open a terminal in bash and write the following
Input: Download the notebookwget https://raw.githubusercontent.com/fair-ease/Holoviz/main/Tabular_Datasets_NDVI.ipynb
Now that you have your notebook you can just follow the instructions.
Enjoy discovering the rest of the notebook.
Conclusion
The tutorial ends there and with that you have the basis on how to use jupyterlab tools and more particularly the copernicus and holoviz ones.