Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Jul 5, 2019
1 parent d0f4a6a commit cd50093
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
7 changes: 7 additions & 0 deletions examples/notebooks/aims-llnl-wps-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@
"for output in exec.processOutputs:\n",
" print(output.identifier, output.reference)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
32 changes: 29 additions & 3 deletions examples/notebooks/pelican-wps-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
"metadata": {},
"outputs": [],
"source": [
"client = WebProcessingService('https://bovec.dkrz.de/ows/proxy/pelican', headers=headers, verify=True)\n",
"# client = WebProcessingService('http://localhost:5000/wps', headers=headers, verify=True)"
"# client = WebProcessingService('https://bovec.dkrz.de/ows/proxy/pelican', headers=headers, verify=True)\n",
"client = WebProcessingService('http://localhost:5000/wps', headers=headers, verify=True)"
]
},
{
Expand Down Expand Up @@ -328,7 +328,7 @@
"source": [
"# show the output ... well, in case of Emu WPS it is just a dummy.\n",
"for output in exec.processOutputs:\n",
" print(output.identifier, output.reference)"
" print(output.identifier, output.reference or output.data)"
]
},
{
Expand Down Expand Up @@ -363,6 +363,32 @@
"Image(exec.processOutputs[2].reference)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Use Output parameter"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from owslib_esgfwps import Outputs\n",
"outputs = Outputs.from_owslib(exec.processOutputs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"outputs.outputs[0].uri"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit cd50093

Please sign in to comment.