Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LINC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
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
ResearchAndDevelopment
LINC
Commits
1622268f
Commit
1622268f
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add bandpass step
Former-commit-id:
586fa97b
parent
6689b99b
No related branches found
No related tags found
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
steps/LoSoTo.PrefactorBandpass.cwl
+101
-0
101 additions, 0 deletions
steps/LoSoTo.PrefactorBandpass.cwl
test_jobs/losoto_prefactorbandpass.json
+4
-0
4 additions, 0 deletions
test_jobs/losoto_prefactorbandpass.json
with
111 additions
and
0 deletions
.gitlab-ci.yml
+
6
−
0
View file @
1622268f
...
...
@@ -115,6 +115,12 @@ losoto_smooth:
script
:
-
cwl-runner --no-container steps/LoSoTo.Smooth.cwl test_jobs/losoto_smooth.json
losoto_prefactor_bandpass
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.PrefactorBandpass.cwl test_jobs/losoto_prefactorbandpass.json
losoto_clip
:
stage
:
test_steps
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.PrefactorBandpass.cwl
0 → 100644
+
101
−
0
View file @
1622268f
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_prefactor_bandpass
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
This operation for LoSoTo implements the Prefactor bandpass operation
WEIGHT: flag-only compliant, no need for weight
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('PREFACTOR_BANDPASS').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/lofar-pipeline-ci:latest
inputs:
- id: input_h5parm
type: File
format: lofar:#H5Parm
- id: soltab
type: string
doc: "Solution table"
- id: chanWidth
type: string?
doc: |
the width of each channel in the data from which solutions were obtained. Can be
either a string like "48kHz" or a float in Hz. If interpolate = True, chanWidth
must be specified
- id: BadSBList
type: string?
doc: a list of bad subbands that will be flagged
- id: outSoltabName
type: string?
doc: |
Name of the output bandpass soltab. An existing soltab with this name will be
overwritten
- id: interpolate
type: boolean?
default: false
doc: |
If True, interpolate to a regular frequency grid and then smooth, ignoring bad
subbands. If False, neither interpolation nor smoothing is done and the output
frequency grid is the same as the input one. If interpolate = True, chanWidth
must be specified
- id: removeTimeAxis
type: boolean?
doc: |
If True, the time axis of the output bandpass soltab is removed by doing a median
over time. If False, the output time grid is the same as the input one
- id: autoFlag
type: boolean?
doc: If True, automatically flag bad frequencies and stations
- id: nSigma
type: float?
doc: Number of sigma for autoFlagging. Amplitudes outside of nSigma*stddev are flagged
- id: maxFlaggedFraction
type: float?
doc: |
Maximum allowable fraction of flagged frequencies for autoFlagging. Stations with
higher fractions will be completely flagged
- id: maxStddev
type: float?
doc: Maximum allowable standard deviation for autoFlagging
- id: ncpu
type: int?
doc: Number of CPUs to use during autoFlagging (0 = all)
outputs:
- id: output_h5parm
type: File
format: lofar:#H5Parm
outputBinding:
glob: $(inputs.input_h5parm.basename)
$schema:
- https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
This diff is collapsed.
Click to expand it.
test_jobs/losoto_prefactorbandpass.json
0 → 100644
+
4
−
0
View file @
1622268f
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
,
"format"
:
"lofar:#H5Parm"
},
"soltab"
:
"sol000/amplitude000"
}
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