Skip to content
Snippets Groups Projects
Commit 33893ac4 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-523: add sum operation between delays

parent 962dc5ad
No related branches found
No related tags found
1 merge request!227L2SS-523 "Add signal delay calibration table to BEAM"
......@@ -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
)
signal_input_delay = device_property(
HBAT_signal_input_delays = device_property(
dtype='DevVarFloatArray',
mandatory=False,
default_value = numpy.zeros((96,32), dtype=numpy.float64)
......@@ -115,10 +115,13 @@ class Beam(lofar_device):
which is a value per tile per dipole 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
HBAT_bf_delays = numpy.array(polarised_delays / 0.5e-09, dtype=numpy.int64)
HBAT_bf_delays = numpy.array(summed_delays / 0.5e-09, dtype=numpy.int64)
return HBAT_bf_delays
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment