Skip to content

Commit

Permalink
Add additional test for apply_dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 19, 2023
1 parent be0c7d4 commit 3125cbf
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions tests/apply_dimension.json5
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,108 @@
]
]
}
},
{
"required": [
"array_create",
"max",
"mean",
"min"
],
"arguments": {
"data": {
"$ref": "assets/xyt-more-timestamps.json5"
},
"process": {
"process_graph": {
"max": {
"process_id": "max",
"arguments": {
"data": {
"from_parameter": "data"
}
}
},
"mean": {
"process_id": "mean",
"arguments": {
"data": {
"from_parameter": "data"
}
}
},
"min": {
"process_id": "min",
"arguments": {
"data": {
"from_parameter": "data"
}
}
},
"array": {
"process_id": "array_create",
"arguments": {
"data": [
{
"from_node": "min"
},
{
"from_node": "mean"
},
{
"from_node": "max"
}
]
},
"result": true
},
}
},
"dimension": "bands",
"target_dimension": "stats",
},
"returns": {
"type": "datacube",
"nodata": NaN,
"dimensions": [
{
"name": "stats",
"type": "other",
"values": [0,1,2]
},
{
"name": "y",
"type": "spatial",
"axis": "y",
"values": [5757495.0, 5757485.0, 5757475.0],
"reference_system": "EPSG:25832"
},
{
"name": "x",
"type": "spatial",
"axis": "x",
"values": [404835.0, 404845.0, 404855.0, 404865.0],
"reference_system": "EPSG:25832"
}
],
"data": [
[
[-63.65, 9.0, -68.52, -84.76],
[-21.55, -63.8, -65.85, -23.62],
[-70.4, -54.23, 1.26, -81.6]
],
[
[0.002, 40.07, 9.53, -31.754],
[13.956, 16.8, 8.474, 25.934],
[9.084, -20.428, 34.82333333333, 20.272]
],
[
[71.79, 61.46, 97.01, 74.72],
[79.92, 74.1, 98.28, 65.9],
[50.4 , 49.24, 78.05, 73.26]
]
]
}
}
]
}

0 comments on commit 3125cbf

Please sign in to comment.