- Joined
- May 27, 2017
- Messages
- 14,458
- Reactions
- 19,467
- Location
- Los Alamos, NM
- Site
- www.mavicpilots.com
@sar104 - First, thank you for another lesson. You don't run out of surprises do you? Now some questions. How rare is this kind of data corruption? It is the first time I see it. And is there an option to fix it within CsvView? Or do you do it with some other program? Thanks!
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.
Function fix(data_wave)
Wave data_wave
int n
variable offsetmax
WaveStats data_wave
offsetmax = 20
n = 1
do
if (abs(data_wave[n] - data_wave[n-1]) > offsetmax)
data_wave[n] = data_wave[n-1]
endif
n+=1
While (n < V_npnts)
End