forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_dimension.json
77 lines (77 loc) · 2.35 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
66
67
68
69
70
71
72
73
74
75
76
77
{
"id": "add_dimension",
"summary": "Add a new dimension",
"description": "Adds a new named dimension to the data cube.\n\nAfterwards, the dimension can be referenced with the specified `name`. If a dimension with the specified name exists, the process fails with a `DimensionExists` error. The dimension value of the dimension is set to the specified `value`.",
"categories": [
"cubes"
],
"parameter_order": ["data", "name", "value", "type"],
"parameters": {
"data": {
"description": "A data cube to add the dimension to.",
"schema": {
"type": "object",
"format": "raster-cube"
},
"required": true
},
"name": {
"description": "Name for the dimension.",
"schema": {
"type": "string"
},
"required": true
},
"value": {
"description": "A dimension value (**not** a pixel value).",
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "string",
"format": "date-time"
},
{
"type": "string",
"format": "date"
},
{
"type": "string",
"format": "time"
}
]
},
"required": true
},
"type": {
"description": "The type of dimension, defaults to `other`.",
"schema": {
"type": "string",
"enum": [
"spatial",
"temporal",
"bands",
"other"
],
"default": "other"
}
}
},
"returns": {
"description": "The data cube with a newly added dimension.",
"schema": {
"type": "object",
"format": "raster-cube"
}
},
"exceptions": {
"DimensionExists": {
"message": "A dimension with the specified name already exists."
}
}
}