mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-11-13 01:53:31 +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
|
c_light = 3e8*1e-9
|
||||||
show_plots = True
|
show_plots = True
|
||||||
|
|
||||||
|
remove_absolute_phase_offset_first_antenna = True # takes precedence
|
||||||
|
remove_absolute_phase_offset_minimum = True
|
||||||
|
|
||||||
####
|
####
|
||||||
fname_dir = path.dirname(fname)
|
fname_dir = path.dirname(fname)
|
||||||
antennas_fname = path.join(fname_dir, beacon.antennas_fname)
|
antennas_fname = path.join(fname_dir, beacon.antennas_fname)
|
||||||
|
@ -67,8 +70,8 @@ if __name__ == "__main__":
|
||||||
# Remove the phase from one antenna
|
# Remove the phase from one antenna
|
||||||
# this is a free parameter
|
# this is a free parameter
|
||||||
# (only required for absolute timing)
|
# (only required for absolute timing)
|
||||||
if True:
|
if remove_absolute_phase_offset_first_antenna or remove_absolute_phase_offset_minimum:
|
||||||
if True: # just take the first phase
|
if remove_absolute_phase_offset_first_antenna: # just take the first phase
|
||||||
minimum_phase = -1*true_phases[0]
|
minimum_phase = -1*true_phases[0]
|
||||||
else: # take the minimum
|
else: # take the minimum
|
||||||
minimum_phase = -1*np.min(true_phases, axis=-1)
|
minimum_phase = -1*np.min(true_phases, axis=-1)
|
||||||
|
|
Loading…
Reference in a new issue