Select Git revision
DP3.DemixerStepGenerator.cwl
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
DP3.DemixerStepGenerator.cwl 5.67 KiB
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.1
$namespaces:
sbg: 'https://www.sevenbridges.com/'
id: demix_step_generator
inputs:
- id: steps
type: Any[]?
default: []
- id: step_name
type: string
doc: unique name for the step
default: demix
- id: baseline
default: ""
type: string
doc: Baselines to demix. See Description of baseline selection parameters.
- id: blrange
default: []
type: double[]
doc: Baselines to demix. See Description of baseline selection parameters.
- id: corrtype
default: cross
type: string
doc: >-
Baselines to demix. Correlation type to match? Must be auto, cross, or an
empty string.
- id: timestep
default: 1
type: int
doc: >-
Number of time slots to average when subtracting. It is truncated if
exceeding the actual number of times. Note that the data itself will also
be averaged by this amount.
- id: freqstep
default: 1
type: int
doc: >-
Number of channels to average when subtracting. It is truncated if
exceeding the actual number of channels. Note that the data itself will
also be averaged by this amount.
- id: demixtimestep
default: 0
type: int
doc: >-
Number of time slots to average when demixing. It is truncated if
exceeding the actual number of times. It defaults to the averaging used
for the subtract.
- id: demixfreqstep
default: 0
type: int
doc: >-
Number of channels to average when demixing. It is truncated if exceeding
the actual number of channels. It defaults to the averaging used for the
subtract.
- id: ntimechunk
default: null
type: int
doc: >-
Number of demix time slots (after averaging) that are processed jointly in
as much a parallel way as possible. If subtract uses different time
averaging, it has to fit integrally.
- id: skymodel
default: sky
type: [File, Directory, string]
doc: The name of the SourceDB to use (i.e., the output of makesourcedb).
- id: instrumentmodel
default: instrument
type: string
doc: >-
The name of the ParmDB to use. The ParmDB does not need to exist. If it
does not exist it will be created.
- id: subtractsources
default: null
type: string[]?
doc: >-
Names of the sources to subtract. If none are given, demixing comes down
to averaging. The sources must exist as patches in the SourceDB.
- id: modelsources
default: []
type: string[]
doc: >-
Names of sources with models to take into account when solving. the
sources must exist as patches in the SourceDB. Note that the target should
NOT be part of this parameter. If a model of the target has to be used, it
has to be given in parameter targetsource.
- id: targetsource
default: ''
type: string
doc: >-
It can be used to specify the name of the source model of the target. If
given, the target source model (its patch in the SourceDB) is taken into
account when solving; in this case parameter othersources cannot be given.
It cannot be given if ignoretarget=true. If not given, the target is
projected away or ignored (depending on parameter ignoretarget).
- id: ignoretarget
default: false
type: boolean
doc: false = project the target source away; true = ignore the target
- id: othersources
default: []
type: string[]
doc: >-
Names of sources of which the direction is taken into account when
demixing by projecting the directions away. The direction needs to be
specified if the source is unknown (which is usually the case). It can be
done using parameters <step>.<sourcename>.phasecenter.
- id: propagatesolutions
default: true
type: boolean
doc: >-
If set to true, solutions of a time slot are used as initial values for
the next time slot. If set to false, the diagonal elements of the Jones
matrix are initialized to one and the off-diagonal elements to zero.
- id: defaultgain
default: 1
type: double
doc: >-
The default and initial gain for the directional gains that are computed
internally.
- id: maxiter
default: 50
type: int
doc: Maximum number of iterations used in the LM solve
outputs:
- id: augmented_steps
outputSource:
- DP3_GenericStep/augmented_steps
type: Any[]
steps:
- id: DP3_GenericStep
in:
- id: steps
source: steps
- id: output_files
default: ["instrumentmodel"]
- id: parameters
valueFrom: $(inputs)
- id: step_id
source: step_name
- id: step_type
default: 'demixer'
- id: baseline
source: baseline
- id: blrange
source: blrange
- id: corrtype
source: corrtype
- id: timestep
source: timestep
- id: freqstep
source: freqstep
- id: demixtimestep
source: demixtimestep
- id: demixfreqstep
source: demixfreqstep
- id: ntimechunk
source: ntimechunk
- id: skymodel
source: skymodel
- id: instrumentmodel
source: instrumentmodel
- id: subtractsources
source: subtractsources
- id: modelsources
source: modelsources
- id: targetsource
source: targetsource
- id: ignoretarget
source: ignoretarget
- id: othersources
source: othersources
- id: propagatesolutions
source: propagatesolutions
- id: defaultgain
source: defaultgain
- id: maxiter
source: maxiter
out:
- augmented_steps
run: ../steps/DP3.GenericStep.cwl
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: MultipleInputFeatureRequirement