forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 4
/
add_dimension.json
65 lines (65 loc) · 1.96 KB
/
add_dimension.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": "add_dimension",
"summary": "Add a new dimension",
"description": "Adds a new named dimension to the data cube.\n\nAfterwards, the dimension can be referred to with the specified `name`. If a dimension with the specified name exists, the process fails with a `DimensionExists` exception. The dimension label of the dimension is set to the specified `label`.",
"categories": [
"cubes"
],
"parameters": [
{
"name": "data",
"description": "A data cube to add the dimension to.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
{
"name": "name",
"description": "Name for the dimension.",
"schema": {
"type": "string"
}
},
{
"name": "label",
"description": "A dimension label.",
"schema": [
{
"type": "number"
},
{
"type": "string"
}
]
},
{
"name": "type",
"description": "The type of dimension, defaults to `other`.",
"schema": {
"type": "string",
"enum": [
"bands",
"geometry",
"spatial",
"temporal",
"other"
]
},
"default": "other",
"optional": true
}
],
"returns": {
"description": "The data cube with a newly added dimension. The new dimension has exactly one dimension label. All other dimensions remain unchanged.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
"exceptions": {
"DimensionExists": {
"message": "A dimension with the specified name already exists."
}
}
}