-
Notifications
You must be signed in to change notification settings - Fork 3
/
plot_cal_phases.cwl
91 lines (78 loc) · 2.61 KB
/
plot_cal_phases.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# $ losoto -h
# Usage: losoto [-v|-V] h5parm parset [default: losoto.parset]
# Francesco de Gasperin (fdg@strw.leidenuniv.nl)
#
# Options:
# --version show program's version number and exit
# -h, --help show this help message and exit
# -q Quiet
# -v Verbose
# -f FILTER, --filter=FILTER
# Filter to use with "-i" option to filter on solution
# set names (default=None)
# -i List information about h5parm file (default=False). A
# filter on the solution set names can be specified with
# the "-f" option.
# -d DELETE, --delete=DELETE
# Specify a solution table to be deleted. Use the
# solset/soltab sintax.
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [losoto]
label: "Plot raw calibration results"
hints:
DockerRequirement:
dockerPull: kernsuite/prefactor
requirements:
InitialWorkDirRequirement:
listing:
- entryname: losoto.parset
entry: |
flags = [hdf5file]
LoSoTo.Steps = [plot]
LoSoTo.Solset = [sol000]
LoSoTo.Soltab = [sol000/phase000]
LoSoTo.SolType = [phase]
LoSoTo.ant = []
LoSoTo.pol = [XX,YY]
LoSoTo.dir = [pointing]
LoSoTo.Steps.plot.Operation = PLOT
LoSoTo.Steps.plot.PlotType = 2D
LoSoTo.Steps.plot.Axes = [time,freq]
LoSoTo.Steps.plot.TableAxis = [ant]
LoSoTo.Steps.plot.ColorAxis = [pol]
LoSoTo.Steps.plot.Reference = $(inputs.reference_station)
LoSoTo.Steps.plot.PlotFlag = False
LoSoTo.Steps.plot.Prefix = cwl_
- entry: $(inputs.h5parm)
writable: true
inputs:
h5parm:
type: File
format: http://revoltek.github.io/losoto/cookbook.pdf
inputBinding:
position: 1
reference_station:
type: string
arguments:
- valueFrom: losoto.parset
position: 2
outputs:
polXX_dirpointing:
type: File
format: image/png
outputBinding:
glob: "cwl_polXX_dirpointing.png"
polYY_dirpointing:
type: File
format: image/png
outputBinding:
glob: "cwl_polYY_dirpointing.png"
$namespaces:
s: http://schema.org/
$schemas:
- https://schema.org/version/latest/schema.rdf
s:license: "https://mit-license.org/"
s:author:
s:person.url: "http://orcid.org/0000-0002-6136-3724"