forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.json
134 lines (134 loc) · 3.71 KB
/
all.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"id": "all",
"summary": "Are all of the values true?",
"description": "Checks if **all** of the values in `data` are true. If no value is given (i.e. the array is empty) the process returns `null`.\n\nBy default all no-data values are ignored so that the process returns `null` if all values are no-data, `true` if all values are true and `false` otherwise. Setting the `ignore_nodata` flag to `false` takes no-data values into account and the array values are reduced pairwise according to the following truth table:\n\n```\n || null | false | true\n----- || ----- | ----- | -----\nnull || null | false | null\nfalse || false | false | false\ntrue || null | false | true\n```\n\n**Remark:** The process evaluates all values from the first to the last element and stops once the outcome is unambiguous. A result is ambiguous unless a value is `false` or all values have been taken into account.",
"categories": [
"logic",
"reducer"
],
"parameters": [
{
"name": "data",
"description": "A set of boolean values.",
"schema": {
"type": "array",
"items": {
"type": [
"boolean",
"null"
]
}
}
},
{
"name": "ignore_nodata",
"description": "Indicates whether no-data values are ignored or not and ignores them by default.",
"schema": {
"type": "boolean"
},
"default": true,
"optional": true
}
],
"returns": {
"description": "Boolean result of the logical operation.",
"schema": {
"type": [
"boolean",
"null"
]
}
},
"examples": [
{
"arguments": {
"data": [
false,
null
]
},
"returns": false
},
{
"arguments": {
"data": [
true,
null
]
},
"returns": true
},
{
"arguments": {
"data": [
false,
null
],
"ignore_nodata": false
},
"returns": false
},
{
"arguments": {
"data": [
true,
null
],
"ignore_nodata": false
},
"returns": null
},
{
"arguments": {
"data": [
true,
false,
true,
false
]
},
"returns": false
},
{
"arguments": {
"data": [
true,
false
]
},
"returns": false
},
{
"arguments": {
"data": [
true,
true
]
},
"returns": true
},
{
"arguments": {
"data": [
true
]
},
"returns": true
},
{
"arguments": {
"data": [
null
],
"ignore_nodata": false
},
"returns": null
},
{
"arguments": {
"data": []
},
"returns": null
}
]
}