forked from os-climate/hazard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow.cwl
68 lines (55 loc) · 1.38 KB
/
workflow.cwl
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
cwlVersion: v1.2
$namespaces:
s: https://schema.org/
s:softwareVersion: 0.1
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
$graph:
- class: Workflow
id: produce-indicator
label: produce hazard indicator
doc: produce hazard indicator
requirements:
ResourceRequirement:
coresMax: 2
ramMax: 4096
inputs:
gcm_list:
type: string
default: "[NorESM2-MM]"
outputs:
- id: indicator-result
type: Directory
outputSource:
- indicator-step/indicator-results
steps:
indicator-step:
run: "#indicator-command"
in:
gcm_list: gcm_list
out:
- indicator-results
- class: CommandLineTool
id: indicator-command
requirements:
ResourceRequirement:
coresMax: 2
ramMax: 4096
NetworkAccess:
networkAccess: true
hints:
DockerRequirement:
dockerPull: public.ecr.aws/c9k5s3u3/os-hazard-indicator
baseCommand: ["os_climate_hazard", "days_tas_above_indicator", "--inventory_format", "stac", "--store", "./indicator", "--"]
arguments: []
inputs:
gcm_list:
type: string
inputBinding:
prefix: --gcm_list
separate: true
outputs:
indicator-results:
type: Directory
outputBinding:
glob: "./indicator"