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
8b0c2f28
Commit
8b0c2f28
authored
6 years ago
by
Andre Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Task #11550: Apply full Jones HDF5 solutions that are separated in amplitude and phase
parent
05c536c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/DP3/DPPP/include/DPPP/OneApplyCal.h
+1
-0
1 addition, 0 deletions
CEP/DP3/DPPP/include/DPPP/OneApplyCal.h
CEP/DP3/DPPP/src/OneApplyCal.cc
+30
-9
30 additions, 9 deletions
CEP/DP3/DPPP/src/OneApplyCal.cc
with
31 additions
and
9 deletions
CEP/DP3/DPPP/include/DPPP/OneApplyCal.h
+
1
−
0
View file @
8b0c2f28
...
@@ -108,6 +108,7 @@ namespace LOFAR {
...
@@ -108,6 +108,7 @@ namespace LOFAR {
H5Parm
itsH5Parm
;
H5Parm
itsH5Parm
;
string
itsSolTabName
;
string
itsSolTabName
;
H5Parm
::
SolTab
itsSolTab
;
H5Parm
::
SolTab
itsSolTab
;
H5Parm
::
SolTab
itsSolTab2
;
// in the case of full Jones, amp and phase table need to be open
CorrectType
itsCorrectType
;
CorrectType
itsCorrectType
;
bool
itsInvert
;
bool
itsInvert
;
uint
itsTimeSlotsPerParmUpdate
;
uint
itsTimeSlotsPerParmUpdate
;
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/src/OneApplyCal.cc
+
30
−
9
View file @
8b0c2f28
...
@@ -101,9 +101,14 @@ namespace LOFAR {
...
@@ -101,9 +101,14 @@ namespace LOFAR {
itsSolTabName
=
(
parset
.
isDefined
(
prefix
+
"correction"
)
?
itsSolTabName
=
(
parset
.
isDefined
(
prefix
+
"correction"
)
?
parset
.
getString
(
prefix
+
"correction"
)
:
parset
.
getString
(
prefix
+
"correction"
)
:
parset
.
getString
(
defaultPrefix
+
"correction"
));
parset
.
getString
(
defaultPrefix
+
"correction"
));
itsSolTab
=
itsH5Parm
.
getSolTab
(
itsSolTabName
);
itsCorrectType
=
stringToCorrectType
(
itsSolTab
.
getType
());
itsCorrectType
=
stringToCorrectType
(
itsSolTab
.
getType
());
if
(
itsCorrectType
==
FULLJONES
)
{
itsSolTab
=
itsH5Parm
.
getSolTab
(
"amplitude"
);
itsSolTab2
=
itsH5Parm
.
getSolTab
(
"phase"
);
}
else
itsSolTab
=
itsH5Parm
.
getSolTab
(
itsSolTabName
);
if
(
itsCorrectType
==
PHASE
&&
nPol
(
""
)
==
1
)
{
if
(
itsCorrectType
==
PHASE
&&
nPol
(
""
)
==
1
)
{
itsCorrectType
=
SCALARPHASE
;
itsCorrectType
=
SCALARPHASE
;
}
}
...
@@ -448,7 +453,7 @@ namespace LOFAR {
...
@@ -448,7 +453,7 @@ namespace LOFAR {
#pragma omp critical(updateH5ParmValues)
#pragma omp critical(updateH5ParmValues)
{
{
// TODO: understand polarization etc.
// TODO: understand polarization etc.
ASSERT
(
itsParmExprs
.
size
()
==
1
||
itsParmExprs
.
size
()
==
2
);
//
ASSERT(itsParmExprs.size()==1 || itsParmExprs.size()==2);
// Figure out whether time or frequency is first axis
// Figure out whether time or frequency is first axis
bool
freqvariesfastest
=
true
;
bool
freqvariesfastest
=
true
;
...
@@ -469,12 +474,28 @@ namespace LOFAR {
...
@@ -469,12 +474,28 @@ namespace LOFAR {
}
}
for
(
uint
ant
=
0
;
ant
<
numAnts
;
++
ant
)
{
for
(
uint
ant
=
0
;
ant
<
numAnts
;
++
ant
)
{
for
(
uint
pol
=
0
;
pol
<
itsParmExprs
.
size
();
++
pol
)
{
if
(
itsCorrection
==
FULLJONES
)
parmvalues
[
pol
][
ant
]
=
itsSolTab
.
getValuesOrWeights
(
"val"
,
{
info
().
antennaNames
()[
ant
],
for
(
uint
pol
=
0
;
pol
<
4
;
++
pol
)
{
times
,
freqs
,
// Place amplitude in even and phase in odd elements
pol
,
itsDirection
);
parmvalues
[
pol
*
2
][
ant
]
=
itsSolTab
.
getValuesOrWeights
(
"val"
,
}
info
().
antennaNames
()[
ant
],
times
,
freqs
,
pol
,
itsDirection
);
parmvalues
[
pol
*
2
+
1
][
ant
]
=
itsSolTab2
.
getValuesOrWeights
(
"val"
,
info
().
antennaNames
()[
ant
],
times
,
freqs
,
pol
,
itsDirection
);
}
}
else
{
for
(
uint
pol
=
0
;
pol
<
itsParmExprs
.
size
();
++
pol
)
{
parmvalues
[
pol
][
ant
]
=
itsSolTab
.
getValuesOrWeights
(
"val"
,
info
().
antennaNames
()[
ant
],
times
,
freqs
,
pol
,
itsDirection
);
}
}
}
}
}
// End pragma omp critical
}
// End pragma omp critical
}
else
{
// Use ParmDB
}
else
{
// Use ParmDB
...
...
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