From 4548644399c4206e821c02d8a3aa04b6978b77f2 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 20 Dec 2017 15:28:03 +0000 Subject: [PATCH] Correction to calculation for maximum frequency of interest. --- gprMax/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/grid.py b/gprMax/grid.py index f5a34170..0475b230 100644 --- a/gprMax/grid.py +++ b/gprMax/grid.py @@ -259,7 +259,7 @@ def dispersion_analysis(G): # Set maximum frequency to a threshold drop from maximum power, ignoring DC value try: - freqthres = np.where(power[freqmaxpower:] < -G.highestfreqthres)[0][0] + freqthres = np.where(power[freqmaxpower:] < -G.highestfreqthres)[0][0] + freqmaxpower results['maxfreq'].append(freqs[freqthres]) except: results['error'] = 'unable to calculate maximum power from waveform, most likely due to undersampling.'