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
d9ef54f7
Commit
d9ef54f7
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add LoSoTo flag station
Former-commit-id:
19a31cec
parent
0490fd28
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-1
5 additions, 1 deletion
.gitlab-ci.yml
steps/LoSoTo.FlagStation.cwl
+104
-0
104 additions, 0 deletions
steps/LoSoTo.FlagStation.cwl
test_jobs/losoto_flagstation.json
+5
-0
5 additions, 0 deletions
test_jobs/losoto_flagstation.json
with
114 additions
and
1 deletion
.gitlab-ci.yml
+
5
−
1
View file @
d9ef54f7
...
@@ -119,7 +119,11 @@ losoto_flagextend:
...
@@ -119,7 +119,11 @@ losoto_flagextend:
allow_failure
:
true
allow_failure
:
true
script
:
script
:
-
cwl-runner --no-container steps/LoSoTo.Flagextend.cwl test_jobs/losoto_flagextend.json
-
cwl-runner --no-container steps/LoSoTo.Flagextend.cwl test_jobs/losoto_flagextend.json
losoto_flagstation
:
stage
:
test_steps
allow_failure
:
true
script
:
-
cwl-runner --no-container steps/LoSoTo.FlagStation.cwl test_jobs/losoto_flagstation.json
losoto_faraday
:
losoto_faraday
:
stage
:
test_steps
stage
:
test_steps
allow_failure
:
true
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
steps/LoSoTo.FlagStation.cwl
0 → 100644
+
104
−
0
View file @
d9ef54f7
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
id: losoto_flagstation
$namespaces:
lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
doc: |
This operation for LoSoTo implements a station-flagging procedure. Flags are time-independent.
WEIGHT: compliant
requirements:
InlineJavascriptRequirement:
expressionLib:
- { $include: utils.js}
InitialWorkDirRequirement:
listing:
- entryname: 'parset.config'
entry: $(get_losoto_config('FLAGSTATION').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: mode
type:
type: enum
symbols:
- bandpass
- resid
doc: |
Fitting algorithm: bandpass or resid. Bandpass mode clips amplitudes
relative to a model bandpass (only LOFAR is currently supported).
Resid mode clips residual phases or log(amplitudes).
- id: maxFlaggedFraction
type: float?
doc: |
This sets the maximum allowable fraction of flagged solutions above
which the entire station is flagged.
- id: nSigma
type: float?
doc: |
This sets the number of standard deviations considered when outlier
clipping is done.
- id: maxStddev
type: float?
doc: |
Maximum allowable standard deviation when outlier clipping is done. For phases, this should value
should be in radians, for amplitudes in log(amp). If None (or negative), a value of 0.1 rad is
used for phases and 0.01 for amplitudes.
- id: ampRange
type: float[]?
doc: |
2-element array of the median amplitude level to be acceptable,
ampRange[0]: lower limit, ampRange[1]: upper limit.
If None or [0, 0], a reasonable range for typical observations is used.
- id: telescope
type: string?
doc: Specifies the telescope if mode = 'bandpass'.
- id: skipInternational
type: string?
doc: |
If True, skip flagging of international LOFAR stations (only used if
telescope = 'lofar')
- id: refAnt
type: string?
doc: |
If mode = resid, this sets the reference antenna for phase solutions,
by default None.
- id: soltabExport
type: string?
doc: |
Soltab to export station flags to. Note: exported flags are not time- or
frequency-dependent.
- id: ncpu
type: int?
doc: Number of cpu to use, by default all available.
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_flagstation.json
0 → 100644
+
5
−
0
View file @
d9ef54f7
{
"input_h5parm"
:
{
"class"
:
"File"
,
"path"
:
"/data/example.h5"
,
"format"
:
"lofar:#H5Parm"
},
"soltab"
:
"sol000/amplitude000"
,
"mode"
:
"bandpass"
}
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