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
f2c7c1ff
Commit
f2c7c1ff
authored
6 years ago
by
Thomas Jürges
Browse files
Options
Downloads
Patches
Plain Diff
Task
SSB-42
: Perhaps this implementation of load/store works
parent
456b20d1
No related branches found
No related tags found
1 merge request
!44
Merge back holography to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py
+34
-3
34 additions, 3 deletions
...alibrationCommon/lib/datacontainers/holography_dataset.py
with
34 additions
and
3 deletions
CAL/CalibrationCommon/lib/datacontainers/holography_dataset.py
+
34
−
3
View file @
f2c7c1ff
...
@@ -200,22 +200,45 @@ class HolographyDataset():
...
@@ -200,22 +200,45 @@ class HolographyDataset():
f
=
h5py
.
File
(
path
,
"
r
"
)
f
=
h5py
.
File
(
path
,
"
r
"
)
result
=
HolographyDataset
()
result
=
HolographyDataset
()
result
.
version
=
f
.
attr
[
"
Version
"
]
result
.
version
=
f
.
attr
[
"
Version
"
]
result
.
mode
=
f
.
attr
[
"
mode
"
]
result
.
mode
=
f
.
attr
[
"
mode
"
]
result
.
rcu_list
=
f
.
attr
[
"
RCU list
"
]
result
.
rcu_list
=
f
.
attr
[
"
RCU list
"
]
result
.
sas_ids
=
f
.
attr
[
"
SAS id
"
]
result
.
sas_ids
=
f
.
attr
[
"
SAS id
"
]
result
.
target_station_name
=
f
.
attr
[
"
Target station name
"
]
result
.
target_station_name
=
f
.
attr
[
"
Target station name
"
]
result
.
target_station_position
=
f
.
attr
[
"
Target station position
"
]
result
.
target_station_position
=
f
.
attr
[
"
Target station position
"
]
result
.
source_name
=
f
.
attr
[
"
Source name
"
]
result
.
source_name
=
f
.
attr
[
"
Source name
"
]
result
.
source_position
=
f
.
attr
[
"
Source position
"
]
result
.
source_position
=
f
.
attr
[
"
Source position
"
]
(
result
.
start_time
,
result
.
end_time
)
=
f
.
attr
[
"
Observation time
"
]
(
result
.
start_time
,
result
.
end_time
)
=
f
.
attr
[
"
Observation time
"
]
result
.
rotation_matrix
=
f
.
attr
[
"
Rotation matrix
"
]
result
.
rotation_matrix
=
f
.
attr
[
"
Rotation matrix
"
]
result
.
antenna_field_position
=
f
.
attr
[
"
Antenna field position
"
]
result
.
antenna_field_position
=
f
.
attr
[
"
Antenna field position
"
]
result
.
reference_stations
=
f
[
"
Reference station
"
]
result
.
reference_stations
=
f
[
"
Reference station
"
]
result
.
frequencies
=
f
[
"
frequency
"
]
result
.
frequencies
=
f
[
"
frequency
"
]
result
.
ra_dec
=
f
[
"
RA DEC
"
]
result
.
ra_dec
=
f
[
"
RA DEC
"
]
data
=
f
[
"
data
"
]
data
=
f
[
"
data
"
]
for
reference_station
in
result
.
reference_stations
:
for
frequency
in
result
.
frequencies
:
for
beamlet
in
self
.
beamlets
:
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
XX
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
XX
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
XY
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
XY
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
YX
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
YX
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
YY
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
YY
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
t
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
t
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
l
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
l
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
m
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
m
"
]
result
.
data
[
reference_station
][
frequency
][
beamlet
][
"
flag
"
]
=
data
[
reference_station
][
frequency
][
beamlet
][
"
flag
"
]
result
.
data
=
data
result
.
data
=
data
f
.
close
()
f
.
close
()
...
@@ -278,8 +301,16 @@ class HolographyDataset():
...
@@ -278,8 +301,16 @@ class HolographyDataset():
(
'
m
'
,
numpy
.
float64
),
(
'
m
'
,
numpy
.
float64
),
(
'
flag
'
,
numpy
.
bool
)])
(
'
flag
'
,
numpy
.
bool
)])
dataset
=
f
.
create_dataset
(
"
data
"
,
(
len
(
self
.
reference_stations
),
len
(
self
.
frequencies
),
len
(
self
.
beamlets
)),
dtype
=
h5py
.
special_dtype
(
vlen
=
sample_type
))
dataset
=
f
.
create_dataset
(
"
data
"
,
(
len
(
self
.
reference_stations
),
len
(
self
.
frequencies
),
len
(
self
.
beamlets
)),
dtype
=
h5py
.
special_dtype
(
vlen
=
sample_type
))
for
freq
in
self
.
f
re
quencie
s
:
for
reference_station
in
self
.
re
ference_station
s
:
for
station
in
self
.
re
ference_station
s
:
for
frequency
in
self
.
f
re
quencie
s
:
for
beamlet
in
self
.
beamlets
:
for
beamlet
in
self
.
beamlets
:
dataset
[
reference_station
][
frequency
][
beamlet
][
"
XX
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
XX
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
XY
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
XY
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
YX
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
YX
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
YY
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
YY
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
t
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
t
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
l
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
l
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
m
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
m
"
]
dataset
[
reference_station
][
frequency
][
beamlet
][
"
flag
"
]
=
self
.
data
[
reference_station
][
frequency
][
beamlet
][
"
flag
"
]
f
.
close
()
f
.
close
()
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