Skip to content

Commit

Permalink
update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaHutter committed Apr 26, 2024
1 parent 8fd522e commit f98d31c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 88 deletions.
16 changes: 9 additions & 7 deletions openeo/openeo-sen2like-ndvi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"metadata": {},
"outputs": [],
"source": [
"import openeo"
"import openeo\n",
"from openeo.rest.datacube import PGNode, THIS"
]
},
{
Expand Down Expand Up @@ -64,9 +65,11 @@
"source": [
"### Details in openEO's sen2like processing \n",
"\n",
"To create an openeo process graph, we define the spatial and temporal extent, we want to process. For sen2like, we additionally set the parameters: \n",
"To create an openeo process graph, we define the spatial and temporal extent, we want to process. The bands which can be processed by sen2like are:\n",
"- 'B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', 'B8A', 'B11','B12'\n",
"\n",
"For sen2like, we additionally set the parameters: \n",
"- target_product, which can be L2F or L2H\n",
"- the bands, out of: 'B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', 'B8A', 'B11','B12'\n",
"- the cloud_cover, which is between 1 and 100. The lower the value, the lower the cloud cover for the files must be - files with higher cloud cover are ignored.\n",
"- export_original_files: can be True or False - if True, the .SAFE folders are an output of the openEO process as well."
]
Expand All @@ -80,13 +83,12 @@
"collection = 'SENTINEL2_L1C'\n",
"spatial_extent = {\"west\": 15.6, \"east\": 15.7, \"south\": 46.5, \"north\": 46.6}\n",
"temporal_extent = [\"2023-09-01\", \"2023-09-30\"]\n",
"bands = [\"B04\", \"B08\"]\n",
"\n",
"S2 = conn.load_collection(collection,spatial_extent=spatial_extent,temporal_extent=temporal_extent)\n",
"S2 = conn.load_collection(collection, spatial_extent=spatial_extent, temporal_extent=temporal_extent, bands=bands)\n",
"sen2like = S2.process('sen2like', {\n",
" 'spatial_extent': spatial_extent, \n",
" 'temporal_extent': temporal_extent, \n",
" 'data': THIS,\n",
" 'target_product': 'L2F', \n",
" 'bands': [\"B04\", \"B08\"],\n",
" 'export_original_files': False,\n",
" 'cloud_cover': 50}) "
]
Expand Down
Loading

0 comments on commit f98d31c

Please sign in to comment.