Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
HBA_calibrator.cwl 6.74 KiB
class: Workflow
cwlVersion: v1.0
id: _h_b_a
label: HBA.cwl
$namespaces:
  sbg: 'https://www.sevenbridges.com/'
inputs:
  - id: msin
    type: 'Directory[]'
    'sbg:x': -1000
    'sbg:y': -1700
  - id: refant
    type: string?
    default: CS001HBA0
    'sbg:x': -1000
    'sbg:y': -1600
  - id: flag_baselines
    type: 'string[]?'
    default: []
    'sbg:x': -1000
    'sbg:y': -1500
  - id: process_baselines_cal
    type: string?
    default: '*&'
    'sbg:x': -1000
    'sbg:y': -1400
  - id: filter_baselines
    type: string?
    default: '*&'
    'sbg:x': -1000
    'sbg:y': -1300
  - id: do_smooth
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': -1200
  - id: rfistrategy
    type: string?
    default: HBAdefault.rfis
    'sbg:x': -1000
    'sbg:y': -1100
  - id: max2interpolate
    type: int?
    default: 30
    'sbg:x': -1000
    'sbg:y': -1000
  - id: ampRange
    type: 'int[]?'
    default:
      - 0
      - 0
    'sbg:x': -1000
    'sbg:y': -900
  - id: skip_international
    type: boolean?
    default: true
    'sbg:x': -1000
    'sbg:y': -800
  - id: raw_data
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': -700
  - id: propagatesolutions
    type: boolean?
    default: true
    'sbg:x': -1000
    'sbg:y': -600
  - id: flagunconverged
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': -500
  - id: maxStddev
    type: float?
    default: -1.0
    'sbg:x': -1000
    'sbg:y': -400
  - id: solutions2transfer
    type: File?
    default: /data/solutions/3C48.h5
    'sbg:x': -1000
    'sbg:y': -300
  - id: antennas2transfer
    type: File?
    default: '[FUSPID].*'
    'sbg:x': -1000
    'sbg:y': -200
  - id: demix_sources
    type: 'string[]?'
    default:
      - CasA
      - CygA
    'sbg:x': -1000
    'sbg:y': -100
  - id: demix_target
    type: string?
    default: ''
    'sbg:x': -1000
    'sbg:y': 0
  - id: demix_freqstep
    type: int?
    default: 16
    'sbg:x': -1000
    'sbg:y': 100
  - id: demix_timestep
    type: int?
    default: 10
    'sbg:x': -1000
    'sbg:y': 200
  - id: demix
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': 300
  - id: ion_3rd
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': 400
  - id: clock_smooth
    type: boolean?
    default: true
    'sbg:x': -1000
    'sbg:y': 500
  - id: tables2export
    type: string?
    default: clock
    'sbg:x': -1000
    'sbg:y': 600
  - id: final_apply
    type: boolean?
    default: false
    'sbg:x': -1000
    'sbg:y': 700
  - id: memoryperc
    type: int?
    default: 20
    'sbg:x': -1000
    'sbg:y': 800
  - id: min_length
    type: int?
    default: 50
    'sbg:x': -1000
    'sbg:y': 900
  - id: overhead
    type: float?
    default: 0.8
    'sbg:x': -1000
    'sbg:y': 1000
  - id: min_separation
    type: int?
    default: 30
    'sbg:x': -1000
    'sbg:y': 1100
  - id: max_separation_arcmin
    type: float?
    default: 1
    'sbg:x': -1000
    'sbg:y': 1200
  - id: calibrator_path_skymodel
    type: Directory?
    default: /data/skymodels
    'sbg:x': -1000
    'sbg:y': 1300
  - id: A-Team_sky_model
    type: File?
    default: /data/skymodels/Ateam_LBA_CC.skymodel
    'sbg:x': -1000
    'sbg:y': 1400
  - id: cal_solutions
    type: string?
    default: cal_solutions.h5
    'sbg:x': -1000
    'sbg:y': 1500
  - id: avg_timeresolution
    type: float?
    default: 4
    'sbg:x': -1000
    'sbg:y': 1600
  - id: avg_freqresolution
    type: string?
    default: 48.82kHz
    'sbg:x': -1000
    'sbg:y': 1700
  - id: bandpass_freqresolution
    type: string?
    default: 195.3125kHz
    'sbg:x': -1000
    'sbg:y': 1800
outputs:
  - id: msout
    outputSource:
      - prefactor/msout
    type: 'Directory[]'
    'sbg:x': 1000
    'sbg:y': -200
  - id: make_sourcedb_ateam.log
    outputSource:
      - prefactor/make_sourcedb_ateam.log
    type: File?
    'sbg:x': 1000
    'sbg:y': -100
  - id: logfile_prep_cal
    outputSource:
      - prefactor/logfile_prep_cal
    type: 'File[]?'
    'sbg:x': 1000
    'sbg:y': 0
  - id: check_Ateam_separation.png
    outputSource:
      - prefactor/check_Ateam_separation.png
    type: 'File[]?'
    'sbg:x': 1000
    'sbg:y': 100
  - id: check_Ateam_separation.log
    outputSource:
      - prefactor/check_Ateam_separation.log
    type: 'File[]?'
    'sbg:x': 1000
    'sbg:y': 200
  - id: parset
    outputSource:
      - prefactor/parset
    type: 'File[]'
    'sbg:x': 1000
    'sbg:y': 300
steps:
  - id: prefactor
    in:
      - id: msin
        source: msin
      - id: refant
        source: refant
      - id: flag_baselines
        source: flag_baselines
      - id: process_baselines_cal
        source: process_baselines_cal
      - id: filter_baselines
        source: filter_baselines
      - id: do_smooth
        source: do_smooth
      - id: rfistrategy
        source: rfistrategy
      - id: max2interpolate
        source: max2interpolate
      - id: ampRange
        source: ampRange
      - id: skip_international
        source: skip_international
      - id: raw_data
        source: raw_data
      - id: propagatesolutions
        source: propagatesolutions
      - id: flagunconverged
        source: flagunconverged
      - id: maxStddev
        source: maxStddev
      - id: solutions2transfer
        source: solutions2transfer
      - id: antennas2transfer
        source: antennas2transfer
      - id: demix_sources
        source: demix_sources
      - id: demix_target
        source: demix_target
      - id: demix_freqstep
        source: demix_freqstep
      - id: demix_timestep
        source: demix_timestep
      - id: demix
        source: demix
      - id: ion_3rd
        source: ion_3rd
      - id: clock_smooth
        source: clock_smooth
      - id: tables2export
        source: tables2export
      - id: final_apply
        source: final_apply
      - id: memoryperc
        source: memoryperc
      - id: min_length
        source: min_length
      - id: overhead
        source: overhead
      - id: min_separation
        source: min_separation
      - id: max_separation_arcmin
        source: max_separation_arcmin
      - id: calibrator_path_skymodel
        source: calibrator_path_skymodel
      - id: A-Team_sky_model
        source: Team_sky_model
      - id: cal_solutions
        source: cal_solutions
      - id: avg_timeresolution
        source: avg_timeresolution
      - id: avg_freqresolution
        source: avg_freqresolution
      - id: bandpass_freqresolution
        source: bandpass_freqresolution
    out:
      - id: check_Ateam_separation.png
      - id: check_Ateam_separation.log
      - id: make_sourcedb_ateam.log
      - id: msout
      - id: logfile_prep_cal
      - id: parset
    run: ./prefactor_calibrator.cwl
    label: prefactor_calibrator
    'sbg:x': 0
    'sbg:y': 0
requirements:
  - class: SubworkflowFeatureRequirement