Skip to content

Commit

Permalink
Update noisepower.py
Browse files Browse the repository at this point in the history
Resolve an issue causing infinite SNR vlaues in BOREALIS data with noise level < 1. For more detail see SuperDARN/rst#420 (comment).
  • Loading branch information
pasha-ponomarenko committed Aug 9, 2021
1 parent 3be965d commit 3f3e453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backscatter/fitacf/noisepower.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def acf_cutoff_pwr(raw_data):

min_pwr = min_pwr/j * NoisePower.cutoff_power_correction(raw_data)

if min_pwr < 1.0:
if min_pwr < 1.0 and raw_data['noise.search'] > 0:
min_pwr = raw_data['noise.search']

return min_pwr
return min_pwr

0 comments on commit 3f3e453

Please sign in to comment.