Commit 2b859701 authored by mancini's avatar mancini

Add losoto structure

parent 21d1702f
Pipeline #506 passed with stages
in 4 minutes and 14 seconds
......@@ -109,6 +109,12 @@ losoto_reset:
script:
- cwl-runner --no-container steps/LoSoTo.Reset.cwl test_jobs/losoto_reset.json
losoto_structure:
stage: test_steps
allow_failure: true
script:
- cwl-runner --no-container steps/LoSoTo.Structure.cwl test_jobs/losoto_structure.json
losoto_smooth:
stage: test_steps
allow_failure: true
......
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_structure
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
Find the structure function from phase solutions of core stations.
WEIGHT: compliant
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('STRUCTURE').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: doUnwrap
type: boolean?
- id: refAnt
type: string?
doc: Reference antenna, by default the first.
- id: plotName
type: string?
doc: Plot file name, by default no plot.
- id: ndiv
type: int?
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",
}
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