Skip to content
Snippets Groups Projects
Commit aacb6fbd authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-771: Improved comments a bit

parent 009309ee
No related branches found
No related tags found
1 merge request!330L2SS-771: Speed up delay calculations by using a lot more numpy...
......@@ -81,13 +81,14 @@ class delay_calculator:
direction_vectors = self.get_direction_vector_bulk(pointings)
# compute the corresponding delays
def get_delay(relative_itrf):
# compute the corresponding delays for all directions
def get_delay_all_directions(relative_itrf):
# Dot product between relative position and angle vector determines
# distance. Divide by speed of light to obtain delay.
return numpy.inner(relative_itrf, direction_vectors) / 299792458.0
delays = numpy.apply_along_axis(get_delay, 1, antenna_relative_itrfs)
# apply for each position
delays = numpy.apply_along_axis(get_delay_all_directions, 1, antenna_relative_itrfs)
return delays
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment