Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
tango
Commits
33893ac4
Commit
33893ac4
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-523
: add sum operation between delays
parent
962dc5ad
No related branches found
No related tags found
1 merge request
!227
L2SS-523 "Add signal delay calibration table to BEAM"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/beam.py
+6
-3
6 additions, 3 deletions
tangostationcontrol/tangostationcontrol/devices/beam.py
with
6 additions
and
3 deletions
tangostationcontrol/tangostationcontrol/devices/beam.py
+
6
−
3
View file @
33893ac4
...
@@ -48,7 +48,7 @@ class Beam(lofar_device):
...
@@ -48,7 +48,7 @@ class Beam(lofar_device):
default_value
=
numpy
.
tile
(
numpy
.
array
([
3826923.546
,
460915.441
,
5064643.489
]),(
96
,
16
,
1
))
# CS001LBA, in ITRF2005 timestamp 2012.5
default_value
=
numpy
.
tile
(
numpy
.
array
([
3826923.546
,
460915.441
,
5064643.489
]),(
96
,
16
,
1
))
# CS001LBA, in ITRF2005 timestamp 2012.5
)
)
signal_input_delay
=
device_property
(
HBAT_
signal_input_delay
s
=
device_property
(
dtype
=
'
DevVarFloatArray
'
,
dtype
=
'
DevVarFloatArray
'
,
mandatory
=
False
,
mandatory
=
False
,
default_value
=
numpy
.
zeros
((
96
,
32
),
dtype
=
numpy
.
float64
)
default_value
=
numpy
.
zeros
((
96
,
32
),
dtype
=
numpy
.
float64
)
...
@@ -115,10 +115,13 @@ class Beam(lofar_device):
...
@@ -115,10 +115,13 @@ class Beam(lofar_device):
which is a value per tile per dipole per polarisation.
which is a value per tile per dipole per polarisation.
"""
"""
# Duplicate delay values per polarisation
# Duplicate delay values per polarisation
polarised_delays
=
numpy
.
tile
(
delays
,
2
)
# output dims -> 96x32
polarised_delays
=
numpy
.
tile
(
delays
,
2
)
# output dims -> 96x32
# Add signal input delay
summed_delays
=
numpy
.
add
(
polarised_delays
,
self
.
HBAT_signal_input_delays
)
# Divide by 0.5ns and round
# Divide by 0.5ns and round
HBAT_bf_delays
=
numpy
.
array
(
polaris
ed_delays
/
0.5e-09
,
dtype
=
numpy
.
int64
)
HBAT_bf_delays
=
numpy
.
array
(
summ
ed_delays
/
0.5e-09
,
dtype
=
numpy
.
int64
)
return
HBAT_bf_delays
return
HBAT_bf_delays
...
...
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