Skip to content

Commit

Permalink
Merge pull request #33 from eodcgmbh/processes-to-v2.0.0
Browse files Browse the repository at this point in the history
update processes to v2.0.0
  • Loading branch information
ValentinaHutter authored Oct 1, 2024
2 parents b9f63ac + c11d347 commit f4ba0b9
Show file tree
Hide file tree
Showing 34 changed files with 272 additions and 539 deletions.
4 changes: 2 additions & 2 deletions add_dimension.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"bands",
"geometry",
"spatial",
"temporal",
"temporal",
"other"
]
},
Expand All @@ -62,4 +62,4 @@
"message": "A dimension with the specified name already exists."
}
}
}
}
2 changes: 1 addition & 1 deletion apply_kernel.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
"title": "Example of 2D Convolution"
}
]
}
}
128 changes: 64 additions & 64 deletions array_append.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"id": "array_append",
"summary": "Append a value to an array",
"description": "Appends a new value to the end of the array, which may also include a new label for labeled arrays.",
"categories": [
"arrays"
],
"parameters": [
{
"name": "data",
"description": "An array.",
"schema": {
"type": "array",
"items": {
"description": "Any data type is allowed."
"id": "array_append",
"summary": "Append a value to an array",
"description": "Appends a new value to the end of the array, which may also include a new label for labeled arrays.",
"categories": [
"arrays"
],
"parameters": [
{
"name": "data",
"description": "An array.",
"schema": {
"type": "array",
"items": {
"description": "Any data type is allowed."
}
}
},
{
"name": "value",
"description": "Value to append to the array.",
"schema": {
"description": "Any data type is allowed."
}
},
{
"name": "label",
"description": "If the given array is a labeled array, a new label for the new value should be given. If not given or `null`, the array index as string is used as the label. If in any case the label exists, a `LabelExists` exception is thrown.",
"optional": true,
"default": null,
"schema": {
"type": [
"string",
"null"
]
}
}
],
"returns": {
"description": "The new array with the value being appended.",
"schema": {
"type": "array",
"items": {
"description": "Any data type is allowed."
}
}
}
},
{
"name": "value",
"description": "Value to append to the array.",
"schema": {
"description": "Any data type is allowed."
}
"exceptions": {
"LabelExists": {
"message": "An array element with the specified label already exists."
}
},
{
"name": "label",
"description": "If the given array is a labeled array, a new label for the new value should be given. If not given or `null`, the array index as string is used as the label. If in any case the label exists, a `LabelExists` exception is thrown.",
"optional": true,
"default": null,
"schema": {
"type": [
"string",
"null"
]
}
}
],
"returns": {
"description": "The new array with the value being appended.",
"schema": {
"type": "array",
"items": {
"description": "Any data type is allowed."
}
}
},
"exceptions": {
"LabelExists": {
"message": "An array element with the specified label already exists."
}
},
"examples": [
{
"arguments": {
"data": [
1,
2
],
"value": 3
},
"returns": [
1,
2,
3
]
}
]
"examples": [
{
"arguments": {
"data": [
1,
2
],
"value": 3
},
"returns": [
1,
2,
3
]
}
]
}
48 changes: 9 additions & 39 deletions array_contains.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "array_contains",
"summary": "Check whether the array contains a given value",
"description": "Checks whether the array specified for `data` contains the value specified in `value`. Returns `true` if there's a match, otherwise `false`.\n\n**Remarks:**\n\n* To get the index or the label of the value found, use ``array_find()``.\n* All definitions for the process ``eq()`` regarding the comparison of values apply here as well. A `null` return value from ``eq()`` is handled exactly as `false` (no match).\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*.\n* An integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`. Still, this process may return unexpectedly `false` when comparing floating-point numbers due to floating-point inaccuracy in machine-based computation.\n* Temporal strings are treated as normal strings and MUST NOT be interpreted.\n* If the specified value is an array, object or null, the process always returns `false`. See the examples for one to check for `null` values.",
"description": "Checks whether the array specified for `data` contains the value specified in `value`. Returns `true` if there's a match, otherwise `false`.\n\n**Remarks:**\n\n* To get the index or the label of the value found, use ``array_find()``.\n* All definitions for the process ``eq()`` regarding the comparison of values apply here as well. A `null` return value from ``eq()`` is handled exactly as `false` (no match).\n* Data types MUST be checked strictly. For example, a string with the content *1* is not equal to the number *1*.\n* An integer *1* is equal to a floating-point number *1.0* as `integer` is a sub-type of `number`. Still, this process may return unexpectedly `false` when comparing floating-point numbers due to floating-point inaccuracy in machine-based computation.\n* Temporal strings are treated as normal strings and MUST NOT be interpreted.",
"categories": [
"arrays",
"comparison",
Expand All @@ -20,9 +20,14 @@
},
{
"name": "value",
"description": "Value to find in `data`.",
"description": "Value to find in `data`. If the value is `null`, this process returns always `false`.",
"schema": {
"description": "Any data type is allowed."
"type": [
"number",
"boolean",
"string",
"null"
]
}
}
],
Expand Down Expand Up @@ -75,25 +80,6 @@
],
"value": null
},
"returns": true
},
{
"arguments": {
"data": [
[
1,
2
],
[
3,
4
]
],
"value": [
1,
2
]
},
"returns": false
},
{
Expand All @@ -111,29 +97,13 @@
"value": 2
},
"returns": false
},
{
"arguments": {
"data": [
{
"a": "b"
},
{
"c": "d"
}
],
"value": {
"a": "b"
}
},
"returns": false
}
],
"links": [
{
"rel": "example",
"type": "application/json",
"href": "https://processes.openeo.org/1.2.0/examples/array_contains_nodata.json",
"href": "https://raw.githubusercontent.com/Open-EO/openeo-community-examples/main/processes/array_contains_nodata.json",
"title": "Check for no-data values in arrays"
}
],
Expand Down
1 change: 0 additions & 1 deletion array_create.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"categories": [
"arrays"
],
"experimental": true,
"parameters": [
{
"name": "data",
Expand Down
6 changes: 3 additions & 3 deletions array_find.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"name": "value",
"description": "Value to find in `data`.",
"description": "Value to find in `data`. If the value is `null`, this process returns always `null`.",
"schema": {
"description": "Any data type is allowed."
}
Expand Down Expand Up @@ -106,7 +106,7 @@
],
"value": null
},
"returns": 1
"returns": null
},
{
"arguments": {
Expand Down Expand Up @@ -164,7 +164,7 @@
{
"rel": "example",
"type": "application/json",
"href": "https://processes.openeo.org/1.2.0/examples/array_find_nodata.json",
"href": "https://raw.githubusercontent.com/Open-EO/openeo-community-examples/main/processes/array_find_nodata.json",
"title": "Find no-data values in arrays"
}
]
Expand Down
2 changes: 1 addition & 1 deletion array_modify.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
]
}
]
}
}
87 changes: 6 additions & 81 deletions between.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,50 +16,16 @@
{
"name": "min",
"description": "Lower boundary (inclusive) to check against.",
"schema": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time",
"subtype": "date-time"
},
{
"type": "string",
"format": "date",
"subtype": "date"
},
{
"type": "string",
"format": "time",
"subtype": "time"
}
]
"schema": {
"type": "number"
}
},
{
"name": "max",
"description": "Upper boundary (inclusive) to check against.",
"schema": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time",
"subtype": "date-time"
},
{
"type": "string",
"format": "date",
"subtype": "date"
},
{
"type": "string",
"format": "time",
"subtype": "time"
}
]
"schema": {
"type": "number"
}
},
{
"name": "exclude_max",
Expand Down Expand Up @@ -122,47 +88,6 @@
"max": 0
},
"returns": true
},
{
"arguments": {
"x": "00:59:59Z",
"min": "01:00:00+01:00",
"max": "01:00:00Z"
},
"returns": true
},
{
"arguments": {
"x": "2018-07-23T17:22:45Z",
"min": "2018-01-01T00:00:00Z",
"max": "2018-12-31T23:59:59Z"
},
"returns": true
},
{
"arguments": {
"x": "2000-01-01",
"min": "2018-01-01",
"max": "2020-01-01"
},
"returns": false
},
{
"arguments": {
"x": "2018-12-31T17:22:45Z",
"min": "2018-01-01",
"max": "2018-12-31"
},
"returns": true
},
{
"arguments": {
"x": "2018-12-31T17:22:45Z",
"min": "2018-01-01",
"max": "2018-12-31",
"exclude_max": true
},
"returns": false
}
],
"process_graph": {
Expand Down
Loading

0 comments on commit f4ba0b9

Please sign in to comment.