|
| 1 | +# Demo for EOSC-Future |
| 2 | + |
| 3 | +The two notebooks: |
| 4 | +- RELIANCE-Datacube-featuring-EOSC_v0.2.ipynb |
| 5 | +- RELIANCE_v0.2-France.ipynb |
| 6 | + |
| 7 | +demonstrate the use of ADAM-API and RoHUB-API from Python Jupyter notebooks. |
| 8 | + |
| 9 | +During the demo, they have been executed on a "bundle" EGI-notebook + B2DROP and this is why some results in RELIANCE_v0.2-France.ipynb are saved in a folder called `b2drop`. This folder is not created by the user but is automatically available as part of the EGI-notebook + B2DROP bundle service. Everything you store in the `b2drop` folder is saved in your B2DROP account. |
| 10 | + |
| 11 | +1. It won't work if you are not using EGI-notebook + B2DROP bundle service. Then you can removed b2drop where saving results and store everything locally on your notebook and then as internal resource in RoHUB. |
| 12 | +2. To make sure we do not share our credentials, username, passwords and/or API keys are stored in files. These files need to exist and contain your credentials before running the notebooks. |
| 13 | + |
| 14 | +## What do we do on the two notebooks? |
| 15 | + |
| 16 | +The structure of the two notebooks are very similar: |
| 17 | + |
| 18 | +1. Authentication to ADAM-API: make sure to create a file `adam-key` with your ADAM-API key; |
| 19 | +2. Datasets Discovery: we discover all the datasets but when going through them, we only print `EU_CAMS` results (you need to change it for your own datasets). In this step, we also get the dataset identifiers. We have selected a dataset identifier `69626:EU_CAMS_SURFACE_PM10_G`. Adapt it for your own datasets; |
| 20 | +3. Products Discovery: we discover products over a specific area (Italy or France) and specific time range. The geometry for the spatial search is provided as `geojson` (I haven't fully understood which encoding standard to follow: some of my geojson files worked and some did not); |
| 21 | +4. Data Access: ADAM-Api returns a `zip` file containing the results of your request. You need to unzip it to analyze your data; |
| 22 | +5. Data Analysis and Visualization: when `geotiff`, I read all the data with `xarray`. |
| 23 | + |
| 24 | +In the second notebook `RELIANCE_v0.2-France.ipynb`, there is an additional step for saving the results into a code-centred Research Object in RELIANCE. |
| 25 | + |
| 26 | +You would need to authenticate to RoHUB: |
| 27 | +- `rohub-user` contains your username (not sure what to do when using ORCID) |
| 28 | +- `rohub-pwd` contains your password. |
| 29 | + |
| 30 | +When adding geolocation, I could not use the same geojson I used with ADAM-API. Your geojson needs to follow OGC EO Dataset Metadata GeoJSON(-LD) Encoding Standard (added in this repo). |
| 31 | + |
0 commit comments