Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
3c7a8ba3
Commit
3c7a8ba3
authored
13 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1656:
Added synonyms msin.name and msout.name (for SAS/MAC)
parent
5224753b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/DP3/DPPP/src/DPRun.cc
+11
-2
11 additions, 2 deletions
CEP/DP3/DPPP/src/DPRun.cc
CEP/DP3/DPPP/test/tNDPPP.cc
+2
-2
2 additions, 2 deletions
CEP/DP3/DPPP/test/tNDPPP.cc
with
13 additions
and
4 deletions
CEP/DP3/DPPP/src/DPRun.cc
+
11
−
2
View file @
3c7a8ba3
...
@@ -138,8 +138,17 @@ namespace LOFAR {
...
@@ -138,8 +138,17 @@ namespace LOFAR {
DPStep
::
ShPtr
firstStep
;
DPStep
::
ShPtr
firstStep
;
DPStep
::
ShPtr
lastStep
;
DPStep
::
ShPtr
lastStep
;
// Get input and output MS name.
// Get input and output MS name.
string
inName
=
parset
.
getString
(
"msin"
);
// Those parameters were always called msin and msout.
string
outName
=
parset
.
getString
(
"msout"
);
// However, SAS/MAC cannot handle a parameter and a group with the same
// name, hence it uses msin.name and msout.name.
string
inName
=
parset
.
getString
(
"msin.name"
,
""
);
if
(
inName
.
empty
())
{
inName
=
parset
.
getString
(
"msin"
);
}
string
outName
=
parset
.
getString
(
"msout.name"
,
""
);
if
(
outName
.
empty
())
{
outName
=
parset
.
getString
(
"msout"
);
}
// Get the steps.
// Get the steps.
vector
<
string
>
steps
=
parset
.
getStringVector
(
"steps"
);
vector
<
string
>
steps
=
parset
.
getStringVector
(
"steps"
);
// Currently the input MS must be given.
// Currently the input MS must be given.
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/test/tNDPPP.cc
+
2
−
2
View file @
3c7a8ba3
...
@@ -224,11 +224,11 @@ void testAvg1()
...
@@ -224,11 +224,11 @@ void testAvg1()
{
{
// Average in a single step.
// Average in a single step.
ofstream
ostr
(
"tNDPPP_tmp.parset"
);
ofstream
ostr
(
"tNDPPP_tmp.parset"
);
ostr
<<
"msin=tNDPPP_tmp.MS"
<<
endl
;
ostr
<<
"msin
.name
=tNDPPP_tmp.MS"
<<
endl
;
// Give start and end time as actual, hence no missing timeslots.
// Give start and end time as actual, hence no missing timeslots.
ostr
<<
"msin.starttime=03-Aug-2000/13:22:20"
<<
endl
;
ostr
<<
"msin.starttime=03-Aug-2000/13:22:20"
<<
endl
;
ostr
<<
"msin.endtime=03-Aug-2000/13:31:45"
<<
endl
;
ostr
<<
"msin.endtime=03-Aug-2000/13:31:45"
<<
endl
;
ostr
<<
"msout=tNDPPP_tmp.MS2"
<<
endl
;
ostr
<<
"msout
.name
=tNDPPP_tmp.MS2"
<<
endl
;
ostr
<<
"msout.overwrite=true"
<<
endl
;
ostr
<<
"msout.overwrite=true"
<<
endl
;
ostr
<<
"steps=[avg,count]"
<<
endl
;
ostr
<<
"steps=[avg,count]"
<<
endl
;
ostr
<<
"avg.type=average"
<<
endl
;
ostr
<<
"avg.type=average"
<<
endl
;
...
...
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