|
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "cell_type": "code", |
29 | | - "execution_count": null, |
| 29 | + "execution_count": 1, |
30 | 30 | "id": "1c48fc9c", |
31 | 31 | "metadata": {}, |
32 | | - "outputs": [], |
| 32 | + "outputs": [ |
| 33 | + { |
| 34 | + "name": "stderr", |
| 35 | + "output_type": "stream", |
| 36 | + "text": [ |
| 37 | + "Did not load machine learning processes due to missing dependencies: Install them like this: `pip install openeo-processes-dask[implementations, ml]`\n" |
| 38 | + ] |
| 39 | + } |
| 40 | + ], |
33 | 41 | "source": [ |
34 | 42 | "import openeo\n", |
35 | 43 | "from openeo.local import LocalConnection\n", |
|
90 | 98 | }, |
91 | 99 | { |
92 | 100 | "cell_type": "code", |
93 | | - "execution_count": null, |
| 101 | + "execution_count": 2, |
94 | 102 | "id": "982b6a33", |
95 | 103 | "metadata": {}, |
96 | | - "outputs": [], |
| 104 | + "outputs": [ |
| 105 | + { |
| 106 | + "data": { |
| 107 | + "text/html": [ |
| 108 | + "\n", |
| 109 | + " <script>\n", |
| 110 | + " if (!window.customElements || !window.customElements.get('openeo-model-builder')) {\n", |
| 111 | + " var el = document.createElement('script');\n", |
| 112 | + " el.src = \"https://cdn.jsdelivr.net/npm/@openeo/vue-components@2/assets/openeo.min.js\";\n", |
| 113 | + " document.head.appendChild(el);\n", |
| 114 | + "\n", |
| 115 | + " var font = document.createElement('font');\n", |
| 116 | + " font.as = \"font\";\n", |
| 117 | + " font.type = \"font/woff2\";\n", |
| 118 | + " font.crossOrigin = true;\n", |
| 119 | + " font.href = \"https://use.fontawesome.com/releases/v5.13.0/webfonts/fa-solid-900.woff2\"\n", |
| 120 | + " document.head.appendChild(font);\n", |
| 121 | + " }\n", |
| 122 | + " </script>\n", |
| 123 | + " <openeo-model-builder>\n", |
| 124 | + " <script type=\"application/json\">{\"id\": \"d5e1e104bbf34da19fc2a0f9782c429a\", \"explicit-zoom\": true, \"height\": \"400px\", \"value\": {\"process_graph\": {\"runoscar1\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\", \"RES\": \"0.008999999999\", \"PRECIP_FN\": \"emo1_stac\", \"STARTTIME\": \"2001-01-01T00:00:00\", \"ENDTIME\": \"2001-03-31T00:00:00\"}, \"input_stac_url\": \"https://stac.example.com/item/123\", \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output\", \"service\": \"hydroform-hydromt\", \"service_config\": \"./configs/oscar_hydromt_svc.yaml\"}, \"result\": true}}}}</script>\n", |
| 125 | + " </openeo-model-builder>\n", |
| 126 | + " " |
| 127 | + ], |
| 128 | + "text/plain": [ |
| 129 | + "<openeo.rest.datacube.DataCube at 0x7fbc03459790>" |
| 130 | + ] |
| 131 | + }, |
| 132 | + "execution_count": 2, |
| 133 | + "metadata": {}, |
| 134 | + "output_type": "execute_result" |
| 135 | + } |
| 136 | + ], |
97 | 137 | "source": [ |
98 | 138 | "hydromt_step = localconn.datacube_from_process(\n", |
99 | 139 | " \"run_oscar\",\n", |
|
157 | 197 | }, |
158 | 198 | { |
159 | 199 | "cell_type": "code", |
160 | | - "execution_count": null, |
| 200 | + "execution_count": 4, |
161 | 201 | "id": "619e5c4e", |
162 | 202 | "metadata": {}, |
163 | | - "outputs": [], |
| 203 | + "outputs": [ |
| 204 | + { |
| 205 | + "data": { |
| 206 | + "text/html": [ |
| 207 | + "\n", |
| 208 | + " <script>\n", |
| 209 | + " if (!window.customElements || !window.customElements.get('openeo-model-builder')) {\n", |
| 210 | + " var el = document.createElement('script');\n", |
| 211 | + " el.src = \"https://cdn.jsdelivr.net/npm/@openeo/vue-components@2/assets/openeo.min.js\";\n", |
| 212 | + " document.head.appendChild(el);\n", |
| 213 | + "\n", |
| 214 | + " var font = document.createElement('font');\n", |
| 215 | + " font.as = \"font\";\n", |
| 216 | + " font.type = \"font/woff2\";\n", |
| 217 | + " font.crossOrigin = true;\n", |
| 218 | + " font.href = \"https://use.fontawesome.com/releases/v5.13.0/webfonts/fa-solid-900.woff2\"\n", |
| 219 | + " document.head.appendChild(font);\n", |
| 220 | + " }\n", |
| 221 | + " </script>\n", |
| 222 | + " <openeo-model-builder>\n", |
| 223 | + " <script type=\"application/json\">{\"id\": \"a2a8d6bce7ee4d21be20759c5cfe6011\", \"explicit-zoom\": true, \"height\": \"400px\", \"value\": {\"process_graph\": {\"runoscar1\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\", \"RES\": \"0.008999999999\", \"PRECIP_FN\": \"emo1_stac\", \"STARTTIME\": \"2001-01-01T00:00:00\", \"ENDTIME\": \"2001-03-31T00:00:00\"}, \"input_stac_url\": \"https://stac.example.com/item/123\", \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output\", \"service\": \"hydroform-hydromt\", \"service_config\": \"./configs/oscar_hydromt_svc.yaml\"}}, \"runoscar2\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\"}, \"input_stac_url\": {\"from_node\": \"runoscar1\"}, \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output2\", \"service\": \"hydroform-wflow\", \"service_config\": \"./configs/oscar_wflow_svc.yaml\"}, \"result\": true}}}}</script>\n", |
| 224 | + " </openeo-model-builder>\n", |
| 225 | + " " |
| 226 | + ], |
| 227 | + "text/plain": [ |
| 228 | + "<openeo.rest.datacube.DataCube at 0x7fbc01eff0e0>" |
| 229 | + ] |
| 230 | + }, |
| 231 | + "execution_count": 4, |
| 232 | + "metadata": {}, |
| 233 | + "output_type": "execute_result" |
| 234 | + } |
| 235 | + ], |
164 | 236 | "source": [ |
165 | 237 | "wflow_step = localconn.datacube_from_process(\n", |
166 | 238 | " \"run_oscar\",\n", |
|
175 | 247 | " \"AWS_ACCESS_KEY_ID\": \"your_access_key_id\",\n", |
176 | 248 | " \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\"\n", |
177 | 249 | " }\n", |
178 | | - ")" |
| 250 | + ")\n", |
| 251 | + "\n", |
| 252 | + "wflow_step" |
179 | 253 | ] |
180 | 254 | }, |
181 | 255 | { |
|
198 | 272 | }, |
199 | 273 | { |
200 | 274 | "cell_type": "code", |
201 | | - "execution_count": null, |
| 275 | + "execution_count": 5, |
202 | 276 | "id": "e63ac620", |
203 | 277 | "metadata": {}, |
204 | | - "outputs": [], |
| 278 | + "outputs": [ |
| 279 | + { |
| 280 | + "data": { |
| 281 | + "text/html": [ |
| 282 | + "\n", |
| 283 | + " <script>\n", |
| 284 | + " if (!window.customElements || !window.customElements.get('openeo-model-builder')) {\n", |
| 285 | + " var el = document.createElement('script');\n", |
| 286 | + " el.src = \"https://cdn.jsdelivr.net/npm/@openeo/vue-components@2/assets/openeo.min.js\";\n", |
| 287 | + " document.head.appendChild(el);\n", |
| 288 | + "\n", |
| 289 | + " var font = document.createElement('font');\n", |
| 290 | + " font.as = \"font\";\n", |
| 291 | + " font.type = \"font/woff2\";\n", |
| 292 | + " font.crossOrigin = true;\n", |
| 293 | + " font.href = \"https://use.fontawesome.com/releases/v5.13.0/webfonts/fa-solid-900.woff2\"\n", |
| 294 | + " document.head.appendChild(font);\n", |
| 295 | + " }\n", |
| 296 | + " </script>\n", |
| 297 | + " <openeo-model-builder>\n", |
| 298 | + " <script type=\"application/json\">{\"id\": \"628ea2f1890d42a7859eff84035e1f06\", \"explicit-zoom\": true, \"height\": \"400px\", \"value\": {\"process_graph\": {\"runoscar1\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\", \"RES\": \"0.008999999999\", \"PRECIP_FN\": \"emo1_stac\", \"STARTTIME\": \"2001-01-01T00:00:00\", \"ENDTIME\": \"2001-03-31T00:00:00\"}, \"input_stac_url\": \"https://stac.example.com/item/123\", \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output\", \"service\": \"hydroform-hydromt\", \"service_config\": \"./configs/oscar_hydromt_svc.yaml\"}}, \"runoscar2\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\"}, \"input_stac_url\": {\"from_node\": \"runoscar1\"}, \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output2\", \"service\": \"hydroform-wflow\", \"service_config\": \"./configs/oscar_wflow_svc.yaml\"}}, \"runoscar3\": {\"process_id\": \"run_oscar\", \"arguments\": {\"context\": {\"AWS_ACCESS_KEY_ID\": \"your_access_key_id\", \"AWS_SECRET_ACCESS_KEY\": \"your_secret_access_key\", \"MLFLOW_TRACKING_URI\": \"your_mlflow_tracking_uri\", \"MLFLOW_TRACKING_USERNAME\": \"your_mlflow_username\", \"MLFLOW_TRACKING_PASSWORD\": \"your_mlflow_password\", \"MLFLOW_TRACKING_INSECURE_TLS\": \"true\"}, \"input_stac_url\": {\"from_node\": \"runoscar2\"}, \"local_refresh_token\": \"/home/jzvolensky/.local/share/openeo-python-client/refresh-tokens.json\", \"oscar_endpoint\": \"https://oscar-ukri.intertwin.fedcloud.eu/\", \"oscar_script\": null, \"output\": \"output3\", \"service\": \"hydroform-surrogate\", \"service_config\": \"./configs/oscar_surrogate_svc.yaml\"}, \"result\": true}}}}</script>\n", |
| 299 | + " </openeo-model-builder>\n", |
| 300 | + " " |
| 301 | + ], |
| 302 | + "text/plain": [ |
| 303 | + "<openeo.rest.datacube.DataCube at 0x7fbc01eff0b0>" |
| 304 | + ] |
| 305 | + }, |
| 306 | + "execution_count": 5, |
| 307 | + "metadata": {}, |
| 308 | + "output_type": "execute_result" |
| 309 | + } |
| 310 | + ], |
205 | 311 | "source": [ |
206 | 312 | "surrogate_step = localconn.datacube_from_process(\n", |
207 | 313 | " \"run_oscar\",\n", |
|
0 commit comments