forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rename_dimension.json
47 lines (47 loc) · 1.45 KB
/
rename_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
{
"id": "rename_dimension",
"summary": "Rename a dimension",
"description": "Renames a dimension in the data cube while preserving all other properties.",
"categories": [
"cubes"
],
"parameters": [
{
"name": "data",
"description": "The data cube.",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
},
{
"name": "source",
"description": "The current name of the dimension. Fails with a `DimensionNotAvailable` error if the specified dimension does not exist.",
"schema": {
"type": "string"
}
},
{
"name": "target",
"description": "A new Name for the dimension. Fails with a `DimensionExists` error if a dimension with the specified name exists.",
"schema": {
"type": "string"
}
}
],
"returns": {
"description": "The data cube with the renamed dimension. The old name can not be referenced any longer.",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
},
"exceptions": {
"DimensionNotAvailable": {
"message": "A dimension with the specified name does not exist."
},
"DimensionExists": {
"message": "A dimension with the specified name already exists."
}
}
}