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
07b08f46
Commit
07b08f46
authored
12 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #4315: Cosmetic improvements
parent
95ed1d25
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
RTCP/Cobalt/InputProc/src/Delays/Delays.cc
+4
-6
4 additions, 6 deletions
RTCP/Cobalt/InputProc/src/Delays/Delays.cc
RTCP/Cobalt/InputProc/src/Delays/Delays.h
+2
-2
2 additions, 2 deletions
RTCP/Cobalt/InputProc/src/Delays/Delays.h
with
6 additions
and
8 deletions
RTCP/Cobalt/InputProc/src/Delays/Delays.cc
+
4
−
6
View file @
07b08f46
...
...
@@ -24,11 +24,9 @@
#include
"Delays.h"
#include
<Common/LofarLogger.h>
#include
<Common/PrettyUnits.h>
#include
<Common/Thread/Mutex.h>
#include
<Common/Thread/Cancellation.h>
#include
<CoInterface/Exceptions.h>
#include
<CoInterface/BeamCoordinates.h>
#include
<measures/Measures/MEpoch.h>
#include
<measures/Measures/MCDirection.h>
...
...
@@ -82,9 +80,9 @@ namespace LOFAR
// convert a time in samples to a (day,fraction) pair in UTC in a CasaCore format
MVEpoch
Delays
::
toUTC
(
const
TimeStamp
&
time
S
tamp
)
const
MVEpoch
Delays
::
toUTC
(
const
TimeStamp
&
time
s
tamp
)
const
{
double
utc_sec
=
time
S
tamp
.
getSeconds
()
/
MVEpoch
::
secInDay
;
double
utc_sec
=
time
s
tamp
.
getSeconds
()
/
MVEpoch
::
secInDay
;
double
day
=
floor
(
utc_sec
);
double
frac
=
utc_sec
-
day
;
...
...
@@ -141,9 +139,9 @@ namespace LOFAR
}
void
Delays
::
calcDelays
(
const
TimeStamp
&
time
S
tamp
,
AllDelays
&
result
)
{
void
Delays
::
calcDelays
(
const
TimeStamp
&
time
s
tamp
,
AllDelays
&
result
)
{
// Set the instant in time in the itsFrame
itsFrame
.
resetEpoch
(
toUTC
(
time
S
tamp
));
itsFrame
.
resetEpoch
(
toUTC
(
time
s
tamp
));
// Convert directions for all beams
result
.
resize
(
parset
.
settings
.
SAPs
.
size
());
...
...
This diff is collapsed.
Click to expand it.
RTCP/Cobalt/InputProc/src/Delays/Delays.h
+
2
−
2
View file @
07b08f46
...
...
@@ -112,7 +112,7 @@ namespace LOFAR
const
TimeStamp
itsStartTime
;
const
size_t
blockSize
;
casa
::
MVEpoch
toUTC
(
const
TimeStamp
&
time
S
tamp
)
const
;
casa
::
MVEpoch
toUTC
(
const
TimeStamp
&
time
s
tamp
)
const
;
void
init
();
...
...
@@ -134,7 +134,7 @@ namespace LOFAR
// Computes the delays for a specific moment in time and stores them
// in `result'.
void
calcDelays
(
const
TimeStamp
&
time
S
tamp
,
AllDelays
&
result
);
void
calcDelays
(
const
TimeStamp
&
time
s
tamp
,
AllDelays
&
result
);
// the circular buffer to hold the moving beam directions for every second of data
std
::
vector
<
AllDelays
>
itsBuffer
;
...
...
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