Ostu threshold
Goal
Wrap the crop
step as a Common Workflow Language CommandLineTool and exectute it with a CWL runner.
CWL CommandLineTool wrapping the step
The CWL document below shows the crop
step wrapped as a CWL CommandLineTool:
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 |
|
Steps
Run the CWL document using the cwltool
CWL runner to execute the otsu
step with:
1 2 3 4 5 6 |
|
sh -x ${WORKSPACE}/scripts/cwl-cli-otsu.sh
Expected outcome
The folder /workspace/runs
contains:
(base) jovyan@coder-mrossi:~/runs$ tree .
.
├── crop_green.tif
├── crop_nir.tif
├── norm_diff.tif
└── otsu.tif
0 directories, 4 files