ZH: true_phase: flags to remove minimum phase

This commit is contained in:
Eric Teunis de Boone 2022-12-02 18:04:38 +01:00
parent e2310a2e77
commit 88b0b3d1d1

View file

@ -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)