Skip to content
Snippets Groups Projects
Select Git revision
  • b96fb67e87e6bbeeec0c52aa6197a97dacf3e01c
  • master default protected
  • auto-di-selection
  • ddcal_validation
  • split_convert_DIS_to_H5parm
  • 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
21 results

generate_parset_split.cwl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    generate_parset_split.cwl 2.97 KiB
    cwlVersion: v1.2
    class: CommandLineTool
    id: generate_parset_split_directions
    label: Generate DP3 parset for split directions
    doc: |
        Generates a DP3 parameterset to split off
        directions from a given MeasurementSet.
    
    baseCommand: [cat, input.parset]
    
    stdout: dp3_explode.parset
    
    inputs:
        - id: msout_names
          type: string
          doc: |
            A string of names, one for each direction to image.
    
        - id: phase_centers
          type: string
          doc: |
            A string of pairs of right ascension and declination
            coordinates, one for each direction to image.
    
        - id: frequency_resolution
          type: string?
          default: '390.56kHz'
          doc: |
            Frequency resolution for the third averaging.
    
        - id: time_resolution
          type: string?
          default: '32.'
          doc: |
            Time resolution in seconds for the third averaging.
    
        - id: beamdir_delay_cal
          type: string
          doc: |
            Direction in which the primary beam correction for
            the delay calibration has been done.
    
    outputs:
      - id: parset
        type: File
        doc: A DP3 parameterset file.
        outputBinding:
          glob: dp3_explode.parset
    
    requirements:
      - class: InlineJavascriptRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entryname: input.parset
            entry: |+
                steps                       = [split]
    
                split.replaceparms          = [phaseshift.phasecenter, applytargetbeam.direction, msout.name]
                split.steps                 = [phaseshift, averager1, applydelaybeam, applycal, applytargetbeam, averager2, msout]
    
                phaseshift.type             = phaseshift
                phaseshift.phasecenter      = $(inputs.phase_centers)
    
                averager1.type              = averager
                averager1.freqresolution    = 48.82kHz
                averager1.timeresolution    = 4.
    
                # Beam and solutions are fulljones, so they don't commute.
                applydelaybeam.type              = applybeam
                applydelaybeam.direction         = $(inputs.beamdir_delay_cal)
                applydelaybeam.beammode          = full
    
                # Apply delay calibrator solutions now.
                applycal.type               = applycal
                applycal.correction         = fulljones
                applycal.soltab             = [amplitude000, phase000]
                
                # Only now can we properly apply the primary beam of the target.
                # DP3 understands the previous applybeam. No explicit undo needed.
                applytargetbeam.type              = applybeam
                applytargetbeam.direction         = $(inputs.phase_centers)
                applytargetbeam.beammode          = full
    
                averager2.type              = averager
                averager2.freqresolution    = $(inputs.frequency_resolution)
                averager2.timeresolution    = $(inputs.time_resolution)
    
                msout.storagemanager        = dysco
                msout.name                  = $(inputs.msout_names)
                msout.overwrite             = True