-
David Rafferty authored
Former-commit-id: 42526b47 Former-commit-id: 54a0a77a
David Rafferty authoredFormer-commit-id: 42526b47 Former-commit-id: 54a0a77a
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ion.cwl 8.04 KiB
class: Workflow
cwlVersion: v1.1
id: ion
label: ion
$namespaces:
sbg: 'https://www.sevenbridges.com/'
inputs:
- id: filter_baselines
type: string?
default: '*&'
'sbg:x': -1000
'sbg:y': -600
- id: demix_sources
type: 'string[]?'
default:
- CasA
- CygA
'sbg:x': -1000
'sbg:y': -500
- id: demix
type: boolean?
default: false
'sbg:x': -1000
'sbg:y': -400
- id: flags
type: File[]
'sbg:x': -1000
'sbg:y': -300
- id: calibrator_name
type: string?
default: 'POINTING'
'sbg:x': -1000
'sbg:y': -200
- id: clock_smooth
type: boolean?
default: true
'sbg:x': -1000
'sbg:y': -100
- id: ion_3rd
type: boolean?
default: false
'sbg:x': -1000
'sbg:y': 0
- id: refant
type: string?
default: 'CS001HBA0'
'sbg:x': -1000
'sbg:y': 100
- id: h5parm
type: File
'sbg:x': -1000
'sbg:y': 200
- id: tables2export
type: string?
default: 'clock'
'sbg:x': -1000
'sbg:y': 300
- id: inh5parm_logfile
type: 'File[]'
'sbg:x': -1000
'sbg:y': 400
- id: maxStddev
type: float?
default: -1.0
'sbg:x': -1000
'sbg:y': 500
- id: insolutions
type: File
'sbg:x': -1000
'sbg:y': 600
- id: check_Ateam_separation.json
type: File
'sbg:x': -1000
'sbg:y': 700
outputs:
- id: summary_file
outputSource:
- summary/summary_file
type: File
'sbg:x': 1000
'sbg:y': -100
- id: inspection
outputSource:
- losoto_plot_P3/output_plots
- losoto_plot_tec/output_plots
- losoto_plot_tec3rd/output_plots
- losoto_plot_clock/output_plots
- losoto_plot_Pr/output_plots
type: 'File[]'
linkMerge: merge_flattened
'sbg:x': 1000
'sbg:y': 0
- id: outsolutions
outputSource:
- h5parm_pointingname/outh5parm
type: File
'sbg:x': 1000
'sbg:y': 100
- id: logfiles
outputSource:
- concat_logfiles_ion/output
- concat_logfiles_summary/output
type: 'File[]'
linkMerge: merge_flattened
'sbg:x': 1000
'sbg:y': 200
steps:
- id: clocktec
in:
- id: input_h5parm
source: h5parm
- id: maxStddev
source: maxStddev
- id: fit3rdorder
source: ion_3rd
- id: clock_smooth
source: clock_smooth
out:
- id: output_h5parm
- id: logfiles
- id: parset
run: ../../subworkflow/clocktec.cwl
label: clocktec
'sbg:x': -500
'sbg:y': 0
- id: losoto_plot_P3
in:
- id: input_h5parm
source: clocktec/output_h5parm
- id: soltab
default: sol000/phaseOrig
- id: axesInPlot
default:
- time
- freq
- id: axisInTable
default: ant
- id: minmax
default:
- -3.14
- 3.14
- id: plotFlag
default: true
- id: refAnt
source: refant
- id: prefix
default: ion_ph
out:
- id: output_plots
- id: logfile
- id: parset
run: ../../lofar-cwl/steps/LoSoTo.Plot.cwl
label: losoto_plot_P3
'sbg:x': 0
'sbg:y': -200
- id: losoto_plot_tec
in:
- id: input_h5parm
source: clocktec/output_h5parm
- id: soltab
default: sol000/tec
- id: axesInPlot
default:
- time
- id: axisInTable
default: ant
- id: plotFlag
default: false
- id: refAnt
source: refant
- id: prefix
default: tec
out:
- id: output_plots
- id: logfile
- id: parset
run: ../../lofar-cwl/steps/LoSoTo.Plot.cwl
label: losoto_plot_tec
'sbg:x': 0
'sbg:y': 0
- id: losoto_plot_tec3rd
in:
- id: input_h5parm
source: clocktec/output_h5parm
- id: soltab
default: 'sol000/tec3rd'
- id: axesInPlot
default:
- time
- id: axisInTable
default: ant
- id: plotFlag
default: false
- id: refAnt
source: refant
- id: prefix
default: tec3rd
- id: execute
source: ion_3rd
out:
- id: output_plots
- id: logfile
- id: parset
run: ../../lofar-cwl/steps/LoSoTo.Plot.cwl
label: losoto_plot_tec3rd
'sbg:x': 0
'sbg:y': 100
- id: losoto_plot_clock
in:
- id: input_h5parm
source: clocktec/output_h5parm
- id: soltab
default: sol000/OrigClock
- id: axesInPlot
default:
- time
- id: axisInTable
default: ant
- id: plotFlag
default: false
- id: refAnt
source: refant
- id: prefix
default: clock
out:
- id: output_plots
- id: logfile
- id: parset
run: ../../lofar-cwl/steps/LoSoTo.Plot.cwl
label: losoto_plot_clock
'sbg:x': 0
'sbg:y': 200
- id: losoto_plot_Pr
in:
- id: input_h5parm
source: clocktec/output_h5parm
- id: soltab
default: sol000/phase000
- id: axesInPlot
default:
- time
- freq
- id: axisInTable
default: ant
- id: minmax
default:
- -3.14
- 3.14
- id: plotFlag
default: true
- id: refAnt
source: refant
- id: prefix
default: ion_ph-res
out:
- id: output_plots
- id: logfile
- id: parset
run: ../../lofar-cwl/steps/LoSoTo.Plot.cwl
label: losoto_plot_Pr
'sbg:x': 0
'sbg:y': 300
- id: summary
in:
- id: flagFiles
source: flags
linkMerge: merge_flattened
- id: pipeline
default: 'prefactor'
- id: run_type
default: 'calibrator'
- id: filter
source: filter_baselines
- id: bad_antennas
default: ''
- id: Ateam_separation_file
source: check_Ateam_separation.json
- id: solutions
source: h5parm_pointingname/outh5parm
- id: demix
source: demix
- id: demix_sources
source: demix_sources
valueFrom: "$(self.join(','))"
out:
- id: summary_file
- id: logfile
run: ../../steps/summary.cwl
label: summary
'sbg:x': 500
'sbg:y': 0
- id: concat_logfiles_ion
in:
- id: file_list
linkMerge: merge_flattened
source:
- inh5parm_logfile
- clocktec/logfiles
- losoto_plot_P3/logfile
- losoto_plot_tec/logfile
- losoto_plot_tec3rd/logfile
- losoto_plot_clock/logfile
- losoto_plot_Pr/logfile
- write_solutions/log
- h5parm_pointingname/log
- id: file_prefix
default: losoto_ion
out:
- id: output
run: ../../steps/concatenate_files.cwl
label: concat_logfiles_ion
'sbg:x': 500
'sbg:y': 500
- id: concat_logfiles_summary
in:
- id: file_list
linkMerge: merge_flattened
source:
- summary/logfile
- id: file_prefix
source: calibrator_name
valueFrom: $(self+'_summary')
out:
- id: output
run: ../../steps/concatenate_files.cwl
label: concat_logfiles_summary
'sbg:x': 700
'sbg:y': 500
- id: write_solutions
in:
- id: h5parmFile
source: clocktec/output_h5parm
- id: outsolset
default: calibrator
- id: insoltab
source: tables2export
- id: input_file
source: insolutions
- id: squeeze
default: true
- id: verbose
default: true
out:
- id: outh5parm
- id: log
run: ../../steps/h5parmcat.cwl
label: write_solutions
'sbg:x': -200
'sbg:y': 700
- id: h5parm_pointingname
in:
- id: h5parmFile
source: write_solutions/outh5parm
- id: solsetName
default: calibrator
- id: pointing
source: calibrator_name
out:
- id: outh5parm
- id: log
run: ../../steps/h5parm_pointingname.cwl
label: h5parm_pointingname
'sbg:x': 0
'sbg:y': 700
requirements:
- class: InlineJavascriptRequirement
- class: StepInputExpressionRequirement
- class: SubworkflowFeatureRequirement
- class: MultipleInputFeatureRequirement