Skip to content

Commit

Permalink
Merge pull request #7 from MLukach/MLukach_202212
Browse files Browse the repository at this point in the history
Update the smoothing function
  • Loading branch information
tdjames1 authored Jan 27, 2023
2 parents 757a521 + e86adf8 commit f2a7409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vp_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def altitude_parameter_averaging_cvp_static(radar, field, cvp_index, avg_range_d
if len(equidistant_alt) >= 300: win = 5
else:win = 3

smoothed_alt_level_mean = smooth(equdist_mean,win)
equdist_mean = smooth(equdist_mean,win)

if mask_field in ['dBuZ', 'dBZ', 'dBZ_ac', 'dBuZv', 'dBZv']:
equdist_mean = 10 * np.log10(equdist_mean)
Expand All @@ -521,7 +521,7 @@ def altitude_parameter_averaging_cvp_static(radar, field, cvp_index, avg_range_d
radar.time['units'],
radar.time['calendar'])

return equidistant_alt, equdist_count, smoothed_alt_level_mean, equdist_std, timeofsweep
return equidistant_alt, equdist_count, equdist_mean, equdist_std, timeofsweep
#return bin_centers, bin_count, bin_means, bin_std, timeofsweep


Expand Down

0 comments on commit f2a7409

Please sign in to comment.