Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Prefactor3-CWL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Rafferty
Prefactor3-CWL
Commits
2d96ad0e
Commit
2d96ad0e
authored
Nov 8, 2019
by
Mattia Mancini
Browse files
Options
Downloads
Plain Diff
Merge branch 'losoto_plot' of git.astron.nl:eosc/prefactor3-cwl into losoto_plot
parents
28969870
41986bd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
steps/LoSoTo.Plot.cwl
+138
-0
138 additions, 0 deletions
steps/LoSoTo.Plot.cwl
with
138 additions
and
0 deletions
steps/LoSoTo.Plot.cwl
0 → 100644
+
138
−
0
View file @
2d96ad0e
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_plot
doc: |
This operation for LoSoTo implements basic plotting WEIGHT:
flag-only compliant, no need for weight
requirements:
InlineJavascriptRequirement:
expressionLib:
- |
function get_config() {
var par = ['soltab = ' + inputs.soltab]
par.push('[plot]')
par.push('operation = PLOT')
for(var field_name in inputs){
if(field_name === 'input_file' ||
field_name === 'soltab') continue;
if(inputs[field_name] === null ||
inputs[field_name] === 'null') continue;
par.push(field_name+'='+inputs[field_name])
}
return par
}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_config().join('\n'))
baseCommand: "losoto"
arguments:
- $(inputs.input_file)
- parset.config
hints:
DockerRequirement:
dockerPull: lofareosc/prefactor-ci:master
inputs:
- id: input_file
type: File
- id: soltab
type: string[]
doc: "Tabs to plot"
- id: axesInPlot
type: string[]?
default: []
doc: |
1- or 2-element array which says the coordinates to plot (2 for 3D plots).
- id: axisInTable
type: string?
doc: |
the axis to plot on a page - e.g. ant to get all antenna’s on one file.
- id: axisInCol
type: string?
doc: |
The axis to plot in different colours - e.g. pol to get correlations with
different colors.
- id: axisDiff
type: string?
doc: |
This must be a len=2 axis and the plot will have the differential value
- e.g. ‘pol’ to plot XX-YY.
- id: NColFig
type: int?
doc: |
Number of columns in a multi-table image. By default is automatically
chosen.
- id: figSize
type: int[]
default: [0,0]
doc: |
Size of the image [x,y], if one of the values is 0, then it is
automatically chosen. By default automatic set.
- id: markerSize
type: int?
default: 2
doc: |
Size of the markers in the 2D plot. By default 2.
- id: minmax
type: float[]?
doc: |
Min max value for the independent variable (0 means automatic).
- id: log
type: string?
doc: |
Use Log=’XYZ’ to set which axes to put in Log.
- id: plotFlag
type: boolean?
default: false
doc: Whether to plot also flags as red points in 2D plots.
- id: doUnwrap
type: boolean?
default: false
doc: Unwrap phases.
- id: refAnt
type: string?
default: ''
doc: |
Reference antenna for phases. By default None.
- id: soltabsToAdd
type: string?
doc: |
Tables to “add” (e.g. ‘sol000/tec000’), it works only for tec and clock
to be added to phases.
- id: makeAntPlot
default: false
type: boolean?
doc: |
Make a plot containing antenna coordinates in x,y and in color the value
to plot, axesInPlot must be [ant].
- id: makeMovie
default: false
type: boolean?
doc: |
Make a movie summing up all the produced plots.
- id: prefix
type: string?
default: 'losoto.plot.'
doc: |
Prefix to add before the self-generated filename.
- id: ncpu
type: int?
doc: Number of cpus, by default all available.
outputs:
- id: output_plots
type: Any[]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment