-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow.cwl.template
92 lines (88 loc) · 2.09 KB
/
workflow.cwl.template
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
cwlVersion: v1.0
$namespaces:
s: https://schema.org/
s:softwareVersion: 1.0.0
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
$graph:
- class: Workflow
id: main
label: Water bodies detection based on NDWI and the otsu threshold
doc: Water bodies detection based on NDWI and otsu threshold applied to a single Sentinel-2 COG STAC item
requirements: []
inputs:
aoi:
label: area of interest
doc: area of interest as a bounding box
type: string
epsg:
label: EPSG code
doc: EPSG code
type: string
default: "EPSG:4326"
bands:
label: bands used for the NDWI
doc: bands used for the NDWI
type: string[]
default: ["green", "nir"]
item:
doc: Reference to a STAC item
label: STAC item reference
type: string
outputs:
- id: stac_catalog
outputSource:
- node_detect/stac-catalog
type: Directory
steps:
node_detect:
run: "#detect-water-body"
in:
item: item
aoi: aoi
epsg: epsg
band: bands
out:
- stac-catalog
- class: CommandLineTool
id: detect-water-body
requirements:
InlineJavascriptRequirement: {}
EnvVarRequirement:
envDef: {}
ResourceRequirement:
coresMax: 1
ramMax: 512
InitialWorkDirRequirement:
listing:
- entryname: app.py
entry:
hints:
DockerRequirement:
dockerPull: qw:latest
baseCommand: ["python", "-m", "app"]
arguments: []
inputs:
item:
type: string
inputBinding:
prefix: --input-item
aoi:
type: string
inputBinding:
prefix: --aoi
epsg:
type: string
inputBinding:
prefix: --epsg
band:
type:
- type: array
items: string
inputBinding:
prefix: '--band'
outputs:
stac-catalog:
outputBinding:
glob: .
type: Directory