Skip to content
Snippets Groups Projects
prefactor_calibrator_test.cwl 4.05 KiB
Newer Older
class: Workflow
cwlVersion: v1.0
id: prefactor_calibrator
label: prefactor_calibrator
$namespaces:
  sbg: 'https://www.sevenbridges.com/'
inputs:
  - id: msin
    type: 'Directory[]'
    'sbg:x': -1000
    'sbg:y': -800
Alexander Drabent's avatar
Alexander Drabent committed
  - id: filter_baselines
    type: string
    'sbg:x': -1000
    'sbg:y': -700
  - id: raw_data
    type: boolean
    'sbg:x': -1000
    'sbg:y': -600
  - id: demix
    type: boolean
    'sbg:x': -1000
    'sbg:y': -500
  - id: memoryperc
    type: int
    'sbg:x': -1000
    'sbg:y': -400
Alexander Drabent's avatar
Alexander Drabent committed
  - id: flag_baselines
    type: 'string[]'
    'sbg:x': -1000
    'sbg:y': -300
Alexander Drabent's avatar
Alexander Drabent committed
  - id: avg_timeresolution
    type: float
    'sbg:x': -1000
    'sbg:y': -200
  - id: avg_freqresolution
    type: string
    'sbg:x': -1000
    'sbg:y': -100
  - id: process_baselines_cal
    type: string
    'sbg:x': -1000
    'sbg:y': 0
  - id: demix_timestep
Alexander Drabent's avatar
Alexander Drabent committed
    type: int
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -1000
    'sbg:y': 100
  - id: demix_freqstep
Alexander Drabent's avatar
Alexander Drabent committed
    type: int
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -1000
    'sbg:y': 100
  - id: demix_target
    type: string
    'sbg:x': -1000
    'sbg:y': 200
  - id: demix_sources
    type: string
    'sbg:x': -1000
    'sbg:y': 300
  - id: do_smooth
    type: boolean
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -1000
    'sbg:y': 400
  - id: min_separation
    type: float?
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -1000
    'sbg:y': 500
  - id: A-Team_skymodel
    default: /data/skymodels/Ateam_LBA_CC.skymodel
    type:
      - string?
      - File?
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -1000
    'sbg:y': 600

outputs:
  - id: check_Ateam_separation.png
    outputSource:
      - check_ateam_separation/output_imag
    type: 'File[]?'
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': -300
  - id: check_Ateam_separation.log
    outputSource:
      - check_ateam_separation/logfile
    type: 'File[]?'
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': -200
  - id: make_sourcedb_ateam.log
    outputSource:
      - make_sourcedb/log
    type: File?
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': -100
  - id: msout
    outputSource:
      - ndppp_prep_cal/msout
    type: 'Directory[]'
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': 0
  - id: logfile_prep_cal
    outputSource:
      - ndppp_prep_cal/logfile
    type: 'File[]?'
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': 100
  - id: parset
    outputSource:
      - ndppp_prep_cal/parset
    type: 'File[]'
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 1000
    'sbg:y': 200
steps:
  - id: ndppp_prep_cal
    in:
Alexander Drabent's avatar
Alexander Drabent committed
      - id: msin
        linkMerge: merge_flattened
Alexander Drabent's avatar
Alexander Drabent committed
          - msin
      - id: filter_baselines
        source: filter_baselines
        default: "*"
      - id: raw_data
Alexander Drabent's avatar
Alexander Drabent committed
        default: false
        source: raw_data
      - id: demix
Alexander Drabent's avatar
Alexander Drabent committed
        default: false
        source: demix
Alexander Drabent's avatar
Alexander Drabent committed
      - id: memoryperc
        default: 20
        source: memoryperc
      - id: baselines_to_flag
        default: []
        source: flag_baselines
      - id: timeresolution
Alexander Drabent's avatar
Alexander Drabent committed
        default: 1.
        source: avg_timeresolution
      - id: freqresolution
Alexander Drabent's avatar
Alexander Drabent committed
        default: "12.21kHz"
        source: avg_freqresolution
      - id: process_baselines_cal
        default: "*"
        source: process_baselines_cal
      - id: demix_freqstep
        default: 1
        source: demix_freqstep
      - id: demix_timestep
        default: 1
        source: demix_timestep
      - id: demix_target
        source: demix_target
      - id: demix_sources
        source: demix_sources
      - id: skymodel
        source: make_sourcedb/sourcedb
    out:
      - id: msout
      - id: logfile
    run: ../subworkflow/ndppp_prep_cal.cwl
    label: ndppp_prep_cal
    scatter:
      - msin
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 0
    'sbg:y': 0
  - 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
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': 0
    'sbg:y': -300
  - id: make_sourcedb
    in:
      - id: sky_model
        source: A-Team_sky_model
    out:
      - id: sourcedb
      - id: log
    run: ../lofar-cwl/steps/makesourcedb.cwl
    label: make_sourcedb_ateam
Alexander Drabent's avatar
Alexander Drabent committed
    'sbg:x': -500
    'sbg:y': 300
requirements:
  - class: SubworkflowFeatureRequirement
  - class: ScatterFeatureRequirement