forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter.json
72 lines (72 loc) · 3.02 KB
/
filter.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"id": "filter",
"summary": "Filter based on a logical expression.",
"description": "Filters the dimension values based on a logical expression so that afterwards each dimension value in the data cube conforms to the expression.",
"categories": [
"cubes",
"filter"
],
"parameter_order": ["data", "expression", "dimension"],
"parameters": {
"data": {
"description": "A data cube.",
"schema": {
"type": "object",
"format": "raster-cube"
},
"required": true
},
"expression": {
"description": "An expression that is evaluated against each dimension value in the specified dimension. A dimension value is dropped from the data cube if the expression returns `false`. The data type of the parameter depends on the dimension values stored for the dimension.",
"schema": {
"type": "object",
"format": "callback",
"parameters": {
"value": {
"description": "A single dimension value to compare against.",
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "string",
"format": "date-time"
},
{
"type": "string",
"format": "date"
},
{
"type": "string",
"format": "time"
}
]
}
}
},
"required": true
},
"dimension": {
"description": "The dimension to filter on. Fails with a `DimensionNotAvailable` error if the specified dimension does not exist.\n\n**Remarks:**\n\n* The default dimensions a data cube provides are described in the collection's metadata field `cube:dimensions`.\n* There could be multiple spatial dimensions such as `x`, `y` or `z`.\n* For multi-spectral imagery there is usually a separate dimension of type `bands` for the bands.",
"schema": {
"type": "string"
},
"required": true
}
},
"returns": {
"description": "A data cube restricted by the specified expression. Therefore, the cardinality is potentially lower, but the resolution and the number of dimensions are the same as for the original data cube.",
"schema": {
"type": "object",
"format": "raster-cube"
}
},
"exceptions": {
"DimensionNotAvailable": {
"message": "A dimension with the specified name does not exist."
}
}
}