Skip to content

Commit

Permalink
add openeo usecases
Browse files Browse the repository at this point in the history
  • Loading branch information
juansensio committed Oct 29, 2024
1 parent 95d3339 commit 8c5c1c9
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutorials/usecases/openEO/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# openEO use cases

180 changes: 180 additions & 0 deletions tutorials/usecases/openEO/use_case_1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"https://github.com/earthpulse/eotdl/issues/190\n",
"\n",
"\n",
"1. find and explore the EuroCropsDataset, stage it in the EODTL workspace\n",
"2. filter the EuroCropsDataset dataset using EOTDL functionality, to create a subset of parcels,\n",
" e.g., 8 crop classes, each with 1000 examples, for one country\n",
"3. run feature engineering with openEO, creating temporal metrics from a S1 and S2 time series (temporally optimised for crops classe of interest). Store feature engineering process graph with the training datsets in EOTDL\n",
"4. Use EOTDL functionality to train a model (for this the features need to be retrieved..). Store the model along with the openEO process graph in EOTDL.\n",
"5. Use the model to run inference (from within EOTDL?) in an openEO platform such as CDSE or openEO platform. Make use of the feature engineering process graph stored along with the EOTDL model."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 1 Ingest EuroCrops to EOTDL as Q1/Q2"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We already have Q0 https://www.eotdl.com/datasets/EuroCrops/\n",
"\n",
"Need to create Q1/Q2 for step 2."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 2. Filter EuroCropsDataset"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use STAC/GeoDB to filter the dataset.\n",
"This will return a STAC catalog with the filtered items."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 3. Feature Engineering with openEO"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We need to see how openEO can use the items in the resulting catalog."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Generate jsons with the openEO process graphs and save in EOTDL."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Get the resulting features."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Save features as dataset in EOTDL for training."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 4. Train a model with EOTDL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use dataset with features for training (use exsiting examples)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Ingest the resulting model in EOTDL (onnx)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 5. Run inference with EOTDL"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use model in EOTDL to run inference with openEO in CDSE or other platform."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
25 changes: 25 additions & 0 deletions tutorials/usecases/openEO/use_case_2.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"https://github.com/earthpulse/eotdl/issues/191\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 8c5c1c9

Please sign in to comment.