-
Notifications
You must be signed in to change notification settings - Fork 3
/
short_workflow.jx
50 lines (50 loc) · 1.87 KB
/
short_workflow.jx
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
{
"define": {
"SCIF_APPDATA_odm": "/scif/data/odm_workflow",
"ODM_METADATA_FILE": SCIF_APPDATA_odm + "/images/experiment.yaml",
"ODM_WORKING_FOLDER": "/scif/data/odm_workflow",
"SCIF_APPDATA_soilmask": "/scif/data/soilmask",
"SCIF_APPDATA_plotclip": SCIF_APPDATA_odm + "/images",
"ORTHOMOSAIC_FILE": SCIF_APPDATA_odm + "/images/" + ORTHOMOSAIC_NAME + ".tif",
"SOILMASK_METADATA_FILE": SCIF_APPDATA_odm + "/images/experiment.yaml",
"SOILMASK_WORKING_FOLDER": OUTPUT_FOLDER,
"SOILMASK_OUTPUT_FILE": OUTPUT_FOLDER + "/" + ORTHOMOSAIC_NAME + "_mask.tif",
"PLOTCLIP_METADATA_FILE": SCIF_APPDATA_plotclip + "/experiment.yaml",
"PLOTCLIP_WORKING_FOLDER": OUTPUT_FOLDER,
"PLOTCLIP_PLOTGEOMETRY_FILE": OUTPUT_FOLDER + "/plots.json"
},
"rules": [
{
"command": "scif run soilmask --metadata ${METADATA_FILE} --working_space ${WORKING_FOLDER} ${INPUT_GEOTIFF}",
"environment": {
"INPUT_GEOTIFF": ORTHOMOSAIC_FILE,
"METADATA_FILE": SOILMASK_METADATA_FILE,
"WORKING_FOLDER": SOILMASK_WORKING_FOLDER,
},
"inputs": [
ORTHOMOSAIC_FILE
],
"outputs": [
SOILMASK_OUTPUT_FILE
]
},
{
"command": "scif run plotclip --metadata ${METADATA_FILE} --working_space ${WORKING_FOLDER} stereoTop ${PLOTGEOMETRY_FILE} ${INPUT_GEOTIFF_1} ${INPUT_GEOTIFF_2}",
"environment": {
"INPUT_GEOTIFF_1": SOILMASK_OUTPUT_FILE,
"INPUT_GEOTIFF_2": ORTHOMOSAIC_FILE,
"METADATA_FILE": PLOTCLIP_METADATA_FILE,
"WORKING_FOLDER": PLOTCLIP_WORKING_FOLDER,
"PLOTGEOMETRY_FILE": PLOTCLIP_PLOTGEOMETRY_FILE
},
"inputs": [
ORTHOMOSAIC_FILE,
SOILMASK_OUTPUT_FILE,
PLOTCLIP_PLOTGEOMETRY_FILE
],
"outputs": [
PLOTCLIP_WORKING_FOLDER + "/result.json"
]
}
]
}