mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-12-22 11:33:32 +01:00
ZH: simpler trace changing for beacon_phases
This commit is contained in:
parent
8da9d55c56
commit
9d8e25e74e
1 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,9 @@ if __name__ == "__main__":
|
||||||
allow_frequency_fitting = False
|
allow_frequency_fitting = False
|
||||||
read_frequency_from_file = True
|
read_frequency_from_file = True
|
||||||
|
|
||||||
|
use_AxB_trace = True
|
||||||
|
use_beacon_trace = True # only applicable if AxB = False
|
||||||
|
|
||||||
show_plots = True
|
show_plots = True
|
||||||
|
|
||||||
fname = "ZH_airshower/mysim.sry"
|
fname = "ZH_airshower/mysim.sry"
|
||||||
|
@ -68,7 +71,7 @@ if __name__ == "__main__":
|
||||||
h5ant = group[name]
|
h5ant = group[name]
|
||||||
|
|
||||||
# use E_AxB only instead of polarisations
|
# use E_AxB only instead of polarisations
|
||||||
if True:
|
if use_AxB_trace:
|
||||||
if 'E_AxB' not in h5ant.keys():
|
if 'E_AxB' not in h5ant.keys():
|
||||||
print(f"Antenna does not have 'E_AxB' in {name}")
|
print(f"Antenna does not have 'E_AxB' in {name}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
@ -88,7 +91,7 @@ if __name__ == "__main__":
|
||||||
traces = h5ant['traces']
|
traces = h5ant['traces']
|
||||||
t_trace = traces[0]
|
t_trace = traces[0]
|
||||||
|
|
||||||
if True:
|
if use_beacon_trace:
|
||||||
# only take the Beacon trace
|
# only take the Beacon trace
|
||||||
test_traces = [traces[4]]
|
test_traces = [traces[4]]
|
||||||
orients = ['B']
|
orients = ['B']
|
||||||
|
|
Loading…
Reference in a new issue