Skip to content

Commit

Permalink
Fix client side processing
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Oct 24, 2023
1 parent 062adc8 commit d6e3051
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
nav: [
{ text: 'Datasets', link: '/data-collections/' },
{ text: 'Get Started', items: [
{ text: 'Free Trial Registration', link: '/join/free_trial.html' },
{ text: 'Data Cubes', link: 'https://openeo.org/documentation/1.0/datacubes.html' },
{ text: 'Client Libraries', items: [
{ text: 'JavaScript', link: '/getting-started/javascript/' },
Expand All @@ -24,8 +25,8 @@ module.exports = {
{ text: 'JupyterLab (Python)', link: '/getting-started/jupyterlab/' },
{ text: 'Editor', link: '/getting-started/editor/' }
] },
{ text: 'Free Trial Registration', link: '/join/free_trial.html' },
{ text: 'Cookbook', link: 'https://openeo.org/documentation/1.0/cookbook/' },
{ text: 'Client-Side Processing (Python)', link: '/getting-started/client-side-processing/' },
] },
{ text: 'Clients', items: [
{ text: 'JavaScript', link: 'https://open-eo.github.io/openeo-js-client/latest/' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It relies on the projects [openeo-pg-parser-networkx](https://github.com/Open-EO

## Installation

::: danger Important
::: warning Important

This feature requires ``Python>=3.9``.

Expand All @@ -26,7 +26,8 @@ Every openEO process graph relies on data which is typically provided by a cloud
The client-side processing adds the possibility to read and use local netCDFs, geoTIFFs, ZARR files, and remote STAC Collections or Items for your experiments.

### STAC Collections and Items
::: danger Important

::: warning Important

The provided examples using STAC rely on third party STAC Catalogs, we can't guarantee that the urls will remain valid.

Expand Down Expand Up @@ -105,7 +106,7 @@ local_conn.list_collections()
This code will parse the metadata content of each netCDF, geoTIFF or ZARR file in the provided folders and return a JSON object containing the STAC representation of the metadata.
If this code is run in a Jupyter Notebook, the metadata will be rendered nicely.

.. tip::
:: tip
The code expects local files to have a similar structure to the sample files provided [here](https://github.com/Open-EO/openeo-localprocessing-data.git).
If the code can not handle you special netCDF, you can still modify the function that reads the metadata from it [here](https://github.com/Open-EO/openeo-python-client/blob/master/openeo/local/collections.py) and the function that reads the data [here](https://github.com/Open-EO/openeo-python-client/blob/master/openeo/local/processing.py).

Expand Down Expand Up @@ -179,6 +180,7 @@ result_ndvi = ndvi_median.execute()
```

## Client-Side Processing Example Notebooks

* [From the openEO Python Client repo](https://github.com/Open-EO/openeo-python-client/tree/master/examples/notebooks/Client_Side_Processing)
* [From the Cubes and Clouds repo](https://github.com/EO-College/cubes-and-clouds/blob/main/lectures/3.1_data_processing/exercises/_alternatives/31_data_processing_stac.ipynb)

Expand All @@ -191,4 +193,4 @@ Additional information and resources about the openEO Python Client Library:
* [Example Python scripts](https://github.com/Open-EO/openeo-python-client/tree/master/examples)
* [Example Jupyter Notebooks](https://github.com/Open-EO/openeo-python-client/tree/master/examples/notebooks)
* [Repository on GitHub](https://github.com/Open-EO/openeo-python-client)
* [Run openEO processes in a Python Shiny App](./shiny.md)
* [Run openEO processes in a Python Shiny App](../python/shiny.md)

0 comments on commit d6e3051

Please sign in to comment.