Skip to content

Commit

Permalink
add missing test process graphs #424
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Jul 18, 2024
1 parent 5eae1b2 commit 9a2fd76
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 0 deletions.
83 changes: 83 additions & 0 deletions tests/data/multiple_save_results/pg01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"process_graph": {
"load1": {
"process_id": "load_collection",
"arguments": {
"id": "SENTINEL2_L2A",
"spatial_extent": {
"west": 4.3708215346309585,
"east": 4.418036684406319,
"south": 51.214711398885356,
"north": 51.23136139636583
},
"temporal_extent": [
"2024-06-01T00:00:00Z",
"2024-07-15T00:00:00Z"
],
"bands": [
"B04",
"B03",
"B02"
]
}
},
"reduce2": {
"process_id": "reduce_dimension",
"arguments": {
"data": {
"from_node": "load1"
},
"dimension": "t",
"reducer": {
"process_graph": {
"last1": {
"process_id": "last",
"arguments": {
"data": {
"from_parameter": "data"
}
},
"result": true
}
}
}
}
},
"resample3": {
"process_id": "resample_spatial",
"arguments": {
"data": {
"from_node": "reduce2"
},
"resolution": 80,
"method": "med"
}
},
"save4": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "reduce2"
},
"format": "GTIFF",
"options": {
"filename_prefix": "intermediate"
}
}
},
"save5": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "resample3"
},
"format": "GTIFF",
"options": {
"filename_prefix": "final"
}
},
"result": true
}
},
"parameters": []
}
94 changes: 94 additions & 0 deletions tests/data/multiple_save_results/pg02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"process_graph": {
"load1": {
"process_id": "load_collection",
"arguments": {
"id": "SENTINEL2_L2A",
"spatial_extent": {
"west": 4.263175403316556,
"east": 4.479026560149383,
"south": 51.22350412508027,
"north": 51.27928537435557
},
"temporal_extent": [
"2024-07-01T00:00:00Z",
"2024-07-17T00:00:00Z"
],
"bands": [
"B04",
"B11"
]
}
},
"reduce2": {
"process_id": "reduce_dimension",
"arguments": {
"data": {
"from_node": "load1"
},
"reducer": {
"process_graph": {
"last1": {
"process_id": "last",
"arguments": {
"data": {
"from_parameter": "data"
}
},
"result": true
}
}
},
"dimension": "t"
}
},
"filter3": {
"process_id": "filter_bands",
"arguments": {
"data": {
"from_node": "reduce2"
},
"bands": [
"B04"
]
}
},
"filter4": {
"process_id": "filter_bands",
"arguments": {
"data": {
"from_node": "reduce2"
},
"bands": [
"B11"
]
}
},
"save5": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "filter3"
},
"format": "GTIFF",
"options": {
"filename_prefix": "B04"
}
},
"result": true
},
"save6": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "filter4"
},
"format": "GTIFF",
"options": {
"filename_prefix": "B11"
}
}
}
},
"parameters": []
}

0 comments on commit 9a2fd76

Please sign in to comment.