Skip to content

Commit

Permalink
add information on job_results
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegerickx committed Oct 16, 2024
1 parent 4c50022 commit 6350015
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 0 deletions.
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_custom_cropland.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {job_results.job_id}\")\n",
"print(f\"Location of metadata: {job_results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {job_results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {job_results.products['cropland']['type']}\")\n",
"print(f\"Temporal extent: {job_results.products['cropland']['temporal_extent']}\")\n",
"print(f\"Look-up table: {job_results.products['cropland']['lut']}\")\n",
"print(f\"URL: {job_results.products['cropland']['url']}\")\n",
"print(f\"Local path: {job_results.products['cropland']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_custom_cropland_extended.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {job_results.job_id}\")\n",
"print(f\"Location of metadata: {job_results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {job_results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {job_results.products['cropland']['type']}\")\n",
"print(f\"Temporal extent: {job_results.products['cropland']['temporal_extent']}\")\n",
"print(f\"Look-up table: {job_results.products['cropland']['lut']}\")\n",
"print(f\"URL: {job_results.products['cropland']['url']}\")\n",
"print(f\"Local path: {job_results.products['cropland']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_custom_croptype.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {job_results.job_id}\")\n",
"print(f\"Location of metadata: {job_results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {job_results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {job_results.products['croptype']['type']}\")\n",
"print(f\"Temporal extent: {job_results.products['croptype']['temporal_extent']}\")\n",
"print(f\"Look-up table: {job_results.products['croptype']['lut']}\")\n",
"print(f\"URL: {job_results.products['croptype']['url']}\")\n",
"print(f\"Local path: {job_results.products['croptype']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_custom_croptype_extended.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {job_results.job_id}\")\n",
"print(f\"Location of metadata: {job_results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {job_results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {job_results.products['croptype']['type']}\")\n",
"print(f\"Temporal extent: {job_results.products['croptype']['temporal_extent']}\")\n",
"print(f\"Look-up table: {job_results.products['croptype']['lut']}\")\n",
"print(f\"URL: {job_results.products['croptype']['url']}\")\n",
"print(f\"Local path: {job_results.products['croptype']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_default_cropland.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {results.job_id}\")\n",
"print(f\"Location of metadata: {results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {results.products['cropland']['type']}\")\n",
"print(f\"Temporal extent: {results.products['cropland']['temporal_extent']}\")\n",
"print(f\"Look-up table: {results.products['cropland']['lut']}\")\n",
"print(f\"URL: {results.products['cropland']['url']}\")\n",
"print(f\"Local path: {results.products['cropland']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
20 changes: 20 additions & 0 deletions notebooks/worldcereal_v1_demo_default_cropland_extended.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,26 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# The results contain the openeo job id...\n",
"print(f\"Job id: {results.job_id}\")\n",
"print(f\"Location of metadata: {results.metadata}\")\n",
"#... a list of products that were downloaded...\n",
"print(f\"Products: {results.products.keys()}\")\n",
"# ... for each product:\n",
"print('-- For each product --')\n",
"print(f\"Type: {results.products['cropland']['type']}\")\n",
"print(f\"Temporal extent: {results.products['cropland']['temporal_extent']}\")\n",
"print(f\"Look-up table: {results.products['cropland']['lut']}\")\n",
"print(f\"URL: {results.products['cropland']['url']}\")\n",
"print(f\"Local path: {results.products['cropland']['path']}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 6350015

Please sign in to comment.