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

Merge branch 'losoto_clocktec' into 'master'

Add LoSoTo clocktec step

See merge request eosc/lofar-cwl!18
parents 38b40fb4 170940e2
No related branches found
No related tags found
1 merge request!69Change the name of the pre-calibrated output MS
...@@ -132,6 +132,13 @@ losoto_clip: ...@@ -132,6 +132,13 @@ losoto_clip:
allow_failure: true allow_failure: true
script: script:
- cwl-runner --no-container steps/LoSoTo.Clip.cwl test_jobs/losoto_clip.json - cwl-runner --no-container steps/LoSoTo.Clip.cwl test_jobs/losoto_clip.json
losoto_clocktec:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.ClockTec.cwl test_jobs/losoto_clocktec.json
losoto_flagextend: losoto_flagextend:
stage: test_steps stage: test_steps
allow_failure: true allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_clocktec
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
Separate phase solutions into Clock and TEC.
The Clock and TEC values are stored in the specified output soltab with type 'clock', 'tec', 'tec3rd'.
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('CLOCKTEC').join('\n'))
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto"
arguments:
- $(inputs.input_h5parm.basename)
- parset.config
hints:
DockerRequirement:
dockerPull: lofareosc/lofar-pipeline-ci:latest
inputs:
- id: input_h5parm
type: File
format: lofar:#H5Parm
- id: soltab
type: string
doc: "Solution table"
- id: flagBadChannels
type: boolean?
doc: Detect and remove bad channel before fitting, by default True.
- id: flagCut
type: float?
- id: chi2cut
type: float?
- id: combinePol
type: boolean?
doc: |
Find a combined polarization solution, by default False.
- id: removePhaseWraps
type: boolean?
doc: |
Detect and remove phase wraps, by default True.
- id: fit3rdorder
type: boolean?
doc: |
Fit a 3rd order ionospheric ocmponent (usefult <40 MHz). By default False.
- id: circular
type: boolean?
doc: |
Assume circular polarization with FR not removed. By default False.
- id: reverse
type: boolean?
doc:
Reverse the time axis. By default False.
- id: invertOffset
type: boolean?
doc: |
Invert (reverse the sign of) the phase offsets. By default False. Set to True
if you want to use them with the residuals operation.
outputs:
- id: output_h5parm
type: File
format: lofar:#H5Parm
outputBinding:
glob: $(inputs.input_h5parm.basename)
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
{
"input_h5parm": {"class": "File", "path": "/data/example.h5", "format": "lofar:#H5Parm"},
"soltab": "sol000/phase000",
"ncpu": 1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment