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
79733e14
Commit
79733e14
authored
9 years ago
by
Tammo Jan Dijkema
Browse files
Options
Downloads
Patches
Plain Diff
Task #9178: cleaning up stefcal interface
parent
d3903dbd
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CEP/DP3/DPPP/include/DPPP/StefCal.h
+4
-4
4 additions, 4 deletions
CEP/DP3/DPPP/include/DPPP/StefCal.h
CEP/DP3/DPPP/src/GainCal.cc
+1
-5
1 addition, 5 deletions
CEP/DP3/DPPP/src/GainCal.cc
CEP/DP3/DPPP/src/StefCal.cc
+9
-0
9 additions, 0 deletions
CEP/DP3/DPPP/src/StefCal.cc
with
14 additions
and
9 deletions
CEP/DP3/DPPP/include/DPPP/StefCal.h
+
4
−
4
View file @
79733e14
...
...
@@ -39,14 +39,12 @@ namespace LOFAR {
public:
enum
Status
{
CONVERGED
=
1
,
NOTCONVERGED
=
2
,
STALLED
=
3
};
StefCal
(
uint
solInt
,
uint
nChan
,
string
mode
,
uint
maxAntennas
);
void
doStep_polarized
();
void
doStep_unpolarized
(
bool
phaseOnly
);
Status
relax
(
uint
iter
);
void
resetVis
(
uint
nSt
);
void
init
();
void
doStep
();
Status
relax
(
uint
iter
);
casa
::
Matrix
<
casa
::
DComplex
>
getSolution
();
bool
converged
;
std
::
vector
<
int
>
_antMap
;
// Length antennaNames, contains size(antennaNames)-nSt times the value -1
// Values are indices in the stefcal internal numbering
casa
::
Matrix
<
casa
::
DComplex
>
g
;
// Station, correlation
...
...
@@ -55,6 +53,8 @@ namespace LOFAR {
uint
savedNCr
;
// number of correlations stored (1,2 or 4)
private
:
void
doStep_polarized
();
void
doStep_unpolarized
(
bool
phaseOnly
);
casa
::
Matrix
<
casa
::
DComplex
>
gx
;
casa
::
Matrix
<
casa
::
DComplex
>
gxx
;
casa
::
Matrix
<
casa
::
DComplex
>
gold
;
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/src/GainCal.cc
+
1
−
5
View file @
79733e14
...
...
@@ -374,11 +374,7 @@ namespace LOFAR {
if
(
converged
[
freqCell
]
==
StefCal
::
CONVERGED
)
{
// Do another step when stalled and not all converged
continue
;
}
if
(
mode
==
"fulljones"
)
{
iS
[
freqCell
].
doStep_polarized
();
}
else
{
iS
[
freqCell
].
doStep_unpolarized
(
itsMode
==
"phaseonly"
||
itsMode
==
"scalarphase"
);
}
iS
[
freqCell
].
doStep
();
}
// ============================== Relaxation =======================
if
(
iter
%
2
==
1
)
{
if
(
itsDebugLevel
>
7
)
{
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/src/StefCal.cc
+
9
−
0
View file @
79733e14
...
...
@@ -119,6 +119,15 @@ namespace LOFAR {
gx
=
g
;
}
void
StefCal
::
doStep
()
{
if
(
_mode
==
"fulljones"
)
{
doStep_polarized
();
}
else
{
doStep_unpolarized
(
_mode
==
"phaseonly"
||
_mode
==
"scalarphase"
);
}
}
void
StefCal
::
doStep_polarized
()
{
gold
=
g
;
...
...
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