ZH: simpler trace changing for beacon_phases

This commit is contained in:
Eric Teunis de Boone 2022-11-24 14:48:01 +01:00
parent 8da9d55c56
commit 9d8e25e74e

View file

@ -22,6 +22,9 @@ if __name__ == "__main__":
allow_frequency_fitting = False
read_frequency_from_file = True
use_AxB_trace = True
use_beacon_trace = True # only applicable if AxB = False
show_plots = True
fname = "ZH_airshower/mysim.sry"
@ -68,7 +71,7 @@ if __name__ == "__main__":
h5ant = group[name]
# use E_AxB only instead of polarisations
if True:
if use_AxB_trace:
if 'E_AxB' not in h5ant.keys():
print(f"Antenna does not have 'E_AxB' in {name}")
sys.exit(1)
@ -88,7 +91,7 @@ if __name__ == "__main__":
traces = h5ant['traces']
t_trace = traces[0]
if True:
if use_beacon_trace:
# only take the Beacon trace
test_traces = [traces[4]]
orients = ['B']