That's the PLT file. Save it in a separate file with the same name as the ASC file but with the extension PLT. It will plot the desired waveforms in separate panes that give a clear picture of what is going on.
I tried Helmut's version that he gave to JT. It also has strange and wierd window effects even with the max time step set to 1ps and using the .options plotwinsize=0
Here's Helmut's version:
V=(idt(V(x))-delay(idt(V(x)),D))/D
It flattens to a straight line when the time reaches 100ns. If you try different .param settings, such as .param d = 105n, the flat line turns into a semisinusoidal ripple, the same as the original version.
The LC and Bessel filters have none of these problems. Regardless of which version you use and the size of the window, the Bessel filter gives by far the fastest risetime and the lowest ripple.
I think I am done trying to get software averaging to work. For me, the Bessel is the ideal approach. If JT and the others can come up with an averaging method that gives better performance, I'd be happy to take a look. But I don't think they can, and there would always be the concern that it would have some strange response with some signals.
If you have trouble getting this thing to work, I'd be happy to post the whole thing again with the updates.
JK