Client GUI¶
The S2GOS GUI client extends the Python API client by adding dedicated GUI-widgets for specific features:
client.show(): execute a given process execution request,client.show_jobs(): show all jobs resulting from process execution,client.show_job(): show the details of a specific job.
Apart from that, they share the same interface. In the following, we visit all the features by example.
The client expects a running server that conforms to the OGC API - Processes: Part 1, Version 1.0. If you don't have one available, you can also run the project's server with a test configuration:
s2gos-server run -- s2gos_server.services.testing:service
or
s2gos-server run -- wraptile.services.local.testing:service
In [1]:
Copied!
from s2gos_client.gui import Client
from s2gos_client.gui import Client
In [2]:
Copied!
client = Client()
client = Client()
In [3]:
Copied!
client.show()
client.show()
Out[3]:
In [4]:
Copied!
_request
_request
--------------------------------------------------------------------------- NameError Traceback (most recent call last) Cell In[4], line 1 ----> 1 _request NameError: name '_request' is not defined
In [ ]:
Copied!
# client.stop_updating()
# client.stop_updating()
In [5]:
Copied!
client.show_jobs()
client.show_jobs()
Out[5]:
In [ ]:
Copied!
_results
_results
In [ ]:
Copied!
import xarray as xr
xr.open_dataset(_results["return_value"]["href"])
import xarray as xr
xr.open_dataset(_results["return_value"]["href"])
In [ ]:
Copied!
#client.get_process("create_datacube")
#client.get_process("create_datacube")
In [ ]:
Copied!
client.show_job("job_3")
client.show_job("job_3")
In [ ]:
Copied!