Skip to content
Snippets Groups Projects
Select Git revision
  • 57d4030c6dc7e63d6014180583b88851f807d809
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

t_scheduling.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    target_solve.cwl 1.94 KiB
    cwlVersion: v1.2
    class: CommandLineTool
    id: target_solve
    label: Target Solve
    doc: |
      This tool performs selfcalibration on the target source. 
      It uses the facetselfcal.py script from the LOFAR helper scripts with the --auto setting.
    
    baseCommand:
        - python3
        - delay_solve.py
    
    inputs:
        - id: msin
          type: Directory
          doc: Delay calibrator measurement set.
        - id: configfile
          type: File
          doc: Configuration options for self-calibration.
        - id: selfcal
          type: Directory
          doc: External self-calibration script.
        - id: h5merger
          type: Directory
          doc: External LOFAR helper scripts for merging h5 files.
    
    outputs:
        - id: images
          type: File[]
          outputBinding:
            glob: '*.png'
        - id: fits_images
          type: File[]
          outputBinding:
            glob: '*MFS-image.fits'
        - id: logfile
          type: File[]
          outputBinding:
             glob: target_solve*.log
    
    requirements:
      - class: ShellCommandRequirement
      - class: InlineJavascriptRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entry: $(inputs.configfile)
          - entry: $(inputs.msin)
          - entry: $(inputs.h5merger)
          - entryname: delay_solve.py
            entry: |
              import subprocess
              import sys
              import json
    
              inputs = json.loads(r"""$(inputs)""")
                
              msin = inputs['msin']['basename']
              configfile = inputs['configfile']['path']
              selfcal = inputs['selfcal']['path']
              h5merge = inputs['h5merger']['path']
    
              imagename = msin.split('.copy')[0]
    
              subprocess.run(f'python3 {selfcal}/facetselfcal.py {msin} --helperscriptspath {selfcal} 
                --helperscriptspathh5merge {h5merge} --weightspectrum-clipvalue 30.0 --auto --imagename {imagename}', shell = True)
    
    hints:
      - class: DockerRequirement
        dockerPull: vlbi-cwl
      - class: ResourceRequirement