Commit 679fd1de authored by Mattia Mancini's avatar Mattia Mancini

Add parameters to gain cal


Former-commit-id: abf303f001a9308728594d32db18b04b36c9a535
Former-commit-id: e8dcaa18
parent 3fdab5aa
*.h5 filter=lfs diff=lfs merge=lfs -text
\ No newline at end of file
No preview for this file type
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
lofar: 'https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl'
sbg: 'https://www.sevenbridges.com/'
id: gaincal
baseCommand: [DPPP]
requirements:
InlineJavascriptRequirement: {}
hints:
DockerRequirement:
dockerPull: lofareosc/lofar-pipeline-ci:latest
arguments:
- steps=[gaincal]
baseCommand:
- DPPP
inputs:
- id: msin
type: Directory?
doc: Input Measurement Set
type: Directory
inputBinding:
prefix: msin=
separate: false
position: 0
prefix: msin=
separate: false
doc: Input Measurement Set
- id: caltype
type:
type: enum
symbols:
- diagonal
- fulljones
- phaseonly
- scalarphase
- amplitude
- scalaramplitude
- tec
- tecandphase
name: caltype
inputBinding:
position: 0
prefix: gaincal.caltype=
separate: false
doc: |
The type of calibration that needs to be performed.
type:
type: enum
symbols:
- diagonal
- fulljones
- phaseonly
- scalarphase
- amplitude
- scalaramplitude
- tec
- tecandphase
inputBinding:
prefix: gaincal.caltype=
separate: false
- default: instrument.h5
id: output_name_h5parm
type: string
inputBinding:
position: 0
prefix: gaincal.parmdb=
separate: false
- id: blrange
type: 'string[]?'
inputBinding:
position: 0
prefix: gaincal.blrange=
separate: false
itemSeparator: ','
valueFrom: '[$(self)]'
doc: Vector of baseline lengths to use for calibration
- id: uvlambdamin
type: float?
inputBinding:
position: 0
prefix: gaincal.uvlambdamin=
separate: false
- id: baseline
type: string?
inputBinding:
position: 0
prefix: gaincal.baseline=
separate: false
- id: applysolutions
type: boolean?
doc: Apply the calibration solution to the visibilities. Note that you should always also inspect the parmdb afterwards to check that the solutions look reasonable.
inputBinding:
prefix: gaincal.applysolutions=
- id: solint
default: 1
type: int
doc: >
Number of time slots on which a solution is assumed to be constant (same
as CellSize.Time in BBS).
0 means all time slots. Note that for larger settings of solint, and
specially for solint = 0,
the memory usage of gaincal will be large (all visibilities for a solint
should fit in memory).
- id: nchan
type: int
inputBinding:
position: 0
prefix: gaincal.nchan=
separate: false
- id: sourcedb
type: File
inputBinding:
prefix: gaincal.sourcedb=
separate: false
- id: usebeammodel
position: 0
prefix: gaincal.sourcedb=
separate: false
- id: usemodelcolumn
default: MODEL_DATA
type: boolean?
inputBinding:
position: 0
prefix: gaincal.usemodelcolumn=
separate: false
doc: "\tUse model column. The model column name can be specified with msin.modelcolumn\n"
- default: true
id: usebeammodel
type: boolean
default: true
inputBinding:
prefix: gaincal.usebeammodel=true
separate: false
- id: storagemanager
position: 0
prefix: gaincal.usebeammodel=true
separate: false
- default: dysco
id: storagemanager
type: string
default: dysco
inputBinding
inputBinding:
position: 0
prefix: msout.storagemanager=
- id: solint
type: int
default: 1
doc: |
Number of time slots on which a solution is assumed to be constant (same as CellSize.Time in BBS).
0 means all time slots. Note that for larger settings of solint, and specially for solint = 0,
the memory usage of gaincal will be large (all visibilities for a solint should fit in memory).
- id: msin_datacolumn
- default: DATA
id: msin_datacolumn
type: string?
default: DATA
doc: Input data Column
inputBinding:
prefix: msin.datacolumn=
separate: false
- id: onebeamperpatch
type: boolean
position: 0
prefix: msin.datacolumn=
separate: false
doc: Input data Column
default: true
- default: true
id: onebeamperpatch
type: boolean
inputBinding:
prefix: gaincal.onebeamperpatch=True
separate: false
- id: msin_modelcolum
position: 0
prefix: gaincal.onebeamperpatch=True
separate: false
doc: Input data Column
- default: MODEL_DATA
id: msin_modelcolum
type: string
default: MODEL_DATA
doc: Model data Column
inputBinding:
prefix: msin.modelcolumn=
separate: false
- id: output_name_h5parm
position: 0
prefix: msin.modelcolumn=
separate: false
doc: Model data Column
- default: out.MS
id: msout_name
type: string
default: instrument.h5
inputBinding:
prefix: gaincal.parmdb=
separate: false
- id: msout_name
type: string
position: 0
prefix: msout=
separate: false
doc: Output Measurement Set
default: out.MS
- id: input
type: File?
inputBinding:
prefix: msout=
separate: false
position: 0
outputs:
- id: msout
doc: Output Measurement Set
type: Directory
outputBinding:
glob: $(inputs.msout_name=="."?inputs.msin:inputs.msout_name)
glob: '$(inputs.msout_name=="."?inputs.msin:inputs.msout_name)'
- id: h5parm
doc: Filename of output H5Parm (to be read by e.g. losoto)
type: File
format: lofar:#H5Parm
outputBinding:
glob: $(inputs.output_name_h5parm)
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
format: 'lofar:#H5Parm'
arguments:
- 'steps=[gaincal]'
hints:
- class: DockerRequirement
dockerPull: 'lofareosc/lofar-pipeline:latest'
requirements:
- class: InlineJavascriptRequirement
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
- 'https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl'
*.h5 filter=lfs diff=lfs merge=lfs -text
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment