mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-11-12 17:43:33 +01:00
ZH: true_phase: flags to remove minimum phase
This commit is contained in:
parent
e2310a2e77
commit
88b0b3d1d1
1 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,9 @@ if __name__ == "__main__":
|
|||
c_light = 3e8*1e-9
|
||||
show_plots = True
|
||||
|
||||
remove_absolute_phase_offset_first_antenna = True # takes precedence
|
||||
remove_absolute_phase_offset_minimum = True
|
||||
|
||||
####
|
||||
fname_dir = path.dirname(fname)
|
||||
antennas_fname = path.join(fname_dir, beacon.antennas_fname)
|
||||
|
@ -67,8 +70,8 @@ if __name__ == "__main__":
|
|||
# Remove the phase from one antenna
|
||||
# this is a free parameter
|
||||
# (only required for absolute timing)
|
||||
if True:
|
||||
if True: # just take the first phase
|
||||
if remove_absolute_phase_offset_first_antenna or remove_absolute_phase_offset_minimum:
|
||||
if remove_absolute_phase_offset_first_antenna: # just take the first phase
|
||||
minimum_phase = -1*true_phases[0]
|
||||
else: # take the minimum
|
||||
minimum_phase = -1*np.min(true_phases, axis=-1)
|
||||
|
|
Loading…
Reference in a new issue