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
02409c8f
Commit
02409c8f
authored
13 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
bug 1362: use LDA writer by default if available; and fixed bug in LDA writer
parent
e7e24eab
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
RTCP/Storage/src/MSWriterLDA.cc
+1
-0
1 addition, 0 deletions
RTCP/Storage/src/MSWriterLDA.cc
RTCP/Storage/src/OutputThread.cc
+6
-6
6 additions, 6 deletions
RTCP/Storage/src/OutputThread.cc
with
7 additions
and
6 deletions
RTCP/Storage/src/MSWriterLDA.cc
+
1
−
0
View file @
02409c8f
...
@@ -251,6 +251,7 @@ namespace LOFAR
...
@@ -251,6 +251,7 @@ namespace LOFAR
BF_BeamGroup
beam
=
sap
.
beam
(
beamNr
);
BF_BeamGroup
beam
=
sap
.
beam
(
beamNr
);
beam
.
create
();
beam
.
groupType
()
.
set
(
"Beam"
);
beam
.
groupType
()
.
set
(
"Beam"
);
beam
.
nofStations
()
.
set
(
parset
.
nrStations
());
beam
.
nofStations
()
.
set
(
parset
.
nrStations
());
beam
.
stationsList
().
set
(
parset
.
allStationNames
());
// TODO: SS beamformer, support subsets of allStations
beam
.
stationsList
().
set
(
parset
.
allStationNames
());
// TODO: SS beamformer, support subsets of allStations
...
...
This diff is collapsed.
Click to expand it.
RTCP/Storage/src/OutputThread.cc
+
6
−
6
View file @
02409c8f
...
@@ -151,15 +151,15 @@ void OutputThread::createMS()
...
@@ -151,15 +151,15 @@ void OutputThread::createMS()
LOG_INFO_STR
(
itsLogPrefix
<<
"Writing to "
<<
path
);
LOG_INFO_STR
(
itsLogPrefix
<<
"Writing to "
<<
path
);
try
{
try
{
#ifdef USE_DA
L
#ifdef USE_
L
DA
if
(
path
.
rfind
(
".h5"
)
==
path
.
length
()
-
strlen
(
".h5"
))
{
if
(
path
.
rfind
(
".h5"
)
==
path
.
length
()
-
strlen
(
".h5"
))
{
// HDF5 writer requested
// HDF5 writer requested
switch
(
itsOutputType
)
{
switch
(
itsOutputType
)
{
case
COHERENT_STOKES
:
case
COHERENT_STOKES
:
itsWriter
=
new
MSWriterDA
L
<
float
,
3
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
itsWriter
=
new
MSWriter
L
DA
<
float
,
3
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
break
;
break
;
case
BEAM_FORMED_DATA
:
case
BEAM_FORMED_DATA
:
itsWriter
=
new
MSWriterDA
L
<
float
,
4
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
itsWriter
=
new
MSWriter
L
DA
<
float
,
4
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
break
;
break
;
default:
default:
THROW
(
StorageException
,
"HDF5 not supported for this data type"
);
THROW
(
StorageException
,
"HDF5 not supported for this data type"
);
...
@@ -167,15 +167,15 @@ void OutputThread::createMS()
...
@@ -167,15 +167,15 @@ void OutputThread::createMS()
}
else
{
}
else
{
itsWriter
=
new
MSWriterFile
(
path
,
itsOutputType
==
COHERENT_STOKES
||
itsOutputType
==
BEAM_FORMED_DATA
||
itsOutputType
==
INCOHERENT_STOKES
);
itsWriter
=
new
MSWriterFile
(
path
,
itsOutputType
==
COHERENT_STOKES
||
itsOutputType
==
BEAM_FORMED_DATA
||
itsOutputType
==
INCOHERENT_STOKES
);
}
}
#elif defined USE_
L
DA
#elif defined USE_DA
L
if
(
path
.
rfind
(
".h5"
)
==
path
.
length
()
-
strlen
(
".h5"
))
{
if
(
path
.
rfind
(
".h5"
)
==
path
.
length
()
-
strlen
(
".h5"
))
{
// HDF5 writer requested
// HDF5 writer requested
switch
(
itsOutputType
)
{
switch
(
itsOutputType
)
{
case
COHERENT_STOKES
:
case
COHERENT_STOKES
:
itsWriter
=
new
MSWriter
L
DA
<
float
,
3
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
itsWriter
=
new
MSWriterDA
L
<
float
,
3
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
break
;
break
;
case
BEAM_FORMED_DATA
:
case
BEAM_FORMED_DATA
:
itsWriter
=
new
MSWriter
L
DA
<
float
,
4
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
itsWriter
=
new
MSWriterDA
L
<
float
,
4
>
(
path
.
c_str
(),
itsParset
,
itsOutputType
,
itsStreamNr
,
itsIsBigEndian
);
break
;
break
;
default:
default:
THROW
(
StorageException
,
"HDF5 not supported for this data type"
);
THROW
(
StorageException
,
"HDF5 not supported for this data type"
);
...
...
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