forked from EOSC-LOFAR/prefactor-cwl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ndppp_prep_cal.cwl
176 lines (149 loc) · 3.65 KB
/
ndppp_prep_cal.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# below the definition in the prefactor parset
#
# msin = createmap_cal.output.mapfile # The input data.
# msin.datacolumn = DATA
# msin.baseline = CS*&; RS*&; CS*&RS*
# msout.datacolumn = DATA
# msout.writefullresflag = False
# msout.overwrite = True ############
# steps = [flag,filter,avg,flagamp]
# flag.type = preflagger
# flag.baseline = {{ flag_baselines }}
# filter.type = filter
# filter.baseline = CS*, RS*&&
# filter.remove = true # fully kick out the international stations.
# avg.type = average
# avg.timestep = {{ avg_timestep }} # average to 4 second intervals , PLEASE ADJUST!
# avg.freqstep = {{ avg_freqstep }} # average to 2 ch/SB , PLEASE ADJUST!
# flagamp.type = preflagger
# flagamp.amplmin = 1e-30
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [NDPPP, msout=calibrated.MS]
label: "DPPP flag and average"
hints:
DockerRequirement:
dockerPull: kernsuite/prefactor
inputs:
msin:
type: Directory
inputBinding:
prefix: "msin="
separate: False
msin.datacolumn:
type: string
default: DATA
inputBinding:
prefix: "msin.datacolumn="
separate: False
msout.writefullresflag:
type:
type: enum
symbols: ["True", "False"]
default: "False"
inputBinding:
prefix: "msout.writefullresflag="
separate: False
msout.overwrite:
type:
type: enum
symbols: ["True", "False"]
default: "True"
inputBinding:
prefix: "msout.overwrite="
separate: False
flag.type:
type: string
default: filter
inputBinding:
prefix: "flag.type="
separate: False
flag.baseline:
type: string
inputBinding:
prefix: "flag.baseline="
separate: False
filter.type:
type: string
default: filter
inputBinding:
prefix: "filter.type="
separate: False
filter.baseline:
type: string
default: "CS*, RS*&&"
inputBinding:
prefix: "filter.baseline="
separate: False
filter.remove:
type:
type: enum
symbols: ["True", "False"]
default: "True"
inputBinding:
prefix: "filter.remove="
separate: False
avg.type:
type: string
default: average
inputBinding:
prefix: "avg.type="
separate: False
avg.timestep:
type: int
inputBinding:
prefix: "avg.timestep="
separate: False
avg.freqstep:
type: int
inputBinding:
prefix: "avg.freqstep="
separate: False
flagamp.type:
type: string
default: "preflagger"
inputBinding:
prefix: "flagamp.type="
separate: False
flagamp.amplmin:
type: string
default: "1e-30"
inputBinding:
prefix: "flagamp.amplmin="
separate: False
steps:
type: string
default: "[flag,filter,avg,flagamp]"
inputBinding:
prefix: "steps="
separate: False
baseline:
type: string
default: "[CS013HBA*]"
inputBinding:
prefix: "baseline="
separate: False
avg.timeresolution:
type: int
default: 4
inputBinding:
prefix: "average.timeresolution="
separate: False
avg.freqresolution:
type: string
default: "48.82kHz"
inputBinding:
prefix: "average.freqresolution="
separate: False
outputs:
msout:
type: Directory
outputBinding:
glob: "calibrated.MS"
$namespaces:
s: http://schema.org/
$schemas:
- https://schema.org/docs/schema_org_rdfa.html
s:license: "https://mit-license.org/"
s:author:
s:person.url: "http://orcid.org/0000-0002-6136-3724"