Newer
Older
class: Workflow
cwlVersion: v1.0
id: finalize
label: finalize
$namespaces:
sbg: 'https://www.sevenbridges.com/'
inputs:
- id: msin
type: 'Directory[]'
'sbg:x': -1000
'sbg:y': -400
- id: input_h5parm
type: File
'sbg:x': -1000
'sbg:y': -300
- id: inh5parm_logfile
type: 'File[]'
'sbg:x': -1000
'sbg:y': -200
- id: gsmcal_step
type: string
'sbg:x': -1000
- id: process_baselines_target
type: string
'sbg:x': -1000
- id: bad_antennas
type: string
'sbg:x': -1000
- id: insolutions
type: File
'sbg:x': -1000
- id: compression_bitrate
type: int
'sbg:x': -1000
'sbg:y': 300
- id: skymodel_source
type: string
'sbg:x': -1000
'sbg:y': 400
outputs:
- id: msout
outputSource:
- apply_gsmcal/msout
type: 'Directory[]'
'sbg:x': 1000
'sbg:y': 0
- id: solutions
outputSource:
type: File
'sbg:x': 1000
'sbg:y': 200
- id: logfiles
outputSource:
- concat_logfiles_applygsm/output
- concat_logfiles_solutions/output
type: 'File[]'
linkMerge: merge_flattened
'sbg:x': 1000
'sbg:y': 800
steps:
- id: add_missing_stations
in:
- id: h5parm
source: input_h5parm
- id: solset
default: 'sol000'
- id: refsolset
default: 'target'
- id: refh5parm
source: insolutions
- id: soltab_in
source: gsmcal_step
source:
- skymodel_source
- gsmcal_step
valueFrom: $(self.join(''))
- id: filter
source: process_baselines_target
- id: bad_antennas
source: bad_antennas
out:
- id: outh5parm
- id: log
run: ../../steps/add_missing_stations.cwl
label: add_missing_stations
'sbg:x': -200
'sbg:y': -300
- id: apply_gsmcal
in:
- id: msin
source: msin
- id: msin_datacolumn
default: DATA
- id: parmdb
source: write_solutions/outh5parm
- id: msout_datacolumn
default: DATA
- id: storagemanager
default: Dysco
- id: databitrate
source: compression_bitrate
- id: correction
source:
- skymodel_source
- gsmcal_step
valueFrom: $(self.join(''))
- id: solset
default: 'target'
- id: msout_name
source: msin
valueFrom: $(self.basename+'_prep.ms')
out:
- id: msout
- id: logfile
run: ../../lofar-cwl/steps/applytarget.cwl
label: apply_gsmcal
scatter:
- msin
'sbg:x': 400
'sbg:y': 0
- id: write_solutions
in:
- id: h5parmFile
source: add_missing_stations/outh5parm
- id: outsolset
default: target
- id: insoltab
source:
- skymodel_source
- gsmcal_step
valueFrom: $(self.join(''))
- id: input_file
source: insolutions
- id: squeeze
default: true
- id: verbose
default: true
- id: history
default: true
out:
- id: outh5parm
- id: log
run: ../../steps/h5parmcat.cwl
label: write_solutions
'sbg:x': 200
'sbg:y': 500
- id: h5parm_pointingname
in:
- id: h5parmFile
source: write_solutions/outh5parm
- id: outsolset
default: 'target'
- id: solsetName
default: 'target'
- id: pointing
source: get_targetname/targetname
out:
- id: outh5parm
- id: log
run: ../../steps/h5parm_pointingname.cwl
label: h5parm_pointingname
'sbg:x': 400
'sbg:y': 200
- id: concat_logfiles_applygsm
in:
- id: file_list
source:
- apply_gsmcal/logfile
- id: file_prefix
default: apply_gsmcal
out:
- id: output
run: ../../steps/concatenate_files.cwl
label: concat_logfiles_applygsm
'sbg:x': 750
'sbg:y': 500
- id: concat_logfiles_solutions
in:
- id: file_list
linkMerge: merge_flattened
source:
- inh5parm_logfile
- add_missing_stations/log
- write_solutions/log
- id: file_prefix
default: losoto_gsmcal
out:
- id: output
run: ../../steps/concatenate_files.cwl
label: concat_logfiles_solutions
'sbg:x': 500
'sbg:y': 500
- id: get_targetname
in:
- id: msin
linkMerge: merge_flattened
source: msin
out:
- id: targetname
- id: logfile
run: ../../steps/get_targetname.cwl
label: get_targetname
'sbg:x': 200
'sbg:y': 200
requirements:
- class: SubworkflowFeatureRequirement
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement