Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
12e96e08
Commit
12e96e08
authored
Feb 11, 2019
by
Reza ANSARI
Browse files
Modifs en vue de l'ajustement des baselines, Reza 11/02/2019
parent
57258d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
cxbeam.h
cxbeam.h
+10
-4
gcxfit.h
gcxfit.h
+1
-1
No files found.
cxbeam.h
View file @
12e96e08
...
...
@@ -15,23 +15,28 @@ using namespace SOPHYA;
class
CxBeam
{
// Auto-correlation beam
public:
CxBeam
(
ACBeam
&
a1
,
ACBeam
&
a2
,
Vector3d
&
baseline
)
:
a1_
(
a1
),
a2_
(
a2
),
baseline_
(
baseline
)
:
a1_
(
a1
),
a2_
(
a2
),
base_baseline_
(
baseline
),
baseline_
(
baseline
)
{
if
(
fabs
(
a1
.
getLambda
()
-
a2
.
getLambda
())
>
1e-9
)
throw
ParmError
(
"CxBeam::CxBeam() - not same lambda in the two different beams !"
);
facphase_
=
2.
*
M_PI
/
a1
.
getLambda
();
}
CxBeam
(
CxBeam
const
&
c
)
:
a1_
(
c
.
a1_
),
a2_
(
c
.
a2_
),
baseline_
(
c
.
baseline_
),
facphase_
(
c
.
facphase_
)
:
a1_
(
c
.
a1_
),
a2_
(
c
.
a2_
),
base_baseline_
(
c
.
base_baseline_
),
baseline_
(
c
.
baseline_
),
facphase_
(
c
.
facphase_
)
{
}
// copy operator
CxBeam
&
operator
=
(
CxBeam
const
&
c
)
{
a1_
=
c
.
a1_
;
a2_
=
c
.
a2_
;
baseline_
=
c
.
baseline_
;
facphase_
=
c
.
facphase_
;
a1_
=
c
.
a1_
;
a2_
=
c
.
a2_
;
base_baseline_
=
c
.
base_baseline_
;
baseline_
=
c
.
baseline_
;
facphase_
=
c
.
facphase_
;
return
(
*
this
);
}
inline
void
ShiftBaseline
(
Vector3d
&
shift_baseline
)
{
baseline_
=
base_baseline_
;
baseline_
.
Add
(
shift_baseline
);
}
//--- return the Beam value for a given direction
inline
complex
<
double
>
Value
(
LongitudeLatitude
const
&
ll
)
{
...
...
@@ -50,7 +55,8 @@ public:
}
ACBeam
a1_
,
a2_
;
Vector3d
baseline_
;
Vector3d
base_baseline_
;
// baseline value before shift
Vector3d
baseline_
;
// current baseline-value = base_baseline_+shift
double
facphase_
;
};
...
...
gcxfit.h
View file @
12e96e08
/* PAON4 analysis software
Class for fitting
auto
-correlations
(antenna geometry)
Class for fitting
cross
-correlations
: individual phases on each baseline
R. Ansari, December 2018 */
#ifndef GCXFIT_H_SEEN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment