diff --git a/steps/LoSoTo.Plot.cwl b/steps/LoSoTo.Plot.cwl new file mode 100644 index 0000000000000000000000000000000000000000..cf10f8e6213b2e98ef31ce17db4bf6eccd6648dc --- /dev/null +++ b/steps/LoSoTo.Plot.cwl @@ -0,0 +1,139 @@ +#!/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: + InitialWorkDirRequirement: + listing: + - entryname: 'parset.config' + entry: | + soltab = $(inputs.soltabs) + [plot] + operation = PLOT + axesInPlot = $(inputs.axesInPlot) + axisInTable = $(inputs.axisInTable) + axisInCol = $(inputs.axisInCol) + axisDiff = $(inputs.axisDiff) + + +baseCommand: "losoto" + +arguments: + - $(inputs.input_file) + - parset.config + +hints: + DockerRequirement: + dockerPull: lofareosc/prefactor-ci:master + +inputs: + - id: input_file + type: File + - id: soltabs + 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 + default: '' + doc: | + the axis to plot on a page - e.g. ant to get all antenna’s on one file. + - id: axisInCol + type: string + default: '' + 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. + default: '' + - id: NColFig + type: int + default: false + 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[] + default: [0] + doc: | + Min max value for the independent variable (0 means automatic). + - id: log + type: string + default: '' + 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 + default: 'null' + 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 + default: 1 + doc: Number of cpus, by default all available. + +outputs: + - id: output_plots + type: Any[]