forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apply.json
39 lines (39 loc) · 1.43 KB
/
apply.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
{
"id": "apply",
"summary": "Applies a unary process to each pixel",
"description": "Applies a **unary** process which takes a single value such as `abs` or `sqrt` to each pixel value in the data cube (i.e. a local operation). In contrast, the process ``apply_dimension()`` applies an n-ary process to a particular dimension.",
"categories": [
"cubes"
],
"parameter_order": ["data", "process"],
"parameters": {
"data": {
"description": "A data cube.",
"schema": {
"type": "object",
"format": "raster-cube"
},
"required": true
},
"process": {
"description": "A process (callback) to be applied on each value. The specified process must be unary meaning that it must work on a single value.",
"schema": {
"type": "object",
"format": "callback",
"parameters": {
"x": {
"description": "A value of any type could be passed."
}
}
},
"required": true
}
},
"returns": {
"description": "A data cube with the newly computed values. The resolution, cardinality and the number of dimensions are the same as for the original data cube.",
"schema": {
"type": "object",
"format": "raster-cube"
}
}
}