From 01e2b316fe7615f8b82ad5e5ec13e633a02617e5 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Thu, 4 Apr 2024 14:05:45 -0400 Subject: [PATCH 1/2] add more processing:expression examples for python, docker and generic URI (fixes #31) --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ac97a9d..2380685 100644 --- a/README.md +++ b/README.md @@ -83,11 +83,14 @@ This list is not exhaustive and can be extended with the processing level specif Potential expression formats with examples: -| Format | Type | Description | Example | -| ----------- | ------ | ----------- | ------- | -| `gdal-calc` | string | A [`gdal_calc.py`](https://gdal.org/programs/gdal_calc.html) expression based on numpy syntax. | `A*logical_or(A<=177,A>=185)` | +| Format | Type | Description | Example | +|-------------| ------ |--------------------------------------------------------------------------------------------------------| ------- | +| `gdal-calc` | string | A [`gdal_calc.py`](https://gdal.org/programs/gdal_calc.html) expression based on numpy syntax. | `A*logical_or(A<=177,A>=185)` | | `openeo` | object | [openEO process](https://openeo.org/documentation/1.0/developers/api/reference.html#section/Processes) | [Example](https://raw.githubusercontent.com/Open-EO/openeo-processes/1.2.0/normalized_difference.json) | -| `rio-calc` | string | A [rio-calc](https://rasterio.readthedocs.io/en/latest/topics/calc.html) (RasterIO) expression | `(b4-b1)/(b4+b1)` | +| `rio-calc` | string | A [rio-calc](https://rasterio.readthedocs.io/en/latest/topics/calc.html) (RasterIO) expression | `(b4-b1)/(b4+b1)` | +| `python` | string | A Python entry point reference. | `my_package.my_module:my_processing_function` or `my_package.my_module:MyClass.my_method` | +| `docker` | string | An URI with image and tag to a Docker. | `ghcr.io/NAMESPACE/IMAGE_NAME:latest` | +| `uri` | string | An URI to some binary or script. | `{"href": "https://raw.githubusercontent.com/ORG/REPO/TAG/package/cli.py", "type": "text/x-python"}` | ## Relation types From 4c5a5157689acae0a3883a582672b7f62ea297ba Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Thu, 4 Apr 2024 14:07:23 -0400 Subject: [PATCH 2/2] update changes --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69e7160..03ace94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - `processing-execution` relation type to link to the processing execution that produced the data. +- provide more examples of `processing:expression` for `python`, `docker` and `uri` formats. ## [v1.1.0] - 2022-01-07