Skip to content

Commit d821aad

Browse files
committed
Add processing:expression
1 parent 12462c4 commit d821aad

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- `processing:expression` to describe how the data has been processed.
12+
1113
### Changed
1214

1315
### Deprecated

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ for the `providers` that have the role `producer` or `processor` assigned.
3030

3131
| Field Name | Type | Description |
3232
| ----------------------- | ------------------- | ----------- |
33+
| processing:expression | [Expression Object](#expression-object) | An expression or processing chain that describes how the data has been processed. |
3334
| processing:lineage | string | Lineage Information provided as free text information about the how observations were processed or models that were used to create the resource being described [NASA ISO](https://wiki.earthdata.nasa.gov/display/NASAISO/Lineage+Information). For example, `GRD Post Processing` for "GRD" product of Sentinel-1 satellites. [CommonMark 0.29](https://commonmark.org/) syntax MAY be used for rich text representation. |
3435
| processing:level | string | The name commonly used to refer to the processing level to make it easier to search for product level across collections or items. The short name must be used (only `L`, not `Level`). See the [list of suggested processing levels](#suggested-processing-levels). |
3536
| processing:facility | string | The name of the facility that produced the data. For example, `Copernicus S1 Core Ground Segment - DPA` for product of Sentinel-1 satellites. |
@@ -64,6 +65,21 @@ This list is not exhaustive and can be extended with the processing level specif
6465
| L3 | Data or retrieved environmental variables which have been spatiallyand/or temporally re-sampled (i.e., derived from level 1 or 2 products). Such re-sampling may include averaging and compositing. A wide variety of sub-level products are possible (see below). | [ENVISAT Level-3](http://envisat.esa.int/level3/), [Sentinel-2 L3](https://s2gm.sentinel-hub.com/) |
6566
| L4 | Model output or results from analyses of lower level data (i.e.,variables that are not directly measured by the instruments, but are derived from these measurements) | |
6667

68+
### Expression Object
69+
70+
| Field Name | Type | Description |
71+
| ---------- | ------ | ----------- |
72+
| format | string | **REQUIRED** The type of the expression that is specified in the `expression` property. |
73+
| expression | \* | **REQUIRED** An expression compliant with the `format` specified. The expression can be any data type and depends on the `format` given, e.g. string or object. |
74+
75+
Potential expression formats with examples:
76+
77+
| Format | Type | Description | Example |
78+
| ----------- | ------ | ----------- |
79+
| `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)` |
80+
| `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.0.0/normalized_difference.json) |
81+
| `rio-calc` | string | A [rio-calc](https://rasterio.readthedocs.io/en/latest/topics/calc.html) (RasterIO) expression | `(b4-b1)/(b4+b1)` |
82+
6783
## Relation types
6884

6985
The following types should be used as applicable `rel` types in the

json-schema/schema.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@
162162
},
163163
"requirements": {
164164
"anyOf": [
165+
{
166+
"required": [
167+
"processing:expression"
168+
]
169+
},
165170
{
166171
"required": [
167172
"processing:lineage"
@@ -187,6 +192,22 @@
187192
"fields": {
188193
"type": "object",
189194
"properties": {
195+
"processing:expression": {
196+
"title": "Processing Expression",
197+
"type": "object",
198+
"required": [
199+
"format",
200+
"expression"
201+
],
202+
"properties": {
203+
"format": {
204+
"type": "string"
205+
},
206+
"expression": {
207+
"description": "Any data type, depending on the format chosen."
208+
}
209+
}
210+
},
190211
"processing:lineage": {
191212
"title": "Processing Lineage Information",
192213
"type": "string",

0 commit comments

Comments
 (0)