Skip to content
Snippets Groups Projects
Select Git revision
  • 96a5bd98806be9a11ff8b23b7b1c4c67d0646849
  • master default protected
  • RAP-1185_do-not-compile-tests
  • RAP-1176_switch-git-image
  • mammoth_august
  • mammoth_september
  • flag_on_polarisation
  • 3c48_logSI
  • optimize_workflow
  • ingest_info
  • poppy_integration_v50
  • releases/v5.1 protected
  • releases/v5.1rc1 protected
  • reverse_versions
  • poppy_integration
  • releases/v5.0 protected
  • use-versioned-releases
  • releases/v5.0rc2 protected
  • releases/v5.0rc1 protected
  • releases/ldv_v407_atdb protected
  • ldv_v407_debug
  • v5.1
  • v5.0
  • v5.0rc2
  • v5.0rc1
  • ldv_v406_debug
  • ldv_v405_debug
  • ldv_v404
  • ldv_v403
  • ldv_v402
  • v4.0
  • ldv_v401
  • ldv_v40
  • ldv_v031
  • ldv_v03
  • ldv_v01
36 results

AOFlagger.cwl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    AOFlagger.cwl 2.90 KiB
    #!/usr/bin/env cwl-runner
    
    class: CommandLineTool
    cwlVersion: v1.2
    id: aoflagger
    
    requirements:
      - class: InlineJavascriptRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entry: $(inputs.msin)
            writable: true
    
    hints:
      DockerRequirement:
        dockerPull: lofareosc/prefactor3-cwl
    
    baseCommand:
      - aoflagger
    inputs:
      - id: msin
        type: Directory[]
        doc: Input measurement set
        inputBinding:
          position: 0
      - id: verbose
        type: boolean?
    
        doc: will produce verbose output
        inputBinding:
          valueFrom: -v
      - id: n_threads
        type: int?
        doc: |
          overrides the number of threads specified in the strategy
          (default: one thread for each CPU core)
        inputBinding:
          prefix: -j
    
      - id: strategy
        type: File?
        doc: |
          specifies a customized strategy
        inputBinding:
          prefix: -strategy
    
    #### READ MODES
      - id: direct_read
        type: boolean?
        doc: |
          Will perform the slowest IO but will always work.
        inputBinding:
          prefix: -direct-read
      - id: indirect_read
        type: boolean?
        doc: |
          Will reorder the measurement set before starting, which is normally
          faster but requires free disk space to reorder the data to.
        inputBinding:
          prefix: -indirect-read
      - id: memory_read
        type: boolean?
        doc: |
          Will read the entire measurement set in memory. This is the fastest,
          but requires much memory.
        inputBinding:
          prefix: -memory-read
      - id: auto_read
        type: boolean?
        doc: |
           Will select either memory or direct mode based on available memory (default).
        inputBinding:
          prefix: -auto-read
    ##############
      - id: skip_flagged
        type: boolean?
        doc: |
          Will skip an ms if it has already been processed by AOFlagger according
          to its HISTORY table.
        inputBinding:
          prefix: -skip-flagged
      - id: uvw
        type: File?
        doc: Reads uvw values (some exotic strategies require these)
        inputBinding:
          prefix: -uvw
      - id: column
        type: string?
        doc: Specify column to flag
        inputBinding:
          prefix: -column
      - id: bands
        type: int[]?
        doc: Comma separated list of (zero-indexed) band ids to process
        inputBinding:
          prefix: -bands
          itemSeparator: ','
      - id: fields
        type: int[]?
        doc: Comma separated list of (zero-indexed) field ids to process
        inputBinding:
          prefix: -fields
          itemSeparator: ','
      - id: combine-spws
        type: boolean?
        doc: Join all SPWs together in frequency direction before flagging
        inputBinding:
          prefix: -combine-spws
      - id: bandpass
        type: File?
        doc: Set bandpass correction file for any 'Apply passband' action
        inputBinding:
          prefix: bandpass
    
    outputs:
      - id: output_ms
        doc: Output image
        type: Directory[]
        outputBinding:
          outputEval: $(inputs.msin)
      - id: logfile
        type: File?
        outputBinding:
          glob: aoflag.log
    label: AOFlagger
    
    stdout: aoflag.log