forked from eodcgmbh/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
array_find_nodata.json
65 lines (65 loc) · 1.77 KB
/
array_find_nodata.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
{
"id": "array_find_nodata",
"summary": "Find no-data values",
"description": "Get the index of the first no-data (`null`) value in an array.",
"categories": [
"arrays"
],
"parameters": [
{
"name": "data",
"description": "List to find the value in.",
"schema": {
"type": "array",
"items": {
"description": "Any data type is allowed."
}
}
}
],
"returns": {
"description": "The index of the first element with a no-data value. If only data values are available, `null` is returned.",
"schema": [
{
"type": "null"
},
{
"type": "integer",
"minimum": 0
}
]
},
"process_graph": {
"apply": {
"process_id": "array_apply",
"arguments": {
"data": {
"from_parameter": "data"
},
"process": {
"process_graph": {
"is_null": {
"process_id": "is_nodata",
"arguments": {
"x": {
"from_parameter": "x"
}
},
"result": true
}
}
}
}
},
"find": {
"process_id": "array_find",
"arguments": {
"data": {
"from_node": "apply"
},
"value": true
},
"result": true
}
}
}