-
Notifications
You must be signed in to change notification settings - Fork 3
/
phase.cwl
77 lines (62 loc) · 1.68 KB
/
phase.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
# /usr/lib/prefactor/scripts/find_cal_global_phaseoffset_losoto.py
#
# Since we can't run this script from the command line we call it
# from python.
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python]
label: "Find global phase offset"
hints:
DockerRequirement:
dockerPull: kernsuite/prefactor
inputs:
losoto:
type: File
format: http://revoltek.github.io/losoto/cookbook.pdf
refstation_id:
type: int?
default: 2
source_id:
type: int?
default: 0
arguments:
- prefix: -c
valueFrom: |
from find_cal_global_phaseoffset_losoto import main
main(losotoname="$(inputs.losoto.path)",
store_basename="cwl",
refstationID=$(inputs.refstation_id),
sourceID=$(inputs.source_id)
)
outputs:
freqs_for_phase_array:
type: File
format: https://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
label: "Frequencies"
outputBinding:
glob: "freqs_for_phase_array.npy"
phase_array:
type: File
format: https://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
label: "Phase solutions"
outputBinding:
glob: "cwl_phase_array.npy"
station_names:
type: File
format: https://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
label: "Station names"
outputBinding:
glob: "cwl_station_names.npy"
phase_xx_yy_offset:
type: File
format: image/png
outputBinding:
glob: "phase_xx_yy_offset.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"