Skip to content
Snippets Groups Projects
Select Git revision
  • 2b9f5d863550e2fa676831e3cf3ff12cbff3b1a6
  • master default protected
  • 35-facet_selfcal-step-missing-resource-requirement
  • split_convert_DIS_to_H5parm
  • ddcal_validation
  • auto-di-selection
  • auto_dical
  • finalcal
  • facet-imaging
  • image-1asec
  • astrometry
  • stacked-selfcal
  • ateamclipper_freqstep
  • widefield
  • inspect_subtract
  • update-outputs
  • facet_selfcal
  • 0.8.0 protected
  • 0.7.1 protected
  • 0.7.0 protected
  • v0.6 protected
  • v0.5 protected
22 results

split_polygons.cwl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    split_polygons.cwl 1.32 KiB
    class: CommandLineTool
    cwlVersion: v1.2
    id: split_polygons
    label: Split Polygon Facets
    doc: This step splits a multi-facet region file into individual facet region files.
    
    baseCommand: python3
    
    inputs:
      - id: h5parm
        type: File
        doc: Multi-directional HDF5 file.
        inputBinding:
          prefix: "--h5"
          position: 1
    
      - id: facet_regions
        type: File
        doc: The DS9 region file that defines the facets.
        inputBinding:
          prefix: "--reg"
          position: 2
    
      - id: lofar_helpers
        type: Directory
        doc: The lofar_helpers directory.
    
    outputs:
      - id: polygon_regions
        type: File[]
        doc: The facet regions.
        outputBinding:
          glob: "poly*.reg"
      - id: polygon_info
        type: File
        doc: Polygon CSV file.
        outputBinding:
          glob: "*.csv"
      - id: logfile
        type: File[]
        doc: Log files from current step.
        outputBinding:
          glob: split_polygons*.log
    
    arguments:
      - $(inputs.lofar_helpers.path)/ds9_helpers/split_polygon_facets.py
      - --extra_boundary=0.0
    
    requirements:
      - class: InlineJavascriptRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entry: $(inputs.h5parm)
          - entry: $(inputs.facet_regions)
    
    hints:
      - class: DockerRequirement
        dockerPull: vlbi-cwl
      - class: ResourceRequirement
        coresMin: 1
    
    stdout: split_polygons.log
    stderr: split_polygons_err.log