Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions algorithm_catalog/dlr/scmap/notebook_scmap.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "29e8d019",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "f1110c61",
"metadata": {},
"outputs": [],
"source": [
"# !pip3 install openeo\n",
"import sys\n",
"!{sys.executable} -m pip install openeo"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "a305bf6d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Authenticated using refresh token.\n"
]
},
{
"data": {
"text/plain": [
"<Connection to 'https://openeofed.dataspace.copernicus.eu/openeo/1.2/' with OidcBearerAuth>"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import openeo\n",
"\n",
"backend_url = \"https://openeofed.dataspace.copernicus.eu\"\n",
"\n",
"connection = openeo.connect(backend_url)\n",
"connection.authenticate_oidc()"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "091ac70d",
"metadata": {},
"outputs": [],
"source": [
"parameters = {\n",
" \"bbox\": {\n",
" \"west\": 11.1,\n",
" \"south\": 48.1,\n",
" \"east\": 11.2,\n",
" \"north\": 48.2,\n",
" \"crs\": \"EPSG:4326\"\n",
" },\n",
" \"temporal_extent\": [\"2025-04-01\", \"2025-05-07\"],\n",
" \"max_cloud_cover\": 70,\n",
" # Optional parameters\n",
" \"nmad_sigma\": 3.0,\n",
" \"max_sun_zenith_angle\": 70.0,\n",
" \"compute_mref\": True,\n",
" \"compute_mask\": True\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4c4e6bd6",
"metadata": {},
"outputs": [],
"source": [
"process_graph_url = \"https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/refs/heads/main/algorithm_catalog/dlr/scmap/openeo_udp/scmap_composite.json\"\n",
"\n",
"taskmap = connection.datacube_from_process(\"scmap_composite\", namespace=process_graph_url, **parameters)\n",
"\n",
"# cube = connection.datacube_from_process(\n",
"# process_id=\"scmap\",\n",
"# process_graph=process_graph_url,\n",
"# parameters=parameters,\n",
"# namespace=\"user\"\n",
"# )\n",
"\n",
"job = taskmap.create_job(title=\"scmap default Test Case\")\n",
"\n",
"job.start_and_wait()\n",
"\n",
"results = job.get_results()\n",
"results.download_files(\"output\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"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.12.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
8 changes: 5 additions & 3 deletions algorithm_catalog/dlr/scmap/openeo_udp/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ It can be enabled through the parameters.

Please refer to the APEx Documentation [Documentation](https://esa-apex.github.io/apex_documentation/guides/udp_writer_guide.html) and the [GitHub](https://github.com/ESA-APEx/apex_algorithms)

<a href="../notebook_scmap.ipynb" rel="notebook">SCMap Notebook Example</a>

## Literature references
[SoilSuite Europe](https://geoservice.dlr.de/web/datasets/soilsuite_eur_5y)
- Rogge, D., Bauer, A, Zeidler, J., Müller, A., Esch, T. and Heiden, U. (2018). Building an exposed soil composite processor (SCMaP) for mapping spatial and temporal characteristics of soils with Landsat imagery (1984-2014). Remote Sensing of Environment, 205, 1-17. ISSN 0034-4257 DOI: [https://doi.org/10.1016/j.rse.2017.11.004](https://doi.org/10.1016/j.rse.2017.11.004)
Expand All @@ -45,11 +47,11 @@ Please refer to the APEx Documentation [Documentation](https://esa-apex.github.i
CC-BY-NC

## Authors / Contact
- Uta Heiden (Producer, Processor) DLR/EOC Imaging Spectroscopy
- Uta Heiden (Producer, Processor) DLR - The Remote Sensing Technology Institute - Imaging Spectroscopy
- - uta.heiden@dlr.de
- Pablo d'Angelo (Producer, Processor) DLR/EOC Photogrammetry and Image Analysis
- Pablo d'Angelo (Producer, Processor) DLR - The Remote Sensing Technology Institute - Photogrammetry and Image Analysis
- - pablo.angelo@dlr.de
- Paul Karlshöfer (Producer, Processor, OpenEO UDP) DLR/EOC Imaging Spectroscopy
- Paul Karlshöfer (Producer, Processor, OpenEO UDP) DLR - The Remote Sensing Technology Institute - Imaging Spectroscopy
- - paul.karlshoefer@dlr.de


Expand Down
Loading