Skip to content
Snippets Groups Projects
prep.cwl 3.68 KiB
Newer Older
class: Workflow
cwlVersion: v1.0
id: prep
label: prep_cal
$namespaces:
  sbg: 'https://www.sevenbridges.com/'
inputs:
  - id: msin
    type: 'Directory[]'
    'sbg:x': -1000
    'sbg:y': -800
  - id: flag_baselines
    type: 'string[]'
    'sbg:x': -1000
    'sbg:y': -700
  - id: process_baselines_cal
    type: string
    'sbg:x': -1000
    'sbg:y': -600
  - id: filter_baselines
    type: string
    'sbg:x': -1000
    'sbg:y': -500
  - id: do_smooth
    type: boolean
    'sbg:x': -1000
    'sbg:y': -400
  - id: raw_data
    type: boolean
    'sbg:x': -1000
    'sbg:y': -300
  - id: demix
    type: boolean
    'sbg:x': -639
    'sbg:y': -206.68032836914062
  - id: memoryperc
    type: int
    'sbg:x': -634
    'sbg:y': -411
  - id: min_separation
    type: float?
    'sbg:x': -638.4987182617188
    'sbg:y': 31.238996505737305
  - id: A-Team_skymodel
    default: /data/skymodels/Ateam_LBA_CC.skymodel
    type:
      - string?
      - File?
    'sbg:x': -889
    'sbg:y': -983.5078735351562
  - id: timeresolution
    type: float
    'sbg:x': -634.4667358398438
    'sbg:y': -817.0217895507812
  - id: freqresolution
    type: string
    'sbg:x': -641.6406860351562
    'sbg:y': -298.1281433105469
outputs:
  - id: check_Ateam_separation.png
    outputSource:
      - check_ateam_separation/output_imag
    type: 'File[]?'
    'sbg:x': 68.06497955322266
    'sbg:y': -3.1985559463500977
  - id: check_Ateam_separation.log
    outputSource:
      - check_ateam_separation/logfile
    type: 'File[]?'
    'sbg:x': 83.07220458984375
    'sbg:y': 136.60289001464844
  - id: make_sourcedb_ateam.log
    outputSource:
      - make_sourcedb/log
    type: File?
    'sbg:x': 71.66065216064453
    'sbg:y': -880.4981689453125
  - id: msout
    outputSource:
      - ndppp_prep_cal/msout
    type: 'Directory[]'
    'sbg:x': 52.33274459838867
    'sbg:y': -546.0951538085938
  - id: logfile_prep_cal
    outputSource:
      - ndppp_prep_cal/logfile
    type: 'File[]?'
    'sbg:x': 43.325523376464844
    'sbg:y': -371.35504150390625
  - id: parset
    outputSource:
      - ndppp_prep_cal/parset
    type: 'File[]'
    'sbg:x': 49.54720687866211
    'sbg:y': -680.8679809570312
steps:
  - id: ndppp_prep_cal
    in:
      - id: baselines_to_flag
        default: []
        source:
          - baselines_to_flag
      - id: elevation_to_flag
        default: 0deg..20deg
      - id: min_amplitude_to_flag
        default: 1.e-30
      - id: memoryperc
        default: 20
        source: memoryperc
      - id: raw_data
        source: raw_data
      - id: demix
        source: demix
      - id: msin
        linkMerge: merge_flattened
        source:
          - msin
      - id: skymodel
        source: make_sourcedb/sourcedb
      - id: timeresolution
        source: timeresolution
      - id: freqresolution
        source: freqresolution
    out:
      - id: msout
      - id: logfile
    run: ../../subworkflow/ndppp_prep_cal.cwl
    label: ndppp_prep_cal
    scatter:
      - msin
    'sbg:x': -359
    'sbg:y': -519
  - id: check_ateam_separation
    in:
      - id: ms
        source:
          - msin
      - id: min_separation
        source: min_separation
    out:
      - id: output_imag
      - id: logfile
    run: ../../lofar-cwl/steps/check_ateam_separation.cwl
    label: check_Ateam_separation
    'sbg:x': -331.452392578125
    'sbg:y': 23.596216201782227
  - id: make_sourcedb
    in:
      - id: sky_model
        source: A-Team_skymodel
    out:
      - id: sourcedb
      - id: log
    run: ../../lofar-cwl/steps/makesourcedb.cwl
    label: make_sourcedb_ateam
    'sbg:x': -647.0108642578125
    'sbg:y': -981.3153076171875
requirements:
  - class: SubworkflowFeatureRequirement
  - class: ScatterFeatureRequirement