If you are interested in the fix - it really is simple. This is the function code, where data_wave is passed as the field to be fixed. Note that offsetmax is determined by inspection.
offsetmax = 20
n = 1
if (abs(data_wave[n] - data_wave[n-1]) > offsetmax)
data_wave[n] = data_wave[n-1]
While (n < V_npnts)