Execute a service
Users can use the services offered in the EOplaza to analyse their data. These services consist of openEO-based User Defined Processes (UDP). Here is a concise overview of the tools used to implement and use these available services:
Tool | Description |
---|---|
openEO Web Editor | A web-based interface for executing openEO processes. |
Command Line Interface (CLI) | Allows execution of openEO processes through the command line. |
Python Client | A Python library, facilitating programmatic interaction with openEO services. |
R Client | An R library for integrating openEO services into R scripts. |
Users have the flexibility to use their preferred tool to execute the services. Each service has a Get Started
button within the plaza. This button offers available execution options for the service, such as:
- “Execute in Web Editor”: Allows users to run the service in the online user interface.
- “See client examples”: Provides code examples for programmatically executing the service using Python, R, or JavaScript.
Online user interface
A new window opens when a user chooses to run a service in the webeditor using the Execute in Web Editor
option. Here, users can execute services directly in a web editor by simply inputting the required parameters and running them.
The complete web editor documentation can be found in this section. Additionally, below are some additional resources to help users get started with the web editor
openEO |
---|
Access |
Documentation |
Client libraries
Most of the EOplaza services can be used programmatically with the openEO client libraries. When publishing the service, the developer is requested to provide code examples for running the service using Python, R, or JavaScript. When service users select the See client examples
option, they are directed to the provided example.
For detailed documentation on how to use the client libraries, please refer to the official in the following links:
The following example shows a code sample of executing a service through the openEO Python Client.
# import necessary packages
import openeo
# connect with the backend
= openeo.connect(
eoconn "openeo.vito.be"
).authenticate_oidc()
# Setup process parameters
= {
aoi "type": "Polygon",
"coordinates": [
[
[5.179324150085449,
51.2498689148547
],
[5.178744792938232,
51.24672597710759
],
[5.185289382934569,
51.24504696935156
],
[5.18676996231079,
51.245342479161295
],
[5.187370777130127,
51.24918393390799
],
[5.179324150085449,
51.2498689148547
]
]
]
}= ["2020-05-06", "2020-05-30"]
date
# Create a processing graph from the BIOPAR process using an active openEO connection
= eoconn.datacube_from_process(
biopar "BIOPAR",
= "vito",
namespace = date,
date = aoi,
polygon = 'FCOVER'
biopar_type
)
"output.tiff") biopar.download(
If any issues are encountered when using a service, please feel free to post on the TerraScope Forum or send a mail to eoplaza@terrascope.be.