Login to openEO#

In order to access a cloud platfrom you need to login. In this notebook we will login to the Copernicus Data Space Ecosystem for using openEO.

  • Import the libraries we need to interact with the cloud platform

  • Make sure we have the login credentials

  • Connect to the cloud platform

  • Login to the cloud platform

  • Check that the login worked

Libraries#

We will import the openeo python client library. It is preinstalled in the jupyter workspace on EOX.

  • openeo: The openeo python client has all the functions available that we need to interact with the cloud platform using the openEO API.

Here is more information on the openeo python client:

import openeo

Connect to the cloud platform#

In a first step we connect to the cloud platform. We can only see information and use functionality that is available to everybody. We can see for example which collections and processes are available, but we cannot process data. We will explore the platforms capabilities in an extra exercise in more depth later.

Now let’s just connect to the platform…

conn = openeo.connect('https://openeo.dataspace.copernicus.eu/')

… and check if the connection has worked. You should see that you are connected, but not logged in.

conn

Login to the cloud platform#

After we have connected to the platform and want more functionality, we need to login. This means we authenticate ourselfs to prove we are an registered user. After access is granted we can also process data. Every computation comes at a cost, this is why every user has an amount of credits (which usually have to be payed) for computing. Everytime you are going to use the cloud platform for processing you will have to login at the beginning of your workflow. We are going to learn how to create a workflow in a seperat exercise later on.

Now let’s just log in… (this only works if you haver registered to CDSE as described in the lesson Introduction)

conn.authenticate_oidc()

… and check if the login has worked…

conn

… and let’s check our user information, which is possible since we have authenticated now.

conn.describe_account()

Return to EOCOllege#

This is all. We have verified that we can connect and login to the cloud platform. We will do this again later on when we’ll start with some hands on exercises.

For now let’s return to EOCollege to get started with the lessons!

Return to Cubes and Clouds on EO College