-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 35cd0f1bd145fb3a4581a5a561ef7d5b | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type": "FeatureCollection", "features": [{"type": "Feature", "properties": {}, "geometry": {"type": "Polygon", "coordinates": [[[7.911339, 38.81718], [7.911339, 41.264882], [10.063829, 41.264882], [10.063829, 38.81718], [7.911339, 38.81718]]]}}]} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Introduction | ||
This short sections will familiarize you with some free external services that are going to be used throughout the MOOC. | ||
- How to sign up for the Copernicus Data Space Ecosystem (this is where the cloud processing will happen) | ||
- First steps in the Coding Environment | ||
|
||
## Sign up for EO College | ||
In case you haven't already done it. Sign up for the MOOC **'Cubes & Clouds - Cloud Native Open Data Sciences for Earth Observation'** | ||
- https://eo-college.org/courses/cubes-and-clouds | ||
|
||
## Sign up for Copernicus Data Space Ecosystem | ||
We are going to use the cloud processing platform **Copernicus Data Space Ecosystem** to carry out our exercises. It's a cloud platform hosted by the European Commission, ESA and Copernicus.The processing will happen there and you will get 1000 free credits. That's enough to complete the course. | ||
- https://documentation.dataspace.copernicus.eu/Registration.html | ||
|
||
## Your first steps in the Coding Environment | ||
Here is a guide how to find your way around in the Coding Environment JupyterHub. You will see a button that forwards you there whenever there is a hands-on exercise to do. | ||
|
||
[![Screencast Cubes and Clouds Coding Environment](https://img.youtube.com/vi/GBXd4aQLMb0/0.jpg)](https://www.youtube.com/watch?v=GBXd4aQLMb0) <br> | ||
|
||
|
||
Register on EOXHub | ||
- https://cubes-and-clouds.hub.eox.at/ | ||
|
||
After registering on EOX you are now ready to start your first exercise! | ||
|
||
[Exercise 0 Introduction](https://github.com/EO-College/cubes-and-clouds/blob/main/lectures/0_introduction/exercises/0_login.ipynb) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "0c6aed2f-1493-4636-a124-03c81b28bc52", | ||
"metadata": {}, | ||
"source": [ | ||
"# Login to openEO\n", | ||
"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. \n", | ||
"- Import the libraries we need to interact with the cloud platform\n", | ||
"- Make sure we have the login credentials \n", | ||
"- Connect to the cloud platform\n", | ||
"- Login to the cloud platform\n", | ||
"- Check that the login worked" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d3400da4-b7c0-43be-abc9-e3100bf8c9f4", | ||
"metadata": {}, | ||
"source": [ | ||
"## Libraries\n", | ||
"We will import the openeo python client library. It is preinstalled in the jupyter workspace on EOX. \n", | ||
"- `openeo`: The openeo python client has all the functions available that we need to interact with the cloud platform using the openEO API.\n", | ||
"\n", | ||
"Here is more information on the openeo python client: \n", | ||
"- https://open-eo.github.io/openeo-python-client/" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"id": "1abf270c-d73e-4109-854c-3cf36a1b36d7", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import openeo" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "4acd87c3-537f-4f9e-9b2a-4378bb9c8abb", | ||
"metadata": {}, | ||
"source": [ | ||
"## Connect to the cloud platform\n", | ||
"In a first step we connect to the cloud platform. We can only see information and use functionality that is available to everybody. \n", | ||
"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.\n", | ||
"\n", | ||
"Now let's just connect to the platform..." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"id": "86afd551-857e-4129-a2ee-39a933255f34", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"conn = openeo.connect('https://openeo.dataspace.copernicus.eu/')" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "312b377d", | ||
"metadata": {}, | ||
"source": [ | ||
"... and check if the connection has worked. You should see that you are connected, but not logged in." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1107f9f8", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"conn" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "42084427-fce5-429b-8707-d950c9e80fa7", | ||
"metadata": {}, | ||
"source": [ | ||
"## Login to the cloud platform\n", | ||
"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. \n", | ||
"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.\n", | ||
"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.\n", | ||
"\n", | ||
"Now let's just log in... *(this only works if you haver registered to CDSE as described in the lesson Introduction)*" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "de26fd5c-71da-4d28-b895-f5108a97a1d5", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"conn.authenticate_oidc()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "92fb1bf2", | ||
"metadata": {}, | ||
"source": [ | ||
"... and check if the login has worked..." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "050b91c0-60d8-464e-9fd3-0ab62638aafd", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"conn" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "6c5858ed", | ||
"metadata": {}, | ||
"source": [ | ||
"... and let's check our user information, which is possible since we have authenticated now." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "592cfb2a", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"conn.describe_account()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "7c6de05a", | ||
"metadata": {}, | ||
"source": [ | ||
"## Return to EOCOllege\n", | ||
"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. \n", | ||
"\n", | ||
"For now let's return to EOCollege to get started with the lessons!\n", | ||
"\n", | ||
"[Return to Cubes and Clouds on EO College](https://eo-college.org/courses/cubes-and-clouds)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "users-edc-2023.03-02", | ||
"language": "python", | ||
"name": "conda-env-users-edc-2023.03-02-py" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.16" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |