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
6171ec2e
Commit
6171ec2e
authored
8 years ago
by
Tammo Jan Dijkema
Browse files
Options
Downloads
Patches
Plain Diff
Task #9178: fix bug for second polarization in stefcal
parent
dbbd9f58
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
CEP/DP3/DPPP/include/DPPP/StefCal.h
+2
-1
2 additions, 1 deletion
CEP/DP3/DPPP/include/DPPP/StefCal.h
CEP/DP3/DPPP/src/GainCal.cc
+2
-2
2 additions, 2 deletions
CEP/DP3/DPPP/src/GainCal.cc
CEP/DP3/DPPP/src/StefCal.cc
+4
-5
4 additions, 5 deletions
CEP/DP3/DPPP/src/StefCal.cc
with
8 additions
and
8 deletions
CEP/DP3/DPPP/include/DPPP/StefCal.h
+
2
−
1
View file @
6171ec2e
...
@@ -52,6 +52,7 @@ namespace LOFAR {
...
@@ -52,6 +52,7 @@ namespace LOFAR {
casa
::
Matrix
<
casa
::
DComplex
>
g
;
// Station, correlation
casa
::
Matrix
<
casa
::
DComplex
>
g
;
// Station, correlation
casa
::
Array
<
casa
::
DComplex
>
vis
;
casa
::
Array
<
casa
::
DComplex
>
vis
;
casa
::
Array
<
casa
::
DComplex
>
mvis
;
casa
::
Array
<
casa
::
DComplex
>
mvis
;
uint
savedNCr
;
// number of correlations stored (1,2 or 4)
private
:
private
:
casa
::
Matrix
<
casa
::
DComplex
>
gx
;
casa
::
Matrix
<
casa
::
DComplex
>
gx
;
...
@@ -61,7 +62,7 @@ namespace LOFAR {
...
@@ -61,7 +62,7 @@ namespace LOFAR {
casa
::
Matrix
<
casa
::
DComplex
>
z
;
casa
::
Matrix
<
casa
::
DComplex
>
z
;
uint
nSt
;
// number of stations
uint
nSt
;
// number of stations
uint
nCr
;
// number of correlations
uint
nCr
;
// number of correlations
(1 or 4)
uint
nUn
;
// number of unknowns
uint
nUn
;
// number of unknowns
uint
nSp
;
// number that is two for scalarphase, one else
uint
nSp
;
// number that is two for scalarphase, one else
uint
_solInt
;
uint
_solInt
;
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/src/GainCal.cc
+
2
−
2
View file @
6171ec2e
...
@@ -411,12 +411,12 @@ namespace LOFAR {
...
@@ -411,12 +411,12 @@ namespace LOFAR {
// Stefcal terminated (either by maxiter or by converging)
// Stefcal terminated (either by maxiter or by converging)
// Let's save G...
// Let's save G...
Cube
<
DComplex
>
allg
(
info
().
antennaNames
().
size
(),
n
Cr
,
itsNFreqCells
);
Cube
<
DComplex
>
allg
(
info
().
antennaNames
().
size
(),
iS
[
0
].
savedN
Cr
,
itsNFreqCells
);
for
(
uint
freqCell
=
0
;
freqCell
<
itsNFreqCells
;
++
freqCell
)
{
for
(
uint
freqCell
=
0
;
freqCell
<
itsNFreqCells
;
++
freqCell
)
{
//cout<<endl<<"freqCell="<<freqCell<<", timeCell="<<itsTStep/itsSolInt<<", tstep="<<itsTStep<<endl;
//cout<<endl<<"freqCell="<<freqCell<<", timeCell="<<itsTStep/itsSolInt<<", tstep="<<itsTStep<<endl;
casa
::
Matrix
<
casa
::
DComplex
>
sol
=
iS
[
freqCell
].
getSolution
();
casa
::
Matrix
<
casa
::
DComplex
>
sol
=
iS
[
freqCell
].
getSolution
();
for
(
uint
st
=
0
;
st
<
info
().
antennaNames
().
size
();
st
++
)
{
for
(
uint
st
=
0
;
st
<
info
().
antennaNames
().
size
();
st
++
)
{
for
(
uint
cr
=
0
;
cr
<
n
Cr
;
++
cr
)
{
for
(
uint
cr
=
0
;
cr
<
iS
[
0
].
savedN
Cr
;
++
cr
)
{
allg
(
st
,
cr
,
freqCell
)
=
sol
(
st
,
cr
);
allg
(
st
,
cr
,
freqCell
)
=
sol
(
st
,
cr
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP/src/StefCal.cc
+
4
−
5
View file @
6171ec2e
...
@@ -65,14 +65,17 @@ namespace LOFAR {
...
@@ -65,14 +65,17 @@ namespace LOFAR {
nUn
=
nSt
;
nUn
=
nSt
;
nCr
=
4
;
nCr
=
4
;
nSp
=
1
;
nSp
=
1
;
savedNCr
=
4
;
}
else
if
(
_mode
==
"scalarphase"
)
{
}
else
if
(
_mode
==
"scalarphase"
)
{
nUn
=
nSt
;
nUn
=
nSt
;
nCr
=
1
;
nCr
=
1
;
nSp
=
2
;
nSp
=
2
;
savedNCr
=
1
;
}
else
{
// mode=="phaseonly", mode=="diagonal"
}
else
{
// mode=="phaseonly", mode=="diagonal"
nUn
=
nSt
*
2
;
nUn
=
nSt
*
2
;
nCr
=
1
;
nCr
=
1
;
nSp
=
1
;
nSp
=
1
;
savedNCr
=
2
;
}
}
g
.
resize
(
nUn
,
nCr
);
g
.
resize
(
nUn
,
nCr
);
...
@@ -226,11 +229,7 @@ namespace LOFAR {
...
@@ -226,11 +229,7 @@ namespace LOFAR {
casa
::
Matrix
<
casa
::
DComplex
>
StefCal
::
getSolution
()
{
casa
::
Matrix
<
casa
::
DComplex
>
StefCal
::
getSolution
()
{
casa
::
Matrix
<
casa
::
DComplex
>
sol
;
casa
::
Matrix
<
casa
::
DComplex
>
sol
;
if
(
_mode
==
"diagonal"
||
_mode
==
"phaseonly"
)
{
sol
.
resize
(
_antMap
.
size
(),
savedNCr
);
sol
.
resize
(
_antMap
.
size
(),
2
);
}
else
{
sol
.
resize
(
_antMap
.
size
(),
nCr
);
}
uint
sSt
=
0
;
// Index in stefcal numbering
uint
sSt
=
0
;
// Index in stefcal numbering
for
(
uint
st
=
0
;
st
<
_antMap
.
size
();
++
st
)
{
for
(
uint
st
=
0
;
st
<
_antMap
.
size
();
++
st
)
{
...
...
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