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

Add LoSoTo Faraday

parent e525a2c0
No related branches found
No related tags found
No related merge requests found
Pipeline #480 passed with warnings
...@@ -111,6 +111,12 @@ losoto_clip: ...@@ -111,6 +111,12 @@ losoto_clip:
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_faraday:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Faraday.cwl test_jobs/losoto_faraday.json
losoto_residual: losoto_residual:
stage: test_steps stage: test_steps
allow_failure: true allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_faraday
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
Faraday rotation extraction from either a rotation table or a
circular phase (of which the operation get the polarisation difference).
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('FARADAY').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: refAnt
type: string?
doc: Reference antenna, by default the first.
- id: maxResidual
type: float?
doc: |
Max average residual in radians before flagging datapoint,
by default 1. If 0: no check.
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.
Please register or to comment