Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
prefactor_calibrator.cwl 2.25 KiB
class: Workflow
cwlVersion: v1.0
id: prefactor_calibrator
label: prefactor_calibrator
$namespaces:
  sbg: 'https://www.sevenbridges.com/'
inputs:
  - id: raw_data
    type: boolean
    'sbg:x': -620
    'sbg:y': -683
  - id: demix
    type: boolean
    'sbg:x': -617
    'sbg:y': -347
  - id: msin
    type: 'Directory[]'
    'sbg:x': -656
    'sbg:y': -525
  - id: skymodels
    type: Directory
    'sbg:x': -175.89886474609375
    'sbg:y': -724.5
outputs:
  - id: demix_parmdb
    outputSource:
      - ndppp_prep_cal/demix_parmdb
    type:
      - 'null'
      - Directory
      - type: array
        items: Directory
    'sbg:x': -67.85011291503906
    'sbg:y': -356.76287841796875
  - id: outh5parm
    outputSource:
      - h5parm_collector/outh5parm
    type: File
    'sbg:x': 477
    'sbg:y': -546.076171875
steps:
  - id: ndppp_prep_cal
    in:
      - id: baselines_to_flag
        default: []
      - id: elevation_to_flag
        default: 0deg..20deg
      - id: min_amplitude_to_flag
        default: 1.e-30
      - id: memoryperc
        default: 20
      - id: raw_data
        source: raw_data
      - id: demix
        source: demix
      - id: msin
        linkMerge: merge_flattened
        source:
          - msin
    out:
      - id: msout
      - id: demix_parmdb
    run: subworkflow/ndppp_prep_cal.cwl
    label: ndppp_prep_cal
    scatter:
      - msin
    'sbg:x': -359
    'sbg:y': -519
  - id: aoflagger
    in:
      - id: msin
        source:
          - ndppp_prep_cal/msout
    out:
      - id: output_ms
    run: steps/AOFlagger.cwl
    label: AOFlagger
    scatterMethod: flat_crossproduct
    'sbg:x': -164
    'sbg:y': -565
  - id: calib_cal
    in:
      - id: msin
        source: aoflagger/output_ms
      - id: skymodels
        source: skymodels
    out:
      - id: h5parm
      - id: msout
    run: subworkflow/calib_cal.cwl
    label: calib_cal
    scatter:
      - msin
    'sbg:x': 47
    'sbg:y': -583
  - id: h5parm_collector
    in:
      - id: h5parmFiles
        source:
          - calib_cal/h5parm
    out:
      - id: outh5parm
    run: steps/H5ParmCollector.cwl
    label: H5parm_collector
    'sbg:x': 292.1979675292969
    'sbg:y': -543.7208251953125
requirements:
  - class: SubworkflowFeatureRequirement
  - class: ScatterFeatureRequirement