Skip to content
Snippets Groups Projects
Commit e8dcaa18 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add parameters to gain cal

Former-commit-id: abf303f001a9308728594d32db18b04b36c9a535
parent f05b7194
No related branches found
No related tags found
No related merge requests found
Pipeline #1761 passed with warnings
File added
#!/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:
position: 0
prefix: msin=
separate: false
doc: Input Measurement Set
- id: caltype
doc: |
The type of calibration that needs to be performed.
type:
type: enum
symbols:
......@@ -37,83 +26,146 @@ inputs:
- scalaramplitude
- tec
- tecandphase
name: caltype
inputBinding:
position: 0
prefix: gaincal.caltype=
separate: false
doc: |
The type of calibration that needs to be performed.
- 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:
position: 0
prefix: gaincal.sourcedb=
separate: false
- id: usebeammodel
- 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:
position: 0
prefix: gaincal.usebeammodel=true
separate: false
- id: storagemanager
- 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:
position: 0
prefix: msin.datacolumn=
separate: false
- id: onebeamperpatch
type: boolean
doc: Input data Column
default: true
- default: true
id: onebeamperpatch
type: boolean
inputBinding:
position: 0
prefix: gaincal.onebeamperpatch=True
separate: false
- id: msin_modelcolum
doc: Input data Column
- default: MODEL_DATA
id: msin_modelcolum
type: string
default: MODEL_DATA
doc: Model data Column
inputBinding:
position: 0
prefix: msin.modelcolumn=
separate: false
- id: output_name_h5parm
doc: Model data Column
- default: out.MS
id: msout_name
type: string
default: instrument.h5
inputBinding:
prefix: gaincal.parmdb=
position: 0
prefix: msout=
separate: false
- id: msout_name
type: string
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'
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment