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.74 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 are true. Evaluates all values from the first to the last element and stops once the outcome is unambiguous.\n\nIf only one value is given, the process evaluates to the given value. 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 other values are true and `false` otherwise. Setting the `ignore_nodata` flag to `false` considers no-data values so that `null` is a valid logical object. If a component is `null`, the result will be `null` if the outcome is ambiguous. See the following truth table:\n\n```\n || null | false | true\n----- || ----- | ----- | -----\nnull || null | false | null\nfalse || false | false | false\ntrue || null | false | true\n```",
"categories": [
"logic",
"reducer"
],
"parameters": [
{
"name": "values",
"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": {
"values": [
false,
null
]
},
"returns": false
},
{
"arguments": {
"values": [
true,
null
]
},
"returns": true
},
{
"arguments": {
"values": [
false,
null
],
"ignore_nodata": false
},
"returns": false
},
{
"arguments": {
"values": [
true,
null
],
"ignore_nodata": false
},
"returns": null
},
{
"arguments": {
"values": [
true,
false,
true,
false
]
},
"returns": false
},
{
"arguments": {
"values": [
true,
false
]
},
"returns": false
},
{
"arguments": {
"values": [
true,
true
]
},
"returns": true
},
{
"arguments": {
"values": [
true
]
},
"returns": true
},
{
"arguments": {
"values": [
null
],
"ignore_nodata": false
},
"returns": null
},
{
"arguments": {
"values": []
},
"returns": null
}
]
}