ZH: use full band for noise power determination

This commit is contained in:
Eric Teunis de Boone 2023-01-31 14:52:27 +01:00
parent 82ad45730e
commit 0641048f67

View file

@ -70,7 +70,7 @@ if __name__ == "__main__":
## Beacon vs Noise SNR ## Beacon vs Noise SNR
## ##
if True: if True:
beacon_snrs = [ lib.signal_to_noise(myfilter(beacon_amp*ant.beacon), myfilter(ant.noise), samplerate=1/dt, signal_band=beacon_pb) for ant in antennas ] beacon_snrs = [ lib.signal_to_noise(myfilter(beacon_amp*ant.beacon), myfilter(ant.noise), samplerate=1/dt, signal_band=beacon_pb, noise_band=pb) for ant in antennas ]
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.set_title("Maximum Beacon/Noise SNR") ax.set_title("Maximum Beacon/Noise SNR")
@ -85,7 +85,7 @@ if __name__ == "__main__":
## Beacon vs Total SNR ## Beacon vs Total SNR
## ##
if True: if True:
beacon_snrs = [ lib.signal_to_noise(myfilter(beacon_amp*ant.beacon), ant.E_AxB, samplerate=1/dt, signal_band=beacon_pb) for ant in antennas ] beacon_snrs = [ lib.signal_to_noise(myfilter(beacon_amp*ant.beacon), ant.E_AxB, samplerate=1/dt, signal_band=beacon_pb, noise_band=pb) for ant in antennas ]
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.set_title("Maximum Beacon/Total SNR") ax.set_title("Maximum Beacon/Total SNR")
@ -99,7 +99,7 @@ if __name__ == "__main__":
## Airshower signal vs Noise SNR ## Airshower signal vs Noise SNR
## ##
if True: if True:
shower_snrs = [ lib.signal_to_noise(ant.E_AxB, myfilter(ant.noise), samplerate=1/dt, signal_band=pb) for ant in antennas ] shower_snrs = [ lib.signal_to_noise(ant.E_AxB, myfilter(ant.noise), samplerate=1/dt, signal_band=pb, noise_band=pb) for ant in antennas ]
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.set_title("Total (Signal+Beacon+Noise)/Noise SNR") ax.set_title("Total (Signal+Beacon+Noise)/Noise SNR")