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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Rafferty
Prefactor3-CWL
Commits
7249ef52
Commit
7249ef52
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add interpolate step
parent
a4dd6750
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.Interpolate.cwl
+90
-0
90 additions, 0 deletions
steps/LoSoTo.Interpolate.cwl
with
90 additions
and
0 deletions
steps/LoSoTo.Interpolate.cwl
0 → 100644
+
90
−
0
View file @
7249ef52
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_abs
doc: |
Take absolute value. Needed before smooth if amplitudes are negative!
WEIGHT: no need to be weight compliant
requirements:
InlineJavascriptRequirement:
expressionLib:
- |
function get_config() {
var par = ['soltab = ' + inputs.soltab]
if (inputs.ncpu !== null) par.push('ncpu='+inputs.ncpu);
par.push('[interpolate]')
par.push('operation = INTERPOLATE')
for(var field_name in inputs){
if(field_name === 'input_h5parm' ||
field_name === 'soltab' ||
field_name === 'ncpu') 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'))
- entryname: $(inputs.input_h5parm.basename)
entry: $(inputs.input_h5parm)
writable: true
baseCommand: "losoto"
arguments:
- $(inputs.input_h5parm.basename)
- parset.config
hints:
DockerRequirement:
dockerPull: lofareosc/prefactor-ci:master
inputs:
- id: input_h5parm
type: File
- id: soltab
type: string
doc: "Solution table"
- id: outsoltab
type: string
doc: "Name of output soltab"
- id: axisToRegrid
type: string
doc: |
Name of the axis for which regridding/interpolation will be done
- id: newdelta
type:
- float
- string
doc: |
Fundamental width between samples after regridding.
E.g., “100kHz” or “10s”
- id: delta
type: string?
doc: |
Fundamental width between samples in axisToRegrid.
E.g., “100kHz” or “10s”. If “”, it is calculated from the axisToRegrid
values
- id: maxFlaggedWidth
type: int?
doc: |
Maximum allowable width in number of samples (after regridding) above
which interpolated values are flagged (e.g., maxFlaggedWidth = 5 would
allow gaps of 5 samples or less to be interpolated across but gaps of 6
or more would be flagged)
- id: log
type: bool
default: false
doc: |
Interpolation is done in log10 space, by default False
outputs:
- id: output_h5parm
type: File
outputBinding:
glob: $(inputs.input_h5parm.basename)
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